AnsweredAssumed Answered

EPAgent plugin- get GC states from server log

Question asked by WeiZ on Jul 2, 2012
Latest reply on Jul 27, 2012 by Srikant.Noorani
Hi all,

I want to write a EPAgent perl plugin to monitor verbose GC from server log?

here is the example of verbose GC from server log.

31301.271: [GC [PSYoungGen: 2692846K->22439K(2734336K)] 6196730K->3535463K(8326784K), 0.0453490 secs] [Times: user=0.19 sys=0.00, real=0.05 secs]

I know how to parse log from perl scripts, but since the logging keeps appending to the end of the log files , and we also rotate log every night, so the file got truncated at night...
I think the plugin need to be stateful ,,, but not sure if perl scripts have the strategy to read growthing log file...

Any idea?

Thanks and regards,