I am trying to run java command in linux server it was running well but today when I tried to run java I got some error-

Error occurred during initialization of VM

Could not reserve enough space for object heap

Could not create the Java virtual machine.

my memory space is -

root@vps [~]# free -m
         total       used       free     shared    buffers     cached
Mem:     8192        226       7965          0          0          0
    -/+ buffers/cache:        226       7965
Swap:            0          0          0

How can I solve this problem.

link|improve this question

20% accept rate
What are the -Xmx and -Xms parameters that you start your JVM with? – Dabu Jun 29 '11 at 7:14
feedback

2 Answers

This error can occur when ulimits are set. What's the output of ulimit -a?

link|improve this answer
feedback

Restart(reboot) system or server it will work well.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.