Last active
September 1, 2017 19:04
-
-
Save juan-moreno/84742e7374ae4abeb7f773f55363459e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Process (JAVA 7) | |
---------------- | |
# ps -ef | grep java | |
root 11213 11030 20 18:43 pts/0 00:00:01 /usr/bin/java | |
-Dnop -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager | |
-Xmx1g | |
-Djava.endorsed.dirs=/usr/share/tomcat7/endorsed | |
-classpath /usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat-juli.jar | |
-Dcatalina.base=/usr/share/tomcat7 | |
-Dcatalina.home=/usr/share/tomcat7 | |
-Djava.io.tmpdir=/usr/share/tomcat7/temp org.apache.catalina.startup.Bootstrap start | |
BEFORE -JAVA7 | |
root@vagrant-ubuntu-trusty-64:~# /vagrant/check-java-heap-pcnt-old.sh -n Bootstrap -w 80 -c 90 | |
MEM OK - jvm heap usage: 59% | 16.7913 MB out of 28.4375 MB | |
AFTER - JAVA7 | |
root@vagrant-ubuntu-trusty-64:~# /vagrant/check-java-heap-pcnt.sh -n Bootstrap -w 80 -c 90 | |
MEM OK - jvm heap usage: 59% | 16.7918 MB out of 28.4375 MB | |
root@vagrant-ubuntu-trusty-64:~# /vagrant/check-java-heap-pcnt.sh -n Bootstrap -w 80 -c 90 -l current | |
MEM OK - jvm heap usage: 59% | 16.7929 MB out of 28.4375 MB | |
root@vagrant-ubuntu-trusty-64:~# /vagrant/check-java-heap-pcnt.sh -n Bootstrap -w 80 -c 90 -l max | |
MEM OK - jvm heap usage: 1% | 16.7925 MB out of 1024 MB | |
Process (Java8) | |
---------------- | |
# ps -ef | grep java | |
artifac+ 22958 1 0 ago04 ? 02:46:00 /usr/bin/java | |
-Djava.util.logging.config.file=/opt/jfrog/artifactory/tomcat/conf/logging.properties | |
Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager | |
-Djdk.tls.ephemeralDHKeySize=2048 | |
-Djava.protocol.handler.pkgs=org.apache.catalina.webresources | |
-server | |
-Xms512m | |
-Xmx2g | |
-Xss256k | |
-XX:+UseG1GC | |
-XX:OnOutOfMemoryError=kill -9 %p -javaagent:/opt/jfrog/artifactory/tomcat/webapps/newrelic/newrelic.jar | |
-Djruby.compile.invokedynamic=false | |
-Dfile.encoding=UTF8 -Dartdist=rpm | |
-Dorg.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true | |
-Djava.security.egd=file:/dev/./urandom -Dartifactory.home=/var/opt/jfrog/artifactory | |
-Djava.endorsed.dirs=/opt/jfrog/artifactory/tomcat/endorsed | |
-classpath /opt/jfrog/artifactory/tomcat/bin/bootstrap.jar:/opt/jfrog/artifactory/tomcat/bin/tomcat-juli.jar | |
-Dcatalina.base=/opt/jfrog/artifactory/tomcat -Dcatalina.home=/opt/jfrog/artifactory/tomcat | |
-Djava.io.tmpdir=/opt/jfrog/artifactory/tomcat/temp org.apache.catalina.startup.Bootstrap start | |
BEFORE - JAVA8 | |
# ./check-java-heap-pcnt.sh -n Bootstrap -w 80 -c 90 | |
MEM OK - jvm heap usage: 65% | 449.477 MB out of 685.695 MB | |
# ./check-java-heap-pcnt-java8.sh -n Bootstrap -w 80 -c 90 | |
MEM OK - jvm heap usage: 55% | 285.226 MB out of 512 MB | |
AFTER - JAVA8 | |
# ./check-java-heap-pcnt.sh -n Bootstrap -w 80 -c 90 | |
MEM OK - jvm heap usage: 55% | 285.226 MB out of 512 MB | |
# ./check-java-heap-pcnt.sh -n Bootstrap -w 80 -c 90 -l current | |
MEM OK - jvm heap usage: 55% | 285.226 MB out of 512 MB | |
# ./check-java-heap-pcnt.sh -n Bootstrap -w 80 -c 90 -l max | |
MEM OK - jvm heap usage: 13% | 285.226 MB out of 2048 MB | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment