It is normal for those things to grow then suddenly drop due to the garbage collector.
|
how did this happen?
** answers to the questions I found and what I think
-- Heap size growing -> could be caused by a memory leak, which is bad. Once it hit's the max. ram you assigned it, it will go very slow & cause quite alot of lagg.
-- Used heap -> the memory it currently needs, and when it hits a certain point, it drops due to garbage collector.
The heap size won't reset once it reaches its limit, it can go down though as I am currently having.
Having lots of blue under your graph is bad, it is memory that isn't collected by the garbage collector and just sits there doing nothing, so keep this as low as you can.
After redoing some things in my source, the ram usage got much more stable, as it seems for now. It just adjusts to the player size that's currently online and when less get online, the heap size will drop.
Before
~ was also around 750mb, but it just kept growing
Reaching its limit before
~ kept grewing till this
After
I think the reason why it just goes up that much at the beginning is:
- Players are logging in
- There's a hashmap being created and put all the objects into that are on the server to check if an object exists or not.
Reaching its limit after
-- hasn't happened yet.
Hey,
Just found VisualVM out today and had a small question about it. Okay;
I allocate 2048 MB ram to my server via the run.bat and when I open the VisualVM is says that he heap size isn't that big as 2048 mb. It is currently around 550 MB / 670 MB and growing.
Now another question; is it weird that this head size is growing? Or is it just growing to that 2048 MB? And once it hits 2048 MB, will it just reset to 500 MB again?
Also, when I go to 'sampler' and look at the 'memory one'; The char[] one will build from around ~ 360 and will drop to ~ 120 and has also been increasing, is this something good or bad, or is it supposed to work that way?
Since I am not really familair to this program, It'd be great if someone could inform me just a little bit.
(This is btw with 50+ players online)
Thanks
It is normal for those things to grow then suddenly drop due to the garbage collector.
Just updated my findings, what are you thinking?
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |