Skip to content

Instantly share code, notes, and snippets.

@jeantil
Last active August 25, 2016 09:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeantil/b631f3d3c2c9faa3ec3212f829298edb to your computer and use it in GitHub Desktop.
Save jeantil/b631f3d3c2c9faa3ec3212f829298edb to your computer and use it in GitHub Desktop.
Mesure de perf JVM

Mesure System

  • sysbench
  sysbench --test=memory --memory-block-size=$size --memory-total-size=10G run
  sysbench --test=cpu --num-threads=1 run
  • dstat: https://github.com/dagwieers/dstat
    • ./dstat/dstat --proc --cpu --cpu-use --sys --mem-adv --swap --page --disk -D total --disk-tps --net --time --output my-dstat-output.csv

Et mon petit script pour parser tout ça: https://github.com/pingtimeout/performance-graphs/blob/master/dstat/dstat-to-gnuplot.py

Mesure JVM

jdk-8-oracle-x64/bin/jmap -heap

-Xloggc:/home/jean/gc.log
-XX:+PrintGCDetails
-XX:+PrintTenuringDistribution
-XX:+PrintGCDateStamps
-XX:+PrintGCCause
-XX:+UseGCLogFileRotation
-XX:NumberOfGCLogFiles=10
-XX:GCLogFileSize=20M
```
* Censum (très bien, mais payant)
* GCViewer (très, très moche, mais gratuit)
* http://gceasy.io/ (limité, mais gratuit)



Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment