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?
Hello there, sorry for the late response, (nobody cares anyway). I remember you, yes you did tried something, but sucked at it. Not a little lick, but sucked hard. No surprise you couldn't handle a single event, not to mention a long term event schedule. Section is long gone. And after all these years, you are still dumb enough to not even try to use a google translator.
I'm sorry for the graveyard digging.. As a good mate, I just had to copy/paste a message, remember I'm just the messenger, NOT ADMIN, NOT GM, and quickly to the topic:
- project is in it's final stages
- staff recruitment shall begin shortly (non fluent english speakers fuck off)
- thank you for the understanding
The end.
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