Add the following parameters to the Eclipse.ini configuration file in the Eclipse root directory:-VERBOSE:GC (Turn on print garbage collection log)-xloggc:eclipse_gc.log (Set the file that the garbage collection log prints, the file name can be customized)-xx:+printgctimestamps (time format when the garbage collection time information is printed)-xx:+printgcdetails (Print garbage collection details)
This is a small LGame-Simple-0.2.5-based application that provides simple analysis of user-specified GC log files (only generated by Sun JRE. PS: In this example, we have also made a preliminary attempt to draw a dynamic chart (it is quite painful to say that the graphic library like jfreechart is good, or you can easily write a small graphics library ...... But that's n's future plan ......).
Technically
GC log Switch
Enter setdomainenv. Sh in the corresponding domain directory
Java_options = "added later
$ {Java_options}-verbosegc-xverboselog:/home/WebLogic/BEA/GC. 'date + % Y % m % d _ % H % m % s'
Therefore, the GC switch is enabled.
Every showdown time (including downtime), the Weblogic instance generates a
JoinWrapper.java.additional.5=-xx:+printgcWrapper.java.additional.6=-xx:+printgcdetails#wrapper. Java.additional.7=-xx:+printgc:printgctimestampsWrapper.java.additional.7=-xloggc:gc.logWrapper.java.additional.8=-xx:+printgcapplicationstoppedtimewrapper.java.additional.9=-xmn1200mWrapper.java.additional.10=-xx:+useconcmarksweepgcWrapper.java.additional.11=-xx:+useparnewgcWrapper.java.additional.12=-xx:+cmsparallelremarkenabledWrapper.java.additional.13=-xx:+usecmscompactatfullcollectionPrint a
The boot log always loops:1.159:application time:0.8766273 seconds1.160:total time for which application threads were stopped:0.0001140 seconds, stopping threads took:0.0000351 secondsSearch results:This means that the application executes for 0.87 seconds, and the GC thread causes a pause time of approximately 0.0001140 seconds. Since the program has been recycled several times, you can see that there are
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.