Skip to content

high memory usage for spring boot Path variable api #23323

@rahulsingh336

Description

@rahulsingh336

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

image

heapdump-1600192132939_Leak_Suspects.zip

heapdump-1600192132939.zip

image

Please let me know If I am missing something.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions