Author Topic: Garbage Collection gets huge  (Read 1650 times)

p0ki

  • Full Member
  • ***
  • Posts: 113
    • View Profile
Garbage Collection gets huge
« on: September 08, 2015, 05:41:06 am »
Using mono to launch the server doesn't make it crash but I noticed that after a while the garbage collection hits above 1k and then you get the symptoms p0ki said. Server becomes choppy and sluggish until a restart of the VE server is done.
I have the same problem and would like to contribute with my logfiles.

Garbage collection starts at 215 MB and goes to 662 MB within 6 days.
https://www.dropbox.com/s/exf1o9ccvv74kte/Server_VoidExpanse_2015-08-28_23-03.rar

The server didn't stall like kyokei, but it sure is noticeable. How much garbage is considered normal?
Playing on:
[EU][kG]kunix.org

Silberspeer

  • EX - AtomicTorch Team
  • Jr. Member
  • *****
  • Posts: 94
    • View Profile
Re: Garbage Collection gets huge
« Reply #1 on: September 09, 2015, 01:07:57 am »
Ok, Thanks for the logs, we will check them.

ai_enabled

  • AtomicTorch Founder
  • Hero Member
  • *****
  • Posts: 989
    • View Profile
Re: Garbage Collection gets huge
« Reply #2 on: September 09, 2015, 01:24:42 am »
I have the same problem and would like to contribute with my logfiles.

Garbage collection starts at 215 MB and goes to 662 MB within 6 days.
https://www.dropbox.com/s/exf1o9ccvv74kte/Server_VoidExpanse_2015-08-28_23-03.rar

The server didn't stall like kyokei, but it sure is noticeable. How much garbage is considered normal?
Thanks for the logs. Could you restart the server (loading current world savegame), let it run for a few hours and upload the log file?
We're investigating the memory leaks. It seems the javascript library is actively consumes memory and never releases it. We will try to fix memory issues with the next patch.

p0ki

  • Full Member
  • ***
  • Posts: 113
    • View Profile
Re: Garbage Collection gets huge
« Reply #3 on: September 09, 2015, 12:34:06 pm »
Thanks for the logs. Could you restart the server (loading current world savegame), let it run for a few hours and upload the log file?
Sure, here it is:
https://www.dropbox.com/s/houo5xk9r2y2kwe/Server_VoidExpanse_2015-09-09_20-05.rar?dl=0

Also during this run I had problems with the autopilot which I haven't had before. It was always shuffling to the side even though there was no debris in the way.
Odd, but not the reason I posted this ;)
Playing on:
[EU][kG]kunix.org

ai_enabled

  • AtomicTorch Founder
  • Hero Member
  • *****
  • Posts: 989
    • View Profile
Re: Garbage Collection gets huge
« Reply #4 on: September 09, 2015, 11:33:21 pm »
p0ki, thanks for the logs. Definitely there is memory leak as after restart memory usage decreases to ~400 MB.
About the autopilot - yes, sometimes it's stupid... we need to fully re-done it to make any improvements with it. So this's unlikely to be fixed with the upcoming patch.
Regards!

ai_enabled

  • AtomicTorch Founder
  • Hero Member
  • *****
  • Posts: 989
    • View Profile
Re: Garbage Collection gets huge
« Reply #5 on: October 07, 2015, 08:51:29 pm »
Fixed at v1.5.1.
The amount of used memory is much reduced now. And save creation should be a lot faster.
Regards!

kyokei

  • Sr. Member
  • ****
  • Posts: 471
    • View Profile
Re: Garbage Collection gets huge
« Reply #6 on: October 07, 2015, 10:20:01 pm »
2.75 seconds for saving :) quite impressive AI!