unable to allocate enough memory

On SunOS 10 get an error when starting a large Java process with over 2Gb memory.

Error occurred during initialization of VM
Could not reserve enough space for object heap

i have 32G memory !! , swap = 31G

Please any advice !!!

Memory management has changed in Solaris 10
System Administration Guide: Oracle Solaris Containers-Resource Management and Oracle Solaris Zones

and make sure you tweaked your java process startup:
Java How To ...: 6 Common Errors in Setting Java Heap Size
http://www.yagnasys.com/uploads/j2ee-perf-tune.pdf

Is this a 32-bit or 64-bit machine, and a 64 or 32 bit version of java?

1 Like

problem has been solved i just installed java 64bit in Solaris 86x , interesting

Thanks all