Saturday, December 3, 2011

Error occurred during initialization of VM on javac

Sponsored Links
root@server [~]# /etc/init.d/red5  restart
Shutting down red5:                                        [FAILED]
Starting red5:                                                   [  OK  ]

root@server [~]# javac
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.

export _JAVA_OPTIONS="-Xms20m -Xmx64m -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -XX:NewSize=10m -XX:MaxNewSize=10m -XX:SurvivorRatio=6 -XX:TargetSurvivorRatio=80 -XX:+CMSClassUnloadingEnabled -XX:+CMSClassUnloadingEnabled"

Sponsored Links

No comments:

Post a Comment

Be nice. That's all.