Profile Image
hiranya

help me to resolve outofmemory error in jmeter run

Hi Whenevr i trigger the test am getting OutofMemory Exception in Jmeter for every 20 users. please help me on the same to resolve this



Report URL - https://fastthread.io/my-thread-report.jsp?p=c2hhcmVkLzIwMjEvMDcvMTYvLS10aHJlYWRfZHVtcF8yMDIxMDcxNl8wOTQ5MTNfODQ3LmxvZy0tMTUtMjUtODs7LS10aHJlYWRfZHVtcF8yMDIxMDcxNl8xMDIzMDhfNTQ2LmxvZy0tMTUtMjUtOA==

  • outofmemoryexception

  • jmeterrun

Please Sign In or to post your comment or answer

Profile Image

Ram Lakshmanan

Hello Hiranya!

 

 Greetings. I reviewed your thread dumps. I don't see any problems there. You are having ~33 threads.

 

You can diagnose Memory problem either through a manual or automated approach. 

 

Manual approach

 

In the manual approach, you need to capture heap dump as the first step. Heap dump is a snapshot of memory, which shows all the objects in memory, values contained by those objects, and their references. You can capture heap dump using one of the 7 approaches given here . But an important criteria is: You need to capture the heap dump right before OutOfMemoryError is thrown. If you are going to capture a heap dump, after OutOfMemoryError has occurred, then leaking objects can get garbage collected, and it will become hard (or even impossible) to diagnose the problem. Once heap dumps are captured, you need to import the heap dumps from your production servers to your local machine. From your local machine you can use heap dump analysis tools like jHat, HeapHero, Eclipse MAT to analyze the heap dumps. Here is a video tutorial, which may assist you with it.

 

Automated approach

 

You can use root cause analysis tools like yCrash - which automatically captures application-level data (thread dump, heap dump, Garbage Collection log) and system-level data (netstat, vmstat, iostat, top, top -H, dmesg, kernel parameters…). Besides capturing the data automatically, it marries these two datasets and generates an instant root cause analysis report. Below is the report generated by the yCrash tool when the above sample program is executed:

 

Fig: yCrash tool pointing out the root cause of OutOfMemoryError

 

You can notice the yCrash tool precisely pointing out the root cause of memory leak. You can register here to get a 14 day trial of yCrash.

 

 

Got something else on mind? Post Your Question

Not the answer you're looking for? Browse other questions tagged
  • outofmemoryexception

  • jmeterrun