Find the answer to your Linux question:
Results 1 to 7 of 7
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    RSS memory not tallying with Java Heap


    I have java multi thread socket application running on Centos 6.4 what we notice is RES value is cross 400m which is more then the allocated max heap that is 256m. According to jstat results as below there is no GC happening is this alarming situation? What proactive measures can be taken before things goes worse? The worrying part now is that the RSS keep increasing and below is both my jstat results and also MAT. So what is your suggestion based on the results below.


    Code:
    Timestamp         S0     S1     E      O      P     YGC     YGCT    FGC    FGCT     GCT   
          2331438.3  56.95   0.00  62.79  82.79  80.37   1362   54.337     0    0.000   54.337
          2331443.3  56.95   0.00  62.79  82.79  80.37   1362   54.337     0    0.000   54.337
          2331448.4  56.95   0.00  62.79  82.79  80.37   1362   54.337     0    0.000   54.337
          2331453.4  56.95   0.00  62.79  82.79  80.37   1362   54.337     0    0.000   54.337
          2331458.4  56.95   0.00  62.79  82.79  80.37   1362   54.337     0    0.000   54.337
          2331463.4  56.95   0.00  62.79  82.79  80.37   1362   54.337     0    0.000   54.337
          2331468.4  56.95   0.00  62.79  82.79  80.37   1362   54.337     0    0.000   54.337
          2331473.4  56.95   0.00  63.24  82.79  80.37   1362   54.337     0    0.000   54.337
          2331478.4  56.95   0.00  63.24  82.79  80.37   1362   54.337     0    0.000   54.337
          2331483.4  56.95   0.00  63.78  82.79  80.37   1362   54.337     0    0.000   54.337
          2331488.4  56.95   0.00  63.78  82.79  80.37   1362   54.337     0    0.000   54.337
          2331493.4  56.95   0.00  63.79  82.79  80.37   1362   54.337     0    0.000   54.337
          2331498.4  56.95   0.00  63.79  82.79  80.37   1362   54.337     0    0.000   54.337


    HTML Code:
    Problem Suspect 1 
    
    One instance of "org.jboss.netty.channel.socket.oio.OioWorker" loaded by "org.rzo.yajsw.boot.WrapperClassLoader @ 0xf0002a50" occupies 49,451,672 (75.12%) bytes. 
    
    Keywords
    org.rzo.yajsw.boot.WrapperClassLoader @ 0xf0002a50
    org.jboss.netty.channel.socket.oio.OioWorker
    
    Problem Suspect 2
    
    The class "java.lang.ref.Finalizer", loaded by "<system class loader>", occupies 10,408,112 (15.81%) bytes. 
    
    Keywords
    java.lang.ref.Finalizer

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    13,750
    What does the JMX api's tell you? What are your Java command-line or configuration options regarding GC and heap?
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Hi rubberman,
    I am not using any JMX here. I just configured for heap where both initial and max is 256MB. IS that anything else I should do please advice? Thank you.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    13,750
    Quote Originally Posted by newbie14 View Post
    Hi rubberman,
    I am not using any JMX here. I just configured for heap where both initial and max is 256MB. IS that anything else I should do please advice? Thank you.
    I'm not sure. I can code well in Java, but I am not a Java guru. I'll have to ask some of the experts at the office next week if they know about this issue.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  6. #5
    Hi Rubberman,
    Thank you for you concern and help yes will definitely need your input on why this is behaving like this or its normal behavior till a certain extend?

  7. #6
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    13,750
    Sorry I have been so long responding to this, but I've been up to my eyeballs these past couple of weeks. I'll try to remember to ask one of my Java wizards at work next week (given that it is now Friday going on Saturday)...
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  8. #7
    Dear Nice,
    I am using Centos machine with no gui in it. Will it apply the same I have set both the initial and max heap to 256M already what else can I configure please ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •