简体   繁体   中英

how to use GCMV in Eclipse?

All in the title.

I just found this plugin in Eclipse to evaluate my WebApp running on a tomcat6 server. After I open the perspective GCMV and turn on the server, it shows nothing at all.

I've done some search about GCMV tutorial Eclipse etc. But didn't find anything interesting.

Well I know I'm such an idiot, so can someone give some instructions about how to use it?

When in the GCMV perspective, you should Open the File menu and use Load File ...

The chart will show up in the center panel.

You should see a templates panel on the left side which items let you switch between charts.

GCMV doesn't work on a running JVM. It is used offline after the application finishes.

To use it, do the following:

  1. Add the following VM argument to your command line to generate a gc log file:

-verbose:gc -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Xloggc:[log file location]

  1. From GCMV perspective use File->Load File... with the file generated in step 1.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM