Garbage Collection gets huge

Started by p0ki, September 08, 2015, 05:41:06 AM

p0ki

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?

Silberspeer

Ok, Thanks for the logs, we will check them.

ai_enabled

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.

p0ki

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 ;)

ai_enabled

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

Fixed at v1.5.1.
The amount of used memory is much reduced now. And save creation should be a lot faster.
Regards!

kyokei

2.75 seconds for saving :) quite impressive AI!