Skip to content

Instantly share code, notes, and snippets.

@gusthavosouza
Created March 8, 2016 13:56
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 gusthavosouza/88d2cac338927e57dc63 to your computer and use it in GitHub Desktop.
Save gusthavosouza/88d2cac338927e57dc63 to your computer and use it in GitHub Desktop.
** 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