Operating System - HP-UX
1753725 Members
4514 Online
108799 Solutions
New Discussion юеВ

Re: Java VM could not start with 1024M heapsize in HP-UX Itanium 32 bit

 
rrpai
New Member

Java VM could not start with 1024M heapsize in HP-UX Itanium 32 bit

Java VM could not start with 1024M heapsize in HP-UX Itanium 32 bit

- I am trying to start java vm via JNI as given in link below
http://java.sun.com/docs/books/jni/html/invoke.html

- If I set heap size ie <= -Xmx512M it starts fine, but with 1024M heapsize VM is not able to start saying no heap space to allocate error.

(Machine has 8 gig RAM so that is not a issue).
Can anyone clarify what could cause this ?

- If i use
jdk/bin/java -Xmx1024M it works fine
The issue is only with creating VM from C code via JNI (link above)
3 REPLIES 3
TTr
Honored Contributor

Re: Java VM could not start with 1024M heapsize in HP-UX Itanium 32 bit

The answer might be in Bill's reply in http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1143221

You need to reduce your heap size slightly.
rrpai
New Member

Re: Java VM could not start with 1024M heapsize in HP-UX Itanium 32 bit

Thanks ,

- Reducing heap space is not an option for me as program needs that much memory

- But the kernel params are already set to 3GB , hence wouldnt java already have capability to init with 1G memory.

maxdsiz 3GB
maxdsiz_64bit 3GB

- I am little confused by Bill's post in the link as he says set it to 1800M while OP said his maxdsiz is already 4G

- Does this mean , one need to set maxdsiz to say 2G and maxdsiz_64bit to higher value than maxdsiz say 5G

Thanks in advance
Dennis Handly
Acclaimed Contributor

Re: Java VM could not start with 1024M heapsize in HP-UX Itanium 32 bit

If you don't have any 32 bit JNIs, you should forget about 32 bit and use 64 bit with -d64.

>Does this mean, one need to set maxdsiz to say 2G and maxdsiz_64bit to higher value than maxdsiz say 5G

Yes, that matches the constraints.