0

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.

Khoyendra Pande
  • 170
  • 2
  • 11

2 Answers2

0

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

theotherreceive
  • 8,235
  • 1
  • 30
  • 44
0

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

Khoyendra Pande
  • 170
  • 2
  • 11