• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Linux Server Memory Overload

kaczi

New Member
Joined
Mar 31, 2010
Messages
62
Reaction score
0
I have Gentoo Linux (2x3ghz, 6gb ram+3 gb swap).I's using TFS 0.3.6 SVN and 0.3.6pl1. When I start the server everything works fine, but the longer server is online, the more Memory it uses. When The System is out of Memory, Server Save takes 40-120 sec (instead of 0,5 sec, when Memory if not fully taken) and it crashes: Segmentation Fault. Website is not working at all then. When I restart the server, it takes less than 3,2gb Memory again and website works too.

Here are some more detailed informations:

top:
13570 kaczi199 20 0 4524m 4.3g 5712 S 4 73.0 23:02.98 theforgottenser
pmap:
total 4632596K

And still growing.

As I pmap'ed it, there are some things that are using more and more memory (and they are duplicating):
0000000000882000 80K rw--- [ anon ]
0000000000bfa000 2976720K rw--- [ anon ]
00007f0cd8000000 33244K rw--- [ anon ]
00007f0cda077000 32292K ----- [ anon ]
00007f0cdc000000 10248K rw--- [ anon ]
00007f0cdca02000 55288K ----- [ anon ]
00007f0ce0000000 65536K rw--- [ anon ]
00007f0ce4000000 65536K rw--- [ anon ]
00007f0ce8000000 65536K rw--- [ anon ]
00007f0cec000000 65536K rw--- [ anon ]
00007f0cf0000000 65536K rw--- [ anon ]
00007f0cf4000000 65536K rw--- [ anon ]
00007f0cf8000000 65536K rw--- [ anon ]
00007f0cfc000000 65536K rw--- [ anon ]
00007f0d00000000 65536K rw--- [ anon ]
00007f0d04000000 65536K rw--- [ anon ]
00007f0d08000000 65536K rw--- [ anon ]
00007f0d0c000000 65536K rw--- [ anon ]
00007f0d10000000 65536K rw--- [ anon ]
00007f0d18000000 65536K rw--- [ anon ]
00007f0d1c000000 65536K rw--- [ anon ]
00007f0d20000000 65536K rw--- [ anon ]
00007f0d24000000 65536K rw--- [ anon ]
00007f0d28000000 131072K rw--- [ anon ]
00007f0d30000000 65536K rw--- [ anon ]
00007f0d34000000 65536K rw--- [ anon ]
00007f0d38000000 65536K rw--- [ anon ]
00007f0d3c1f4000 4100K rw--- [ anon ]
00007f0d3c5f5000 4K ----- [ anon ]
00007f0d3c5f6000 8192K rw--- [ anon ]


On server start there are only few of them.
 
Check your scripts. You got something that runs, but doesn't clean up I think. Otherwise, please post your compile options, uname -a, gcc -v, emerge --info
 
I'm 99% sure that it is npcs problem. But I dont know how to find out which of them is bugged. I have over 500 npcs + scripts and no errors in engine.
 
I deleted all npcs and server memory is not growing- so it must be npc problem. I have npcs from tfs 0.4.0 and I use engine 0.3.6pl1. Also tried to paste npcs from 0.3.6 and memory is not growing. Which functions of npcs from 0.4.0 are not working correctly on 0.3.6?
 
Back
Top