SORRY for the really long question ( I didn't want to miss any info you guys might need) BUT PLEASE HELP!
Hi, I've recently purchased a linux VPS (runs ubuntu 64 bit) I've been trying to get java to work on it for 3 days now, and i'm starting to run out of ideas and think about how much I wasted on this VPS.
I've tried installing it through:
sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java7-installer
(and java6 the next day - I tried uninstalling it first but not sure if it worked because I got errors)
as well as
wget https://github.com/flexiondotorg/oab-java6/raw/0.2.4/oab-java.sh -O oab-java.sh chmod +x oab-java.sh sudo ./oab-java.sh
upon completion of all of these I am able to run a java based game (the one I'm trying to host) but it crashes after a few hours, here is my batch file
screen -A -m -d -S rsps java -Xmx1700m -classpath bin:deps/GTLVote.jar:deps/poi.jar:deps/m… server.Server
To break it down the "screen -A -m -d -S rsps" is just to keep the game batch file running when I close the connection through putty.
I have also tried editing this
java -Xmx1700m (3 hour crash if i have it at
-Xmx800m, 6 hour crash if i have it at
-Xmx1700m) but it just prolongs how long until java crashes with a hs_err_pid error saying
There is insufficient memory for the Java Runtime Environment to continue. and a bunch of other code (all of it can be found here: http://pastebin.com/3ZBfYBLE)
Also, when I try
java -version through putty I get an error saying
Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine.
I was also able to host this game perfectly fine on a windows vps with similar specs (a little bit better specs)
1 Possible thing I can think of is the 2 versions of java I've tried installing have both been a 32 bit version? Other than that I have no clue, any help will be GREATLY appreciated.