I run one of those servers with a fairly large amount of addons, and for a while now we've had an issue with dropping players due to memory leaks.
Based on viewing the task manager prior to crashing and crash-logs, we've confirmed that Gmod is crashing due to this memory leak.
HOWEVER, the server itself does not crash, and players reconnect to find the map in the same state it was in prior to crashing.
Is there any way to pinpoint the lua file(s) responsible?
There are only a handful of ways to have a memory leak in the Lua state, and thus you can pinpoint methods that could be causing it. Specifically, I would look for any addons that create a large amount of Materials, CSEnts, or any other userdata that is never freed.
If you're uncertain that it's a memory leak, it might be worth seeing what lua scripts are continuously running by using a profiler tool.
Sorry, you need to Log In to post a reply to this thread.