To get the gc views as shown in the slides, you only need to pass a
few java gc options ("-Xloggc:target/logs/krati.gc -XX:
+PrintGCDetails") to the test you run and visualize the gc log using
gcviewer
You can get gcviewer from
http://www.tagtraum.com/gcviewer.html and
you will see detailed explanations about gc views here.
In the latest release 0.3.9 of krati, you can do the following to a
run test
mvn test -Dtest=TestDataPartition -Dkrati.test.jvm.args="-
Xloggc:target/logs/krati.gc -XX:+PrintGCDetails" -
Dkrati.test.idCount=5000000 -Dkrati.test.numReaders=4 -
Dkrati.test.hitPercent=10 -Dkrati.test.initLevel=8 -
Dkrati.test.runTimeSeconds=600
This test runs approximately 600 seconds after the initial bootstrap.
It has 1 writer and 4 concurrent readers which hit 10% values from a
rang [0, 5000000).
After the test is done, you can check target/logs/ which lists three
files: krati.gc, krati.log and stats.log. You can use gcviewer to open
target/logs/krati.gc to see the gc views.
Thank you.
-jingwei
On Jun 6, 6:08 pm, cburroughs <
chris.burrou...@gmail.com> wrote:
> The appendix tohttp://
sna-projects.com/krati/slides/krati_vs_bdb.pdf