Thread: VisualVM graph question

Results 1 to 3 of 3
  1. #1 VisualVM graph question 
    Server developer


    Join Date
    Jul 2010
    Posts
    881
    Thanks given
    265
    Thanks received
    55
    Rep Power
    94
    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)



    Attached image

    Thanks


    I am the one who knocks
    - - - - -

    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Sep 2011
    Posts
    1,140
    Thanks given
    385
    Thanks received
    398
    Rep Power
    474
    It is normal for those things to grow then suddenly drop due to the garbage collector.
    Reply With Quote  
     

  3. #3  
    Server developer


    Join Date
    Jul 2010
    Posts
    881
    Thanks given
    265
    Thanks received
    55
    Rep Power
    94
    Just updated my findings, what are you thinking?


    I am the one who knocks
    - - - - -

    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. My clientframe + question.
    By The kw in forum Graphics
    Replies: 14
    Last Post: 11-13-2007, 05:20 AM
  2. A Client Question
    By Mr Blah Man in forum RS2 Client
    Replies: 4
    Last Post: 10-27-2007, 10:38 AM
  3. A question
    By Fallen Azn SinZ in forum RS2 Client
    Replies: 2
    Last Post: 09-15-2007, 03:12 AM
  4. Ask your GFX Questions in this forum!
    By Bullet in forum General
    Replies: 0
    Last Post: 07-20-2007, 05:48 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •