installation JTS3ServerMod

Started by fonzy, December 07, 2011, 04:36:50 PM

Previous topic - Next topic

fonzy

Hello guys, sorry my English but I am an Italian boy.
I have a server on a vps linux centos5 TS3. I would like to install the JTS3ServerMod on my server.
I installed the package java-1.6.0-openjdk (yum install java-1.6.0-openjdk) on the VPS.
Should I install the java package jre-7u1-linux oracle-x64.rpm (http://www.oracle.com/technetwork/java/javase/downloads/jre-7u1-download-513652.html)?

After installing the package java-1.6.0-openjdk, I launched the command java-version but I got this error:

[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.


I do not understand something wrong, why this mistake? What should I do?

Thanks for your help.

PS.my VPS have 5gb Hard disk and 200mb RAM

Stefan1200

200 mb ram is not much and might be to less to start the java virtual machine. If you already get problems with java -version, I don't think that you get the bot running. But you can try the command for vservers from the bot readme file.

fonzy

Quote from: Stefan1200 on December 07, 2011, 05:17:30 PM
But you can try the command for vservers from the bot readme file.

what would that command?

How much ram do you think should have my VPS?

Thanks

Stefan1200


fonzy

nothing, always the same error  :'(

Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.


What can I do?

How much ram do you think should have my VPS?

thanks

Stefan1200

Quote from: fonzy on December 07, 2011, 07:19:32 PM
How much ram do you think should have my VPS?

I don't know the exact number, but 200 MB is not much. I know that a VPS with 1 GB is able to run the bot (including TS3 server and some more stuff).

fonzy

then you tell me that the problem is definitely the fault of the little ram? It is not a problem of linux, centos, vps, java or something else?

However, just to run the bot in java-1.6.0-openjdk stall or should I install the java package jre-7u1-linux oracle-x64.rpm (http://www.oracle.com/technetwork/java/javase/downloads/jre-7u1-download-513652.html)?

thanks

Stefan1200

Quote from: fonzy on December 07, 2011, 08:31:04 PM
then you tell me that the problem is definitely the fault of the little ram? It is not a problem of linux, centos, vps, java or something else?

However, just to run the bot in java-1.6.0-openjdk stall or should I install the java package jre-7u1-linux oracle-x64.rpm (http://www.oracle.com/technetwork/java/javase/downloads/jre-7u1-download-513652.html)?

Neve tested the bot with Java 7, but it should work. On my server the bot runs with java-1.6.0-openjdk. The error message is quite exact, too less memory. But you can try this:
java -mx20M -version

fonzy

I confirm, I did some tests and we wilt at least 400mb to run Java on VPS ... the cost is too high for me!
since your server works via telnet, I wanted to ask what is the command to run queries to send a private message to all users connected to a particular group?
maybe I can make a small script that does just that since I'd used the bot for this reason.
thanks for your help.

Stefan1200

To get a client list with server group information:
clientlist -groups

To send a message to a specified client:
sendtextmessage targetmode=3 target=CLIENT_ID msg=MESSAGE

fonzy

thanks for the information.
because if I send the query message is sent from the sender's private "serveradmin from IP"?
You can not set a different sender name?

hi

Stefan1200

Quote from: fonzy on December 11, 2011, 12:43:58 PM
You can not set a different sender name?

After you established the connection to the server query interface:
clientupdate client_nickname=NICKNAME

fonzy

THANK YOU! :-)

I have read many times the guide but I had not noticed that feature.

Sorry if you fill it with questions, but you're the only one I know who knows very well the teamspeak query.

How do I know which channel is a user? I checked all the queries and there is none that give me this information. could you tell me how?

thanks Stefan

Stefan1200

Quote from: fonzy on December 11, 2011, 04:02:26 PM
How do I know which channel is a user? I checked all the queries and there is none that give me this information. could you tell me how?

If I remember right, it is the cid variable at the client list.

fonzy

without your help I would not have succeeded. thanks
  ;)