Author Topic: installation JTS3ServerMod  (Read 20902 times)

fonzy

  • Newbie
  • *
  • Posts: 10
    • View Profile
installation JTS3ServerMod
« on: December 07, 2011, 04:36:50 PM »
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:

Code: [Select]
[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

  • Administrator
  • *****
  • Posts: 1815
    • View Profile
Re: installation JTS3ServerMod
« Reply #1 on: December 07, 2011, 05:17:30 PM »
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

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: installation JTS3ServerMod
« Reply #2 on: December 07, 2011, 06:22:25 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

  • Administrator
  • *****
  • Posts: 1815
    • View Profile
Re: installation JTS3ServerMod
« Reply #3 on: December 07, 2011, 06:53:44 PM »
what would that command?

Try this:
java -mx30M -version

fonzy

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: installation JTS3ServerMod
« Reply #4 on: December 07, 2011, 07:19:32 PM »
nothing, always the same error  :'(

Code: [Select]
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

  • Administrator
  • *****
  • Posts: 1815
    • View Profile
Re: installation JTS3ServerMod
« Reply #5 on: December 07, 2011, 08:17:10 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

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: installation JTS3ServerMod
« Reply #6 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)?

thanks

Stefan1200

  • Administrator
  • *****
  • Posts: 1815
    • View Profile
Re: installation JTS3ServerMod
« Reply #7 on: December 08, 2011, 05:50:51 AM »
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

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: installation JTS3ServerMod
« Reply #8 on: December 08, 2011, 06:11:40 PM »
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

  • Administrator
  • *****
  • Posts: 1815
    • View Profile
Re: installation JTS3ServerMod
« Reply #9 on: December 11, 2011, 07:21:57 AM »
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

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: installation JTS3ServerMod
« Reply #10 on: December 11, 2011, 12:43:58 PM »
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

  • Administrator
  • *****
  • Posts: 1815
    • View Profile
Re: installation JTS3ServerMod
« Reply #11 on: December 11, 2011, 03:48:21 PM »
You can not set a different sender name?

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

fonzy

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: installation JTS3ServerMod
« Reply #12 on: December 11, 2011, 04:02:26 PM »
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

  • Administrator
  • *****
  • Posts: 1815
    • View Profile
Re: installation JTS3ServerMod
« Reply #13 on: December 11, 2011, 04:09:31 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

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: installation JTS3ServerMod
« Reply #14 on: December 13, 2011, 07:30:27 PM »
without your help I would not have succeeded. thanks
  ;)