Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

charlesk40/java-gc-example

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

java-gc-example

##Building:

javac src/com/gc/example/GCExample.java -d `pwd`; jar cvfm GCExample.jar src/com/gc/example/manifest.txt com/gc/example/GCExample.class;

##Running with GC options (JDK 11):

rm -f `pwd`/gc*; java -Xms50m -Xmx50m -Xlog:gc*=debug:file=`pwd`/gc.log:tags,time:filecount=10,filesize=4M -jar GCExample.jar

##Running with JFR options (JDK 11):

java -Xms50m -Xmx50m -XX:+FlightRecorder -XX:StartFlightRecording=disk=true,maxage=2h -jar GCExample.jar

##Taking the dump:

jcmd 25270 JFR.dump name=1 filename=`pwd`/gc.jfr

##Open JFR file with Java Mission Control and analyze.

Running GCViewer to analyze gc logs:

java -jar gcviewer-1.36.jar

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.