facebook

getting a gc log when running tomcat 5

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #221728 Reply

    David Baker
    Member

    I want to get a gc log when I run my web application.

    How can I get the -Xlogg:log.gc and -verbose:gc parameters to the jvm?

    #221820 Reply

    Greg
    Member

    Go to Window > Preferences > MyEclipse > Application Servers > Tomcat 5 > JDK Then under Optional Java VM Arguments, enter in

    -Xloggc:log.gc

    I noticed that you had typed -Xlogg:log.gc. I’m assuming that is just a typo but I wanted to just make sure.

    You don’t need to put the -verbose:gc argument since the -Xloggc:log.gc option overrides it. If you just use log.gc as the file name, that file will be generated in tomcat’s /bin directory.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: getting a gc log when running tomcat 5

You must be logged in to post in the forum log in