Unix administration - Regarding Verbose gc output

This is Interesting: Free IT Magazines  
Home > Archive > Unix administration > September 2006 > Regarding Verbose gc output





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Regarding Verbose gc output
Sam

2006-08-22, 1: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

rc

2006-09-04, 7:30 am


> 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

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com