AtomicTorch Studio Forums

VoidExpanse => Bug reports => Topic started by: kyokei on April 13, 2015, 11:20:46 PM

Title: [linux] bundled server launcher
Post by: kyokei on April 13, 2015, 11:20:46 PM
Hey AI,

So this morning I checked the forums seeing that someone mentioned that kunix was down. Checked myself and it was.
I logged into my server and saw that the session in my screen was still active but it was stuck on saving. When checking htop I saw that all 8 cores were fully in use.

I had to manually kill the bundled server launcher.

Logs: (not sure if you can find anything usefull in there)
https://cloud.kunix.org/index.php/s/zyOF1iABe155AGX

I have to say that when I launched it last night it was running fine.
I have started it again with the bundled launcher and will keep monitoring it during the day.
Title: Re: [linux] bundled server launcher
Post by: ai_enabled on April 14, 2015, 12:31:17 AM
Hi!
Thanks for reporting.
It seems that was caused by a massive memory leak:
total_memory_gc_mb=2120.23
total_memory_process_mb=3268.65

The bundled server should run fine as it uses the same code, as non-bundled Mono... Will investigate it!

Regards!
Title: Re: [linux] bundled server launcher
Post by: kyokei on April 14, 2015, 12:36:42 AM
Checked kunix again, indeed a mem leak - sitting idle for a little more than an hour and the ram usage was above 1k.
Switched back to the exe executable.

Goodluck :)
Title: Re: [linux] bundled server launcher
Post by: ai_enabled on April 14, 2015, 12:49:18 AM
Thanks for the fast response.
It seems we should not use Mono 3.12 as it much slower on 64-bit in our case and causes memory leaks.
I will rebuild bundles with a previous stable Mono version.
Regards!
Title: Re: [linux] bundled server launcher
Post by: kyokei on April 15, 2015, 06:22:28 AM
Updated to 1.2.7 and used the 64bit bundled launcher :)
Title: Re: [linux] bundled server launcher
Post by: ai_enabled on April 15, 2015, 08:22:32 PM
How it works for you now?
BTW, 32-bit version is uses nearly twice less memory with nearly the same performance (and, I think, faster saves as it doesn't require serialize so much data from memory to create the savegame).
Title: Re: [linux] bundled server launcher
Post by: kyokei on April 15, 2015, 09:29:19 PM
Server hasn't crashed - checked the logs, saw that people played on it.
It runs now idle at 8-10% cpu (same as 32bit one) and is now at 824 mb ram.

I wasn't yet able to play on the server yet as I wasn't home. I will have some time after work today
Title: Re: [linux] bundled server launcher
Post by: ai_enabled on April 17, 2015, 02:49:42 AM
Great! Please send me the log file later, I want to look on the memory stats.
Regards!
Title: Re: [linux] bundled server launcher
Post by: kyokei on April 17, 2015, 03:33:12 AM
Quote from: ai_enabled on April 17, 2015, 02:49:42 AM
Great! Please send me the log file later, I want to look on the memory stats.
Regards!
PM sent with link to all the logs