Operating System - HP-UX
1850431 Members
2269 Online
104054 Solutions
New Discussion

Re: problem in allocating Xmx memory

 
Avinash20
Honored Contributor

problem in allocating Xmx memory

Hi everybody,

H/W Platform : rx2620
O/S Version : 11.23 v2
I am trying to set the maximum and minimum limit for the heap size in Java env to increase the performance.
Am getting the following error:
# ./java -Xms=2048
Invalid initial heap size: -Xms=2048
Could not create the Java virtual machine.

Reward points will be awarded.
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
7 REPLIES 7
Steve Steel
Honored Contributor

Re: problem in allocating Xmx memory

Hi

www.hp.com/go/java contains all you need

Your definition is wrong

-Xms

Specify the initial size, in bytes, of the memory allocation pool. This value must be a multiple of 1024 greater than 1MB. Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes. The default value is 5248KB. Examples:
Xms4194304
Xms4096k
Xms4m

Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Avinash20
Honored Contributor

Re: problem in allocating Xmx memory

No I have tried the above command also, but all in vain. Got the same error :)
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Steve Steel
Honored Contributor

Re: problem in allocating Xmx memory

Hi


Did you do it without the =

There is not one in the command


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Avinash20
Honored Contributor

Re: problem in allocating Xmx memory

Yes I did that. But it shoots the same error
"Light travels faster than sound. That's why some people appear bright until you hear them speak."

Re: problem in allocating Xmx memory

Here's a few steps to before configuring OVAS.LRF..
1. ensure your kernel maxdsiz will fit your requirement.
2. ovas process is cap at 1G therefore increase it using 'ovstop ovas' issue commnand 'chatr +q3p enable /opt/OV/bin/ovas' then 'ovstart ovas'
ensure ovas process restart properly. this will allow ovas to go above its default 1G limit.
3.Then Modify the ovas.lrf with. "OVs_YES_START:ovtopmd,ovdbcheck,httpd:-Xmx1024m-Xms1024m-:OVs_WELL_BEHAVED:15:NOPAUSE:" or more.
Avinash20
Honored Contributor

Re: problem in allocating Xmx memory

Hi Friends,
Thanks for the reply.
Its not a OV.
I have also tried without =
But still the problem persists.
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Avinash20
Honored Contributor

Re: problem in allocating Xmx memory

Installed latest Java pathes and Product
"Light travels faster than sound. That's why some people appear bright until you hear them speak."