-
Notifications
You must be signed in to change notification settings - Fork 41.4k
Description
We have created one microservice with single endpoint. This api consist of single path variable and it is just returning OK response.
In real time, it will have different processing mechanism but for testing and POC purpose we have kept it simple.
Now, When we generate load with jmeter for this particular api and pass in random path variable values using random variable in jmeter then we have observed that memory is constantly increasing over a period of time and objects are not getting GC.
spring boot version:- 2.3.1 RELEASE
dependencies:- spring-boot-starter-web, spring-boot-starter-security, spring-boot-starter-actuator
Sample api:- /app/ping/{id} GET
Jmeter :- path = /app/ping/${random_var} - random_var having value in between 1 - 100000
Number of Threads:- 60
Ramp Up Seconds:- 1
Loop Count:- Forever
Spring boot app configuration:- -Xmx150m
Heap Dump:- Attached
VisvualVM screenshot:- Attached
Leak Suspect: Attached
heapdump-1600192132939_Leak_Suspects.zip
Please let me know If I am missing something.