DX Application Performance Management

  • 1.  EPAgent plugin- get GC states from server log

    Posted Jul 01, 2012 09:52 PM
    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,
    Wei


  • 2.  RE: EPAgent plugin- get GC states from server log

    Posted Jul 09, 2012 05:18 PM
    Any assistance for Wei?

    Thanks,
    Mary


  • 3.  RE: EPAgent plugin- get GC states from server log

    Broadcom Employee
    Posted Jul 12, 2012 12:09 PM
    What version of APM are you using?


  • 4.  RE: EPAgent plugin- get GC states from server log

    Posted Jul 15, 2012 09:40 PM
    Hi Hiko,

    We are using apm 9.0.6,

    Cheers,
    Wei

    hdavis wrote:

    What version of APM are you using?


  • 5.  RE: EPAgent plugin- get GC states from server log
    Best Answer

    Broadcom Employee
    Posted Jul 16, 2012 06:25 PM
    You might want to consider using GC Watch and see if you can modify it to monitor your log.
    You can find a copy in the "Community Documents" under "Tools | Field Extensions."
    I don't think you can run GC Monitor in your 9.0.x agents. The plugin was never updated to run with 9.0.x. The 9.1.x agents has GC Monitor integrated.


  • 6.  RE: EPAgent plugin- get GC states from server log

    Posted Jul 27, 2012 12:46 PM
    Have this in a shell script


    tail -100 server.log |grep PSYoungGe |tail -1


    and put the script in the EPA plugin line.

    This will return the last PSYong. You will have to parse this line to output in a format that EPA understands ( metric name = metric value)