-
1. Re: JBoss Memory Usage
peterj Aug 23, 2011 11:05 AM (in response to arka.sharma)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 Aug 24, 2011 2:32 AM (in response to peterj)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 Aug 24, 2011 9:37 AM (in response to arka.sharma)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 Aug 25, 2011 2:08 AM (in response to peterj)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 Aug 25, 2011 10:30 AM (in response to arka.sharma)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