AtomicTorch Studio Forums

VoidExpanse => Bug reports => Topic started by: p0ki on September 08, 2015, 05:41:06 AM

Title: Garbage Collection gets huge
Post by: p0ki on September 08, 2015, 05:41:06 AM
Quote from: kyokei on August 27, 2015, 08:58:46 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?
Title: Re: Garbage Collection gets huge
Post by: Silberspeer on September 09, 2015, 01:07:57 AM
Ok, Thanks for the logs, we will check them.
Title: Re: Garbage Collection gets huge
Post by: ai_enabled on September 09, 2015, 01:24:42 AM
Quote from: p0ki on September 08, 2015, 05:41:06 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.
Title: Re: Garbage Collection gets huge
Post by: p0ki on September 09, 2015, 12:34:06 PM
Quote from: ai_enabled on September 09, 2015, 01:24:42 AM
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 ;)
Title: Re: Garbage Collection gets huge
Post by: ai_enabled 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!
Title: Re: Garbage Collection gets huge
Post by: ai_enabled 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!
Title: Re: Garbage Collection gets huge
Post by: kyokei on October 07, 2015, 10:20:01 PM
2.75 seconds for saving :) quite impressive AI!