SRCDS Steam group


Sudden server crashes started... wt...
#1
Hi everyone. Suddenly, today, my server's started crashing. Then I noticed, that it crashes, when some people joins the game. One of them is my friend, so he doesn't crash the server for a purpose. Plus, he's too stupid to do such thing.

Here's what console says, when he or some other people joins the server:
terminate called after throwing an instance of 'std::bad_alloc' what(): std::badalloc

The server works for most people, but when some people join, I don't know, how they are special, server crashes. He didn't changed anything in his game, and has been playing before perfectly. Today he has been playing too.
What could be the problem? Using CentOS. Tried turning off all the plugins.
Reply
#2
This is taken from a C++ but it maybe has something to do with your problem:
Quote:The exception is thrown when new cannot allocate more memory.
I'd like to see the code. It could be that you're passing new an expression that evaluates to a really large number.

It means that you are maybe running out of memory..
Slå den med jeres fiberforbindelser...

[Image: 1308107839.png]
Reply
#3
give us the output of "free -m" while the server is running.
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply
#4
total used free shared buffers cached
Mem: 1024 323 700 0 0 0
-/+ buffers/cache: 323 700

There you go.
Have no idea, why it's happening... Players will leave the server, if this will continue... :/
Reply
#5
I wonder why you haven't got any memory cached.. Is it only happening with SRCDS or does other applications crash aswell?
Slå den med jeres fiberforbindelser...

[Image: 1308107839.png]
Reply
#6
There's no other applications running on that Linux VPS.
Reply
#7
(01-12-2011, 01:41 AM)newn Wrote:  Linux VPS.
that explains the stragne output of free (all 0 for buffers and cached).

maybe the VPS doesn't allow to allocate more memory as the hardware node is at it's limits. again: VPS are usually not suited to run game servers. rent a real root server or go for shared hosting.
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply
#8
We should do that in the end of the month, but as for now, I don't want my players to leave...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)