Analyze Memory Usage of WSO2 ESB




In order to analyze an out of memory error, first, you should need a heap dump of your JVM process.

Execute one of the below command to find the process id of WSO2 Instance

ps -aux | grep 'bootstrap'

jps

Take Thread Dump

jstack <PID>  >> thread_dump.log

Take Heap Dump

jmap -dump:file=heap_dump.bin <PID>


Once you have a memory dump, can analyze it using Eclipse Memory Analyzer tool.

Comments