Created
March 8, 2016 13:56
-
-
Save gusthavosouza/88d2cac338927e57dc63 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
** Ativa monitoramento remoto | |
** Testes utilizar sem autenticação | |
** Produção não utilizar sem autenticação | |
java -Xmx6m -Dcom.sun.management.jmxremote | |
-Dcom.sun.management.jm\parxremote.port=9000 | |
-Dcom.sun.management.jmxremote.local.only=false | |
-Dcom.sun.management.jmxremote.authenticate=false | |
-Dcom.sun.management.jmxremote.ssl=false | |
** comando para fazer dump automático OutOfMemory | |
java -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/path/ | |
** Cria um dump da memória de uma aplicação que está em execução | |
jmap -dump:live,format=b,file=heap.hprof |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment