Forum

Results 1 to 9 of 9
  1. #1
    Join Date
    January 2012
    Posts
    5

    Solved TS3 Out of Memory errors (VPS restriction)

    Hi all,

    Been using Teamspeak 3 now for our WoW guild for about 2 years now and things have been really sweet. I recently moved our web and TS hosting form one server to another but now I'm getting a lot of out of memory errors. The new server actually has more resources available than the old one so I'm not sure why it's happening.

    Can anyone shed some light on what could be the problem?

    Code:
    2012-01-10 07:56:51.668337|INFO    |ServerLibPriv |   | TeamSpeak 3 Server 3.0.1 (2011-11-17 07:34:30)
    2012-01-10 07:56:51.669084|INFO    |DatabaseQuery |   | dbPlugin name:    SQLite3 plugin, Version 2, (c)TeamSpeak Systems GmbH
    2012-01-10 07:56:51.669155|INFO    |DatabaseQuery |   | dbPlugin version: 3.7.3
    2012-01-10 07:56:51.669587|INFO    |DatabaseQuery |   | checking database integrity (may take a while)
    2012-01-10 07:56:54.922690|INFO    |Accounting    |   | Your license was updated by the licensing server
    2012-01-10 07:56:54.925726|INFO    |Accounting    |   | Licensing Information
    2012-01-10 07:56:54.925790|INFO    |Accounting    |   | type              : Non-profit
    2012-01-10 07:56:54.925867|INFO    |Accounting    |   | starting date     : Fri Apr 22 00:00:00 2011
    2012-01-10 07:56:54.925892|INFO    |Accounting    |   | ending date       : Mon Apr 23 00:00:00 2012
    2012-01-10 07:56:54.925914|INFO    |Accounting    |   | max virtualservers: 10
    2012-01-10 07:56:54.925933|INFO    |Accounting    |   | max slots         : 512
    2012-01-10 07:56:54.944242|INFO    |FileManager   |   | listening on 0.0.0.0:30033
    2012-01-10 07:56:55.307746|ERROR   |DatabaseQuery |   | db_exec failed out of memory
    2012-01-10 07:56:55.307801|ERROR   |DatabaseQuery |   | db_exec() insert into server_properties ( server_id, id, ident, value) values (1 error: out of memory
    2012-01-10 07:56:55.331917|INFO    |CIDRManager   |   | updated query_ip_whitelist ips: 127.0.0.1, 112.140.182.57, 
    2012-01-10 07:56:55.332698|INFO    |Query         |   | listening on 0.0.0.0:10011
    Code:
    [~]# free -m
                 total       used       free     shared    buffers     cached
    Mem:          2048       1305        742          0         45        716
    -/+ buffers/cache:        543       1504
    Swap:         4094          0       4094
    And this is the free resources on my old VPS:
    Code:
    [~]# free -m
                 total       used       free     shared    buffers     cached
    Mem:          1028        356        671          0          0          0
    -/+ buffers/cache:        356        671
    Swap:            0          0          0

  2. #2
    Join Date
    May 2010
    Posts
    6,310
    Hello

    Please post the result of ls -al (linux command) from the server folder

  3. #3
    Join Date
    January 2012
    Posts
    5
    Quote Originally Posted by florian_fr40 View Post
    Hello

    Please post the result of ls -al (linux command) from the server folder
    Hi,

    Thanks for the quick response. Here is the log. Also here is the core crash logs as per the sticky requests.

    http://www.thewarmachine.net.au/coredumps/

    Ports 10011,30033,2008,2010,9987 are all open appropriately in ConfigServer Security & Firewall - csf v5.43 in my WHm as well. Hope that helps.

    Code:
    # ls -al
    total 7324
    drwxr-xr-x  8 w4rm4c w4rm4c    4096 Jan 10 19:26 ./
    drwx--x--x 19 w4rm4c w4rm4c    4096 Jan 10 19:13 ../
    -rw-r--r--  1 w4rm4c w4rm4c   34858 Nov 17 18:36 CHANGELOG
    drwxr-xr-x  2 w4rm4c w4rm4c    4096 Jun 10  2011 doc/
    drwx------  3 w4rm4c w4rm4c    4096 Sep 18  2010 files/
    -rwxr-xr-x  1 w4rm4c w4rm4c  216312 Nov 17 18:36 libts3db_mysql.so*
    -rwxr-xr-x  1 w4rm4c w4rm4c 1055512 Nov 17 18:36 libts3db_sqlite3.so*
    -rw-r--r--  1 w4rm4c w4rm4c   24099 Nov 17 18:36 LICENSE
    -rw-r--r--  1 w4rm4c w4rm4c     923 Jan 10 18:56 licensekey.dat
    drwx------  2 w4rm4c w4rm4c    4096 Jan 10 18:56 logs/
    -rwxr-xr-x  1 w4rm4c w4rm4c     905 Jan 10 19:19 make_core_environment.sh*
    -rw-r--r--  1 w4rm4c w4rm4c       1 Sep 18  2010 query_ip_blacklist.txt
    -rw-r--r--  1 w4rm4c w4rm4c      25 Jan 10 01:49 query_ip_whitelist.txt
    -rw-r--r--  1 w4rm4c w4rm4c     112 Jan 10 14:46 serverkey.dat
    drwxr-xr-x  2 w4rm4c w4rm4c    4096 Jun 10  2011 serverquerydocs/
    drwxr-xr-x  4 w4rm4c w4rm4c    4096 Jan 10 02:19 sql/
    -rw-r--r--  1 w4rm4c w4rm4c    1168 Sep 27 16:51 ts3recover.sh
    -rw-r--r--  1 w4rm4c w4rm4c     289 Jan 10 01:49 ts3server.ini
    -rwxr-xr-x  1 w4rm4c w4rm4c 5274792 Nov 17 18:36 ts3server_linux_amd64*
    -rwxr-xr-x  1 w4rm4c w4rm4c     432 Nov 17 18:36 ts3server_minimal_runscript.sh*
    -rw-r--r--  1 w4rm4c w4rm4c       6 Jan 10 18:56 ts3server.pid
    -rw-r--r--  1 w4rm4c w4rm4c  787456 Jan 10 19:11 ts3server.sqlitedb
    -rwxr-xr-x  1 w4rm4c w4rm4c    2842 Nov 17 18:36 ts3server_startscript.sh*
    drwxr-xr-x  2 w4rm4c w4rm4c    4096 Jun 10  2011 tsdns/

  4. #4
    Join Date
    May 2010
    Posts
    6,310
    So, basicaly the out of memory message appears whan your user can't write in the database.
    But there seams the permissions are good.

    Just to be sure about your linux user, you can try to create a new linux user with a fresh server install.

    About the TS3ANetwork::Send failed error: 1,
    Make sure that the port 2008 is open in TCP
    Also make sure, that your server can reach the address "accounting.teamspeak.com".

  5. #5
    Join Date
    January 2012
    Posts
    5
    Quote Originally Posted by florian_fr40 View Post
    So, basicaly the out of memory message appears whan your user can't write in the database.
    But there seams the permissions are good.

    Just to be sure about your linux user, you can try to create a new linux user with a fresh server install.

    About the TS3ANetwork::Send failed error: 1,
    Make sure that the port 2008 is open in TCP
    Also make sure, that your server can reach the address "accounting.teamspeak.com".
    Well I'm running the startserver as root now and while thats probably not the best idea, it seems to be holding, least for the last 1hour. The ports are deifnintely opened properly and I can ping accounting.

    Dunno what else to try really. But so far so good.

  6. #6
    Join Date
    May 2010
    Posts
    6,310
    Quote Originally Posted by ZyncInt
    But so far so good.
    So there seems it was a temp DNS/network problem.
    Keep a look on this.

    About your first error message, if it works with another linux user (root as you wrote), you have to check the permission of your other user (or just create a new - quick solution)

  7. #7
    Join Date
    January 2012
    Posts
    5
    How do I check the user? w4rm4c seems to have ownership to the file but would there be anything else preventing that user from writing to the DB? Thanks for all your help so far too Florian, first round of beers on me

    Edit: Server has been running for 16hours now without a crash, being run as root instead of my user w4rm4c
    Last edited by ZyncInt; January 11th, 2012 at 02:19 AM.

  8. #8
    Join Date
    January 2012
    Posts
    5
    This is now fixed. Solution came from tech support from my VPS:

    When running as the user there are any number of restrictions, especially if we hardened the vps for you.

    Try disabling shell fork bomb protection, as this places quite a few restrictions on the environment for a end user - root is excluded.

    Something else to look at, is the Background Process Killer - it might even be doing it - simply add the user running the server into the trusted users section to stop it *potentially* killing the server.

  9. #9
    Join Date
    May 2010
    Posts
    6,310
    Thank you for this feedback.

    Effectively each system is different (especially the VPS). So I guess these informations should help the other users in the same case of you (with the same vps configuration).

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [Suggustion] ServerQuery Restriction
    By Superk in forum Suggestions and Feedback
    Replies: 6
    Last Post: July 7th, 2010, 06:11 PM
  2. Slots/Codec restriction
    By JackBauer in forum Permission System
    Replies: 3
    Last Post: February 20th, 2010, 10:59 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •