I 'd like to know if there's an optimal garbage collection frequency for l2 servers?
What I mean is the following: While there are only 2-3 players on the server (being in testing phase ofc) it takes about 1,5-2 hours for the used memory to increase by 500mb. Once GC cleans up, it seems to reclaim all previously used memory, which I assume it means there's little to no memory leak. (Correct me if im wrong, ty).
Testing many aspects of the game, instances, events, or other custom features I've added/created, I found no serious spikes in memory usage.
Except for one thing: I made a custom stats command which pops-up a html window with various stats including str,dex, etc, p.atk, cast, and other stats that are not displayed on the character tab, such as pvp defense, etc. Technically it calls a lot of the character information at once.
When I keep spamming this command the memory usage rises very fast, since it refreshes these infos again and again. Naturally GC triggers and reclaims the memory all the same.
So my question is: Does it actually matters how often GC runs, or it doesn't really matter as long as it reclaims all the used memory?
Question
Horse
Hi.
I 'd like to know if there's an optimal garbage collection frequency for l2 servers?
What I mean is the following: While there are only 2-3 players on the server (being in testing phase ofc) it takes about 1,5-2 hours for the used memory to increase by 500mb. Once GC cleans up, it seems to reclaim all previously used memory, which I assume it means there's little to no memory leak. (Correct me if im wrong, ty).
Testing many aspects of the game, instances, events, or other custom features I've added/created, I found no serious spikes in memory usage.
Except for one thing: I made a custom stats command which pops-up a html window with various stats including str,dex, etc, p.atk, cast, and other stats that are not displayed on the character tab, such as pvp defense, etc. Technically it calls a lot of the character information at once.
When I keep spamming this command the memory usage rises very fast, since it refreshes these infos again and again. Naturally GC triggers and reclaims the memory all the same.
So my question is: Does it actually matters how often GC runs, or it doesn't really matter as long as it reclaims all the used memory?
3 answers to this question
Recommended Posts