Ciao a tutti. Sono qui per chiedervi un aiuto per quanto riguarda l'installazione di java su una VPS.
Premetto che di linux ci capisco poco. Prima di chiedervi l'aiuto vi spiego cosa ho fatto e cosa vorrei fare.
Ho una VPS linux centos 5 con 5gb di HD e 200mb di RAM. Su questa VPS ho installato un server voice TeamSpeak 3 che assorbe un 60mb di RAM.
Ho la necessità di installare un bot su questa VPS che gestisca in automatico il server voice.
Nelle richieste per l'installazione del bot chiede di preciso:
-= System Requirements =-
This program runs on Windows and Linux (even without X server). On Mac OS X 10.4+ it should run too, but it is not tested. Please send me a message if this bot runs on Mac OS X without problems. All you need is a Java SE runtime environment version 5 or newer.
You can get the latest version from java.com: Java + You or Java SE Downloads
Mac OS X 10.4 or newer users should have it already installed.
Linux users should install the package sun-java6-jre or openjdk-6-jre (on older linux you can also use sun-java5-jre).
An example on Debian or Ubuntu linux: apt-get install sun-java6-jre
An example on CentOS or Fedora: yum install java-1.6.0-openjdk
An example on OpenSUSE: yast -i java-1_6_0-sun
The package gcj-jre (GNU Java) will not work!
Ho installato il pacchetto java-1.6.0-openjdk. Quello che non capisco e se devo installare anche java di oracle (per intenderci il pacchetto jre-7u1-linux-x64.rpm che si trova qui
Java SE Runtime Environment 7u1 download page). In poche parole i 2 pacchetti sono sostitutivi o complementari?
Inoltre, c'è scritto che prima di installare il bot, devo controllare che java sia in funzione tramite il comando java -version
Check first if you already have installed Java.
You can check this by writing the following command at the Console / Terminal / Command Prompt:
java -version
You should get the output of the Java version. If not, you must install Java first.
lanciato il comando ho un errore
[root@clienti ~]# java -version
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
che significa?! il problema è la risorsa della mia vps? in caso positivo, nn si può limitare le risorse richieste da java?
La guida per l'installazione del bot mi dice che posso limitare la ram usata dal bot
Maybe you want to limit the maximum ram that the bot use. This can be usefull on a virtual server.
You can do this by using java command line arguments for the java virtual machine.
If you want to use 30 MB ram as maximum, you can start the bot like this:
java -mx30M -jar JTS3ServerMod.jar
Notice: If you choose a to low value, the bot may not run or is not stable. I did no long time tests on this.
The bot needs less ram if you disable the client database cache and using only one bot instance.
Onestamente non so come uscirmene fuori da questa situazione, non capisco se il problema è di java o della vps o di cos'altro.
Grazie anticipatamente a tutti quanti per la vs disponibilità e pazienza.