I got this java issue
[ root@peach sbin]# java Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine. [ root@peach sbin]# free -m total used free shared buffers cached Mem: 256 182 73 0 0 0 -/+ buffers/cache: 182 73 Swap: 0 0 0 [ root@peach sbin]#
This is a virtual machine. I think this problem is due to lack of memory. If someone agrees with me.
It works with CentOS Version 5.6 (Final)
thanks
Try
java -Xmx64m
Mostly your computer does not have enough memory, but you can get away with 64 MB. Let me know how you are doing.
You can use this command to find out your current memory usage:
swapinfo -tam
I had the same error and memory usage was above 95%.