Author Topic: [linux] bundled server launcher  (Read 2045 times)

kyokei

  • Sr. Member
  • ****
  • Posts: 475
    • View Profile
[linux] bundled server launcher
« 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.

ai_enabled

  • AtomicTorch Founder
  • Hero Member
  • *****
  • Posts: 1027
    • View Profile
Re: [linux] bundled server launcher
« Reply #1 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!

kyokei

  • Sr. Member
  • ****
  • Posts: 475
    • View Profile
Re: [linux] bundled server launcher
« Reply #2 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 :)

ai_enabled

  • AtomicTorch Founder
  • Hero Member
  • *****
  • Posts: 1027
    • View Profile
Re: [linux] bundled server launcher
« Reply #3 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!
« Last Edit: April 14, 2015, 01:02:39 am by ai_enabled »

kyokei

  • Sr. Member
  • ****
  • Posts: 475
    • View Profile
Re: [linux] bundled server launcher
« Reply #4 on: April 15, 2015, 06:22:28 am »
Updated to 1.2.7 and used the 64bit bundled launcher :)

ai_enabled

  • AtomicTorch Founder
  • Hero Member
  • *****
  • Posts: 1027
    • View Profile
Re: [linux] bundled server launcher
« Reply #5 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).

kyokei

  • Sr. Member
  • ****
  • Posts: 475
    • View Profile
Re: [linux] bundled server launcher
« Reply #6 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

ai_enabled

  • AtomicTorch Founder
  • Hero Member
  • *****
  • Posts: 1027
    • View Profile
Re: [linux] bundled server launcher
« Reply #7 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!

kyokei

  • Sr. Member
  • ****
  • Posts: 475
    • View Profile
Re: [linux] bundled server launcher
« Reply #8 on: April 17, 2015, 03:33:12 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