OpenVZ Forum


Home » General » Support » *SOLVED* Installing Websphere 6.1 in a VPS FAILS due to disk space
*SOLVED* Installing Websphere 6.1 in a VPS FAILS due to disk space [message #12476] Mon, 30 April 2007 20:45 Go to next message
oviney is currently offline  oviney
Messages: 17
Registered: April 2007
Location: Ottawa
Junior Member
The only reason I am posting this is to see if anyone has actually successfully installed Websphere 6.1 within a VE.

Environment Details:

HN:
=====
Processor: Intel(R) Xeon(TM) CPU 3.00GHz with HyperTheading enabled
RAM: 1031472 kB

I just ran into an issue with a Websphere 6.1 installation inside a RHEL 4. update 4 VPS. The installer complained about there not being enough disk space, however after performing a quick df -h on the VPS I noticed that wasn't the problem:

[root@hostnamelvz-1 /]# df -h
Filesystem Size Used Avail Use% Mounted on
simfs 6.7G 4.3G 2.4G 65% /

I could not force the installer past this point as the "next" button was disable based on the space requirements.

The installer does mentioned that it doesn't matter if the "/tmp" is not a separate partition, as long as the sum of required space is respected.

I am going to start digging around in the installation to see if I can find how it detects the disk space but I am not promising anything.

[Updated on: Fri, 04 May 2007 12:52] by Moderator

Report message to a moderator

Re: Installing Websphere 6.1 in a VPS FAILS due to disk space [message #12478 is a reply to message #12476] Mon, 30 April 2007 21:09 Go to previous messageGo to next message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
How much space does the application require? Although you are not out of disk space, if it requires 5GB, ie more then you have, it might report that same error.

-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions

UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
Re: Installing Websphere 6.1 in a VPS FAILS due to disk space [message #12479 is a reply to message #12478] Mon, 30 April 2007 21:34 Go to previous messageGo to next message
oviney is currently offline  oviney
Messages: 17
Registered: April 2007
Location: Ottawa
Junior Member
According to the installer... 500 MB for the application directory and 200 MB of temp space...

Checking the IBM docs to be 100 % sure
Re: Installing Websphere 6.1 in a VPS FAILS due to disk space [message #12480 is a reply to message #12476] Mon, 30 April 2007 22:01 Go to previous messageGo to next message
oviney is currently offline  oviney
Messages: 17
Registered: April 2007
Location: Ottawa
Junior Member
I have checked IBM's website and docs for details about space requirements but couldn't find any.

I am going to test with 2 GB more free space by allocating more space to the VE.

More details to follow...
Re: Installing Websphere 6.1 in a VPS FAILS due to disk space [message #12482 is a reply to message #12480] Mon, 30 April 2007 22:29 Go to previous messageGo to next message
oviney is currently offline  oviney
Messages: 17
Registered: April 2007
Location: Ottawa
Junior Member
I have added 2GB of extra disk space to the VE using the following command:

vzctl set 101 --diskspace 7000000:7000000 --diskinodes 7000000:7000000 --save

I didn't need to restart the VE as this config item is dynamic.

I retried the websphere installer and this time I got futher... so as was mentioned earlier in this thread; I needed even more temp/free space in order to install.

After a successful installation I tested the server installation out using the provided tools; and here are the results:

<snippet>
Server name is:server1
Profile name is:AppSrv01
Profile home is:/opt/IBM/WebSphere/AppServer/profiles/AppSrv01
Profile type is:default
Cell name is:bld1hs20-03lvz-1Node01Cell
Node name is:bld1hs20-03lvz-1Node01
Current encoding is:ANSI_X3.4-1968
Server port number is:9080
IVTL0020I: The Installation Verification Tool cannot connect to WebSphere Application Server; waiting for the server to start.
IVTL0010I: Connecting to the WebSphere Application Server bld1hs20-03lvz-1.na.ubiquity.net on port: 9080
IVTL0020I: The Installation Verification Tool cannot connect to WebSphere Application Server; waiting for the server to start.
Start running the following command:/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin/s tartServer.sh server1 -profileName AppSrv01
Error>Could not create the Java virtual machine.
IVTL0080I: The installation verification is complete.
</snippet>

The line of interest is:

*** Error>Could not create the Java virtual machine. ***

I am guessing that is related to the system not having enough memory to allocate to the JVM, just a guess.

Here is what I have done to set the memory limits:

vzctl set 101 --vmguarpages $((512 * 256)) --save
vzctl set 101 --privvmpages $((256 * 1024)) --save

I found the way to do this that is much more intuitive than calculating the amount of RAM by "pages" is to multiply the amount of RAM that you want by 256 as an easy way to arrive at the right amount of RAM.

So perhaps this problem is about 512 MB RAM not being enough to start websphere, though I have the ability to burst up to 1 GB.

I will give this a test but if someone has seen this feel free to post your commends.

Much appreciated!
Re: Installing Websphere 6.1 in a VPS FAILS due to disk space [message #12484 is a reply to message #12482] Mon, 30 April 2007 22:57 Go to previous messageGo to next message
oviney is currently offline  oviney
Messages: 17
Registered: April 2007
Location: Ottawa
Junior Member
I just tested with more memory and it hasn't helped, but I am guessing that it might be the system memory that just isn't enough. Can someone suggest how I would go about ensuring that I truly do need to upgrade my system memory. I have done some simple tests using free -m and vzmemcheck but am not confident that I understand the statistics it reports.

HN:
=====
[root@hostnamelvz opt]# vzmemcheck
Output values in %
LowMem LowMem RAM MemSwap MemSwap Alloc Alloc Alloc
util commit util util commit util commit limit
0.40 58.62 5.18 1.75 7.70 2.52 30.70 41.13

VE:
=====
[root@hostnamelvz-1 bin]# free -m
total used free shared buffers cached
Mem: 1007 441 566 0 17 239
-/+ buffers/cache: 184 822
Swap: 1983 44 1939

Any suggestions are welcome.

I am trying to attach the JAVA traces and dumps from the "out of memory" error... but the site is having issues I guess. I just tried again, the errors seems to depend on the size of the file.

[Updated on: Mon, 30 April 2007 23:02]

Report message to a moderator

Re: Installing Websphere 6.1 in a VPS FAILS due to disk space [message #12486 is a reply to message #12484] Tue, 01 May 2007 14:05 Go to previous messageGo to next message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
Quote:

I am trying to attach the JAVA traces and dumps from the "out of memory" error


1) cat /proc/user_beancounters (save it)
2) duplicate problem
3) cat /proc/user_beancounters (save it)


look for an increase in the failcnt column for any metric between 1 and 3. do you see any?



-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions

UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
Re: Installing Websphere 6.1 in a VPS FAILS due to disk space [message #12488 is a reply to message #12486] Tue, 01 May 2007 15:22 Go to previous messageGo to next message
oviney is currently offline  oviney
Messages: 17
Registered: April 2007
Location: Ottawa
Junior Member
I did what you recommended and the only value in the "failcnt" column that appears to have changed during the tests was the "numproc".

See attachments for more details...

but here is the low down:

Test 1: prior to start websphere I ran "cat /proc/user_beancounters" and saved it to a file: user_beancounters_prerun

Test 2: during the websphere startup I ran the command again: user_beancounters_duringrun

Test 3: a few minutes into the startup process I ran the command again: user_beancounters_duringpostrun

Test 4: after "ctrl +c" in the terminal windows that started websphere I ran the command again: user_beancounters_duringpostrun2

I don't see anything glaring... perhaps I am missing something?
Re: Installing Websphere 6.1 in a VPS FAILS due to disk space [message #12489 is a reply to message #12488] Tue, 01 May 2007 15:25 Go to previous messageGo to next message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
increase your failcnt parameter

vzctl set VEID --numproc XXX:YYY --save




-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions

UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
Re: Installing Websphere 6.1 in a VPS FAILS due to disk space [message #12493 is a reply to message #12489] Tue, 01 May 2007 17:56 Go to previous messageGo to next message
oviney is currently offline  oviney
Messages: 17
Registered: April 2007
Location: Ottawa
Junior Member
what value would you recommend as a baseline?

Thank you very much for your help btw!
Re: Installing Websphere 6.1 in a VPS FAILS due to disk space [message #12495 is a reply to message #12493] Tue, 01 May 2007 18:02 Go to previous messageGo to next message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
no problem. shortest answer is, enough to satisfy your application load. Since I don't know jack about how many processes websphere wants, we will guestimmate and tweak later. Set it to 1000, install your application, run it, watch the max cnt column. For example, if it hits 200 max after heavy application load, I would say 300 is a safe number to limit it at.



-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions

UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
Re: Installing Websphere 6.1 in a VPS FAILS due to disk space [message #12499 is a reply to message #12495] Tue, 01 May 2007 18:27 Go to previous message
oviney is currently offline  oviney
Messages: 17
Registered: April 2007
Location: Ottawa
Junior Member
fantastic, I set the process count to 1000 and filecount to 3000 and now the websphere process is able to start and fork Smile

Thank you again for your help!

I would say that this problem has been resolved.
Previous Topic: 4Servers crashes no video , no error , Please help!
Next Topic: Kernel panic with 2.6.20 on x86_64 (CentOS 4.4)
Goto Forum:
  


Current Time: Wed Aug 14 02:24:23 GMT 2024

Total time taken to generate the page: 0.04821 seconds