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 ]
|