[B3.1][DedicatedServer] Memory leak

Moderator: NADEO

om23
Posts: 568
Joined: 29 Aug 2010, 21:29

Re: [B3.1][DedicatedServer] Memory leak

Post by om23 »

kremsy wrote:As I see, SM Servers directly after starting took about 140mb of ram, after 10days running 450mb when empty.

Empty TM2 servers 70mb after restart, and after 10 days 400-500mb.


It's very strange that empty tmf servers which are running 40days without restart take 20-40mb ram, and empty tm2 stadium servers took after 10 days 400-500mb ram.

System Debian 6.0.
debian6
command: top
virt 363m / res 146m / shr 51m / mem% 14.3 / runtime 3:52.08 / tm2Canyon
virt 374m / res 161m / shr 55m / mem% 15.8 / runtime 1:24.75 / tm2Stadium
don´t understand this 100%, but looks ok.
of course it looks not ok compared to tmuf!!!!

command: cat /proc/meminfo
MemTotal: 1048576 kB
MemFree: 202572 kB

ahh, btw.: do guys think this is a player issue?
I was thinking it is the packs issue.!

br
═╦═╔╦╗LAN-Party »»» :pil :pop: :pil
Bueddl
Posts: 165
Joined: 27 Jun 2010, 11:39

Re: [B3.1][DedicatedServer] Memory leak

Post by Bueddl »

kremsy wrote: It is definitely a issue from the Server software which is not allocate the memory correctly I think.
Well, taht's not new..
om23 wrote:
kremsy wrote:As I see, SM Servers directly after starting took about 140mb of ram, after 10days running 450mb when empty.

Empty TM2 servers 70mb after restart, and after 10 days 400-500mb.


It's very strange that empty tmf servers which are running 40days without restart take 20-40mb ram, and empty tm2 stadium servers took after 10 days 400-500mb ram.

System Debian 6.0.
debian6
command: top
virt 363m / res 146m / shr 51m / mem% 14.3 / runtime 3:52.08 / tm2Canyon
virt 374m / res 161m / shr 55m / mem% 15.8 / runtime 1:24.75 / tm2Stadium
don´t understand this 100%, but looks ok.
of course it looks not ok compared to tmuf!!!!

command: cat /proc/meminfo
MemTotal: 1048576 kB
MemFree: 202572 kB

ahh, btw.: do guys think this is a player issue?
I was thinking it is the packs issue.!

br
These are not sufficient infos! More important are memory usage relations to the runtime, the players online, the players fluctuation...

I have the same stats when I freshly started a server, so this is absolutely saying nothing!
http://www.tmserver.org | Mania Exchange
═╦═╔╦╗² | MP4 Beta
om23
Posts: 568
Joined: 29 Aug 2010, 21:29

Re: [B3.1][DedicatedServer] Memory leak

Post by om23 »

Code: Select all

root@*******:~# top
top - 17:38:21 up 1 day, 21:17,  1 user,  load average: 0.00, 0.01, 0.07
Tasks:  33 total,   1 running,  32 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.5%us,  0.2%sy,  0.0%ni, 99.3%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   1048576k total,   952420k used,    96156k free,        0k buffers
Swap:        0k total,        0k used,        0k free,        0k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
15417 www-data  16   0  248m  12m 3452 S    2  1.2   0:03.63 apache2
15393 www-data  15   0  248m  12m 3460 S    1  1.2   0:05.24 apache2
19655 u1    15   0  390m 179m  57m S    1 17.5   3:20.48 tm2stadium1
19701 u1    18   0  225m  46m 9420 S    1  4.5   2:44.54 php
14324 www-data  15   0  248m  12m 3460 S    0  1.2   0:11.39 apache2
19576 mysql     15   0  169m  43m 7220 S    0  4.3   2:16.60 mysqld
19695 u1    18   0  363m 146m  51m S    0 14.3   9:09.98 ManiaPlanetServ
    1 root      15   0  8364  784  660 S    0  0.1   0:02.70 init
