Regarding Verbose gc output
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix administration > Regarding Verbose gc output




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Regarding Verbose gc output  
Sam


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-22-06 06:39 AM

Hi,

I m getting heap dump error while deploying my application on AIX5.2.

To know exact memory leakedge and crack in it, i have enabled
verbose:gc option enabled.....It starts showing memory usages on
command prompt.

I want to store all verbose:gc.out to a file.......!

How is it possible?

One more thing.......

while running a script i m getting svmon not found.......wht is
this....how can i run this?

Thanks
Samit






[ Post a follow-up to this message ]



    Re: Regarding Verbose gc output  
rc


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-04-06 12:30 PM


> I m getting heap dump error while deploying my application on AIX5.2.
>
> To know exact memory leakedge and crack in it, i have enabled
> verbose:gc option enabled.....It starts showing memory usages on
> command prompt.
>
> I want to store all verbose:gc.out to a file.......!
>

You can just redirect the output of the Java binary to a file, eg:

java -verbose:gc  com.x.Loader 2>&1 | grep 'GC' > /tmp/gc.log

Then, you'll find all lines containing "GC" in the specified file:

cat /tmp/gc.log
[GC 511K->196K(1984K), 0.0048410 secs]
[GC 684K->246K(1984K), 0.0042089 secs]
[GC 728K->364K(1984K), 0.0050664 secs]
[GC 835K->532K(1984K), 0.0036466 secs]
[GC 1010K->675K(1984K), 0.0068208 secs]
[GC 1187K->873K(1984K), 0.0048946 secs]

> One more thing.......
>
> while running a script i m getting svmon not found.......wht is
> this....how can i run this?
>

I don't know AIX very well, but a quick google search showed that svmon
is a tool to monitor memory usage on AIX:

http://www.unet.univie.ac.at/aix/cm...cmds5/svmon.htm

The script you use to start your Java application/server seems to call
it somehow. Maybe it's not installed or you need to specifiy the full
path to it.

Hope that helps
Christian Ramseyer






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:56 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register