informatica:weblogic:heapdump
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
informatica:weblogic:heapdump [2013/08/19 13:51] – jose | informatica:weblogic:heapdump [2019/01/21 13:00] – [Eclipse Memory Analizer] javi | ||
---|---|---|---|
Line 4: | Line 4: | ||
| | ||
Añadir el siguiente parámetro para que haga un heapdump cuando hay un out of memory OOM: | Añadir el siguiente parámetro para que haga un heapdump cuando hay un out of memory OOM: | ||
+ | < | ||
-XX: | -XX: | ||
+ | </ | ||
Se puede añadir en caliente. Primero miramos si lo tiene activado. Nos tenemos que fijar en el sigo - + delante de Heap: | Se puede añadir en caliente. Primero miramos si lo tiene activado. Nos tenemos que fijar en el sigo - + delante de Heap: | ||
+ | < | ||
# jinfo -flag HeapDumpOnOutOfMemoryError <PID> | # jinfo -flag HeapDumpOnOutOfMemoryError <PID> | ||
| | ||
-XX: | -XX: | ||
+ | </ | ||
En este caso tiene un signo - que quiere decir que no lo tiene activado. Lo activamos poniendo el signo +: | En este caso tiene un signo - que quiere decir que no lo tiene activado. Lo activamos poniendo el signo +: | ||
# jinfo -flag +HeapDumpOnOutOfMemoryError <PID> | # jinfo -flag +HeapDumpOnOutOfMemoryError <PID> | ||
| | ||
Comprobamos que lo tiene activado: | Comprobamos que lo tiene activado: | ||
+ | < | ||
# jinfo -flag HeapDumpOnOutOfMemoryError <PID> | # jinfo -flag HeapDumpOnOutOfMemoryError <PID> | ||
| | ||
-XX: | -XX: | ||
+ | </ | ||
====== Generar Heap Dump ====== | ====== Generar Heap Dump ====== | ||
Con la aplicación de Hello World y una instancia de -Xms128m -Xmx128m de weblogic, lanzamos un test de Jmeter de 100 Threads con un Loop Count de 10.000 por ejemplo. A mi me ha generado el HeapDump con formato: jrockit_< | Con la aplicación de Hello World y una instancia de -Xms128m -Xmx128m de weblogic, lanzamos un test de Jmeter de 100 Threads con un Loop Count de 10.000 por ejemplo. A mi me ha generado el HeapDump con formato: jrockit_< | ||
Line 36: | Line 38: | ||
The memory is accumulated in one instance of " | The memory is accumulated in one instance of " | ||
</ | </ | ||
+ | |||
+ | Para indagar el " | ||
+ | |||
+ | https:// | ||
+ | |||
+ | 1. Abrir el archivo " | ||
+ | |||
+ | 2. Tras muuuucho tiempo se abirá el informe | ||
+ | |||
+ | 3. Click en el icono con los engranajes tipo " | ||
+ | |||
+ | 4. Click encima del " | ||
+ | |||
+ | 5. En la parte izquierda identificar " | ||
+ | |||
+ | < | ||
+ | Type|Name | ||
+ | -------------------------------------------------------------------------------- | ||
+ | ref |contextClassLoader|com.ibm.ws.classloader.CompoundClassLoader @ 0x6ffd0bb40 | ||
+ | -------------------------------------------------------------------------------- | ||
+ | </ | ||
+ | |||
+ | 6. Situar el ratón encima, botón derecho, "Go into" | ||
+ | |||
+ | 7. En la parte izquierda identificar " | ||
+ | |||
+ | < | ||
+ | Type|Name|Value | ||
+ | ------------------------------------------------------- | ||
+ | ref |name|war: | ||
+ | ------------------------------------------------------- | ||
+ | </ | ||
+ | |||
+ | A partir de aquí la documentación sugiere indicar el .war (o .ear) al desarrollador y que mire | ||
+ | |||
+ | |||
+ | |||
===== Heap Analyzer (IBM) ===== | ===== Heap Analyzer (IBM) ===== |
informatica/weblogic/heapdump.txt · Last modified: 2019/01/22 08:44 by javi