14132 www-data  18   0  248m  12m 3512 S    0  1.2   0:20.70 apache2
14274 www-data  15   0  248m  12m 3460 S    0  1.2   0:09.51 apache2
14312 www-data  15   0  249m  12m 3468 S    0  1.2   0:07.25 apache2
14323 www-data  15   0  248m  12m 3460 S    0  1.2   0:09.35 apache2
15433 root      18   0 78980 3524 2792 S    0  0.3   0:00.01 sshd
15435 root      16   0 17760 1924 1404 S    0  0.2   0:00.00 bash
15440 root      15   0 18944 1260 1000 R    0  0.1   0:00.00 top
18190 root      15   0 63316 1912 1204 S    0  0.2   0:01.11 nmbd
18195 root      15   0 93584 3256 2300 S    0  0.3   0:00.09 smbd
18200 root      18   0 93584 1548  592 S    0  0.1   0:00.00 smbd
18215 root      18   0 54572  944  448 S    0  0.1   0:00.00 saslauthd
18216 root      18   0 54572  652  156 S    0  0.1   0:00.00 saslauthd
18223 root      18   0  5988  672  528 S    0  0.1   0:01.50 syslogd
18235 bind      18   0  197m  17m 2296 S    0  1.7   0:00.05 named
18269 root      15   0 20916  952  720 S    0  0.1   0:00.58 cron
18356 root      15   0 49184 1120  572 S    0  0.1   0:07.59 sshd
18365 root      18   0 19340  940  740 S    0  0.1   0:00.00 xinetd
18404 root      18   0  246m  14m 8376 S    0  1.5   0:04.82 apache2
19464 root      20   0  9148 1372 1112 S    0  0.1   0:00.01 mysqld_safe
19577 root      18   0  3860  624  532 S    0  0.1   0:00.00 logger
19708 u1    15   0  220m  41m 9400 S    0  4.1   0:47.85 php
32222 u2   18   0 18348  10m 5128 S    0  1.0   0:27.15 TrackmaniaServe
32225 u2   15   0 18992  11m 5360 S    0  1.1   0:23.06 TrackmaniaServe
32227 u2   18   0  225m  46m 9364 S    0  4.5   0:19.50 php
32230 u2   15   0  215m  36m 8992 S    0  3.6   0:23.06 php
of course it says nothing, whatever, the servers are 2 days online with really not much visitors.
probably ~10 ;)
═╦═╔╦╗LAN-Party »»» :pil :pop: :pil
Bueddl
Posts: 165
Joined: 27 Jun 2010, 11:39

Re: [B3.1][DedicatedServer] Memory leak

Post by Bueddl »

om23 wrote:

Code: Select all

root@*******:~# top
top - 17:38:21 up 1 day, 21:17,  1 user,  load average: 0.00, 0.01, 0.07
Tasks:  33 total,   1 running,  32 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.5%us,  0.2%sy,  0.0%ni, 99.3%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   1048576k total,   952420k used,    96156k free,        0k buffers
Swap:        0k total,        0k used,        0k free,        0k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
15417 www-data  16   0  248m  12m 3452 S    2  1.2   0:03.63 apache2
15393 www-data  15   0  248m  12m 3460 S    1  1.2   0:05.24 apache2
19655 u1    15   0  390m 179m  57m S    1 17.5   3:20.48 tm2stadium1
19701 u1    18   0  225m  46m 9420 S    1  4.5   2:44.54 php
14324 www-data  15   0  248m  12m 3460 S    0  1.2   0:11.39 apache2
19576 mysql     15   0  169m  43m 7220 S    0  4.3   2:16.60 mysqld
19695 u1    18   0  363m 146m  51m S    0 14.3   9:09.98 ManiaPlanetServ
    1 root      15   0  8364  784  660 S    0  0.1   0:02.70 init
