5 Replies Latest reply on Aug 25, 2011 10:30 AM by peterj

    JBoss Memory Usage

    arka.sharma

      Hi,

       

        I have successfully run jboss 5.1.After that I obtained the process id using ps.After getting process id I did pmap <jboss-process-id> it gave me total memory usage 5616 KB.After deploying an application I did the same it gave me 5208 KB.What I expect is that after deploying an application memory usage should increase.May be I'm wrong.Anybody please give some idea.

       

      Regards,

      Arka

        • 1. Re: JBoss Memory Usage
          peterj

          I suspect that you are looking at heap usage, which changes constantly. A drop in heap usage would be apparent after a garbage collection.

          • 2. Re: JBoss Memory Usage
            arka.sharma

            I am using pmap to display the memory usage.Now what I want is that I want to check how much memory only JBoss is consuming,and after deploying an apllication how much memory is being consumed ? And note down the difference between two.

            • 3. Re: JBoss Memory Usage
              peterj

              What you are trying to do will not work. In your scenario neither JBoss AS nor your application are using all of the heap space that they require - once you have users accessing the system the heap usage of both JBoss AS and your application will go up dramatically. The only way to tell how much heap/memory you will need is to run load tests and analyze the garbage collection data.

              • 4. Re: JBoss Memory Usage
                arka.sharma

                I took memory statistics before starting JBoss by /proc/meminfo and I did the same after starting JBoss.After comparing free memory I got a difference of 414MB.So is this much amount of memory consumed by JBoss only ?

                • 5. Re: JBoss Memory Usage
                  peterj

                  Yes, that is a faiurly good indicator of memory usage provided that there was not another java process running previously. Here is a discussion about memory usage:

                  http://www.coderanch.com/t/111262/Linux-UNIX/read-memory-usage-process-running#560894