Java, Error occurred during initialization of VM, Minecraft
So, you're trying to run something in java on your server and your just getting:
Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine.
Try the following from span style="text-decoration:line-through">http://linux.techzinformatica.in/?p=714:
If it is a cpanel/WHM server then add the following code in the start of the /etc/profile file. Quote:
#cPanel Added Limit Protections — BEGIN #unlimit so we can run the whoami ulimit -n 4096 -u 14335 -m unlimited -d unlimited -s 8192 -c 1000000 -v unlimited 2>/dev/null LIMITUSER=$USER if [ -e "/usr/bin/whoami" ]; then LIMITUSER=`/usr/bin/whoami` fi if [ "$LIMITUSER" != "root" ]; then ulimit -n 100 -u 20 -m 200000 -d 200000 -s 8192 -c 200000 -v 200000 2>/dev/null else ulimit -n 4096 -u 14335 -m unlimited -d unlimited -s 8192 -c 1000000 -v unlimited 2>/dev/null fi #cPanel Added Limit Protections — END
Save and exit.
Restart your profile
. /etc/profileor
sudo . /etc/profile