0

I have 1 microservice developed based on wso2 msf4j(on java) This microservice runs very well when there is small amount of requests. But after increasing the amount of requests, I saw it became crashed. I can't see anything in logs(the log4j mode is TRACE). I can guess this is memory problem, because the free memory in high amount of requests is very small ( 10Mb), but I am not sure that was the such reason for that crash.

Is there anyway to understand the exact reason of this issue ?

Hoang Doanh
  • 99
  • 2
  • 11
  • In all cases you should monitor the JVM (e.g. using the jconsole of the JDK). Indeed 10MB of free memory isn't very much mainly when using web services.. – gusto2 Oct 13 '16 at 08:13
  • As @GabrielVince mentioned monitor memory usage using jconsole. If you experience any Out of memory issue, can you get a memory/heap dump and check? – Thusitha Thilina Dayaratne Oct 14 '16 at 09:13
  • @Thusitha is right, the parameters are XX:+HeapDumpOnOutOfMemoryError (and XX:HeapDumpPath=/tmp/dumpfile ) – gusto2 Oct 14 '16 at 09:23

0 Answers0