...
Code Block |
---|
04/10/2007 12:08:01 +0200 org.archive.jmx.Client PeakUsage: committed: 268435456 init: 268435456 max: 268435456 used: 214605320 |
And a rather stupid script to convert the output into .csv format:
Code Block |
---|
#!/usr/bin/perl -w
my $file="permspace.log";
my ($date,$commited,$init,$max,$used,$newline)="";
open(TMP,$file)|| die "No file to open $file";
while($date=<TMP>){
$commited=<TMP>;
$init=<TMP>;
$max=<TMP>;
$used=<TMP>;
$newline=<TMP>;
my @temp=split(/ \+/,$date);
my @temp2=split(/: /,$used);
print "\"$temp[0]\",$temp2[1]";
}
close(TMP);
|
No doubt, it takes time to know which beans are relevant. I would suggest using jconsole.