14132 www-data  18   0  248m  12m 3512 S    0  1.2   0:20.70 apache2
14274 www-data  15   0  248m  12m 3460 S    0  1.2   0:09.51 apache2
14312 www-data  15   0  249m  12m 3468 S    0  1.2   0:07.25 apache2
14323 www-data  15   0  248m  12m 3460 S    0  1.2   0:09.35 apache2
15433 root      18   0 78980 3524 2792 S    0  0.3   0:00.01 sshd
15435 root      16   0 17760 1924 1404 S    0  0.2   0:00.00 bash
15440 root      15   0 18944 1260 1000 R    0  0.1   0:00.00 top
18190 root      15   0 63316 1912 1204 S    0  0.2   0:01.11 nmbd
18195 root      15   0 93584 3256 2300 S    0  0.3   0:00.09 smbd
18200 root      18   0 93584 1548  592 S    0  0.1   0:00.00 smbd
18215 root      18   0 54572  944  448 S    0  0.1   0:00.00 saslauthd
18216 root      18   0 54572  652  156 S    0  0.1   0:00.00 saslauthd
18223 root      18   0  5988  672  528 S    0  0.1   0:01.50 syslogd
18235 bind      18   0  197m  17m 2296 S    0  1.7   0:00.05 named
18269 root      15   0 20916  952  720 S    0  0.1   0:00.58 cron
18356 root      15   0 49184 1120  572 S    0  0.1   0:07.59 sshd
18365 root      18   0 19340  940  740 S    0  0.1   0:00.00 xinetd
18404 root      18   0  246m  14m 8376 S    0  1.5   0:04.82 apache2
19464 root      20   0  9148 1372 1112 S    0  0.1   0:00.01 mysqld_safe
19577 root      18   0  3860  624  532 S    0  0.1   0:00.00 logger
19708 u1    15   0  220m  41m 9400 S    0  4.1   0:47.85 php
32222 u2   18   0 18348  10m 5128 S    0  1.0   0:27.15 TrackmaniaServe
32225 u2   15   0 18992  11m 5360 S    0  1.1   0:23.06 TrackmaniaServe
32227 u2   18   0  225m  46m 9364 S    0  4.5   0:19.50 php
32230 u2   15   0  215m  36m 8992 S    0  3.6   0:23.06 php
of course it says nothing, whatever, the servers are 2 days online with really not much visitors.
probably ~10 ;)
Within that short time and that less visitors we'd expected similar stats. ;-)
http://www.tmserver.org | Mania Exchange
═╦═╔╦╗² | MP4 Beta
TheM
Posts: 1379
Joined: 15 Jun 2010, 14:30
Location: Uden, Noord-Brabant, Netherlands
Contact:

Re: [B3.1][DedicatedServer] Memory leak

Post by TheM »

After following this topic, I thought that it might be time to post "my own" stats here as well.
On the early morning (10:40 :P) there were playing 0 players on our Canyon server.
Though, that was the procces using the most memory on the dedicated server:

Code: Select all

virt 1226M | res 1063M | shr 110M | MEM% 13.7 | ManiaPlanetServer1
The server has been running since 16-03-2013, with the players mostly situated around the evenings and weekends, with a peak on Saturday night with sometimes 50-60 players.

Serverspecifications:
CPU: AMD Athlonâ„¢ II X4 Quad-Core 4x2,3 GHz
RAM: 8 GB, DIMM (DDR3)
OS: Debian 6.0.7, 64bit

I'll come back here after Saturdayevening, to see if the playerpeak has done some damage to the memory usage.
Global moderator | Dutch moderator | Laddermoderator | ManiaWiki moderator
Server Manager/webmaster of Smurfen.net, join us on Canyon, Valley and Royal!
ESL (Game) Staff Head for TrackMania (Stadium, Canyon and Valley).
oliverde8
Posts: 1286
Joined: 16 Jun 2010, 07:33
Location: in a Blue Box

Re: [B3.1][DedicatedServer] Memory leak

Post by oliverde8 »

Well I had come here earlier saying I didn't have a leak, well seems I was wrong :shock:

I have 4 empty servers all of them are using 400mb or more. I have 2 Elite 1 Melee and 1 Stadium TA.

CPU : Intel i3 2130 - 3.4 * 2
RAM : 8Gb
OS : Ubuntu 12.04.2 LTS 64 bit.

But on the other hand on my second server 1 server runing Canyon TA 100mb memory usage

CPU : intel Pentium II/III not sure 800MHZ
RAM : 256Mb
OS ; Ubuntu 10.04 LTS 32 bit.
Image
Developper for The next generation, Clean and Powerfull controller eXpansion for your SM & TM server . Working on eXpansion² with full MP4 support and many other awesome features...
Bueddl
Posts: 165
Joined: 27 Jun 2010, 11:39

Re: [B3.1][DedicatedServer] Memory leak

Post by Bueddl »

Status:
Probably fixed since Release 2013-04-11.
See here for more details: http://forum.maniaplanet.com/viewtopic. ... 61&t=18545

Thanks Xavier! :thumbsup:
http://www.tmserver.org | Mania Exchange
═╦═╔╦╗² | MP4 Beta
Bueddl
Posts: 165
Joined: 27 Jun 2010, 11:39

Re: [B3.1][DedicatedServer] Memory leak

Post by Bueddl »

Confirming, that the server is still leaking memory, but less than before!

http://i.imgur.com/99GJz1h.jpg
http://www.tmserver.org | Mania Exchange
═╦═╔╦╗² | MP4 Beta
Locked

Return to “Maniaplanet Reports”

Who is online

Users browsing this forum: No registered users and 1 guest