Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 430
ROROROOROROR Avatar asked Jun 20 '14 13:06

ROROROOROROR


2 Answers

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.
like image 58
Arye Shemesh Avatar answered Sep 19 '22 12:09

Arye Shemesh


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.

like image 43
cfalguiere Avatar answered Sep 21 '22 12:09

cfalguiere