I have a spring boot jar file running in Amazon ec2 .
It do very basics thing take small entity from database build url from entity and call third party api .that's it. but it taking memory of almost 2gb sometimes . number of request also like 100 per day.
when i try with j profiler it showing some 200mb usage but linux showing 1400mB idle what might be the issue? how to track it.
Asked
Active
Viewed 1,150 times
2
-
The image of the jprofiler shows, that you are watching the HEAP space, which is at ~250MB. Did you checkt the other spaces? What are their numbers? – Korashen Nov 07 '17 at 08:29
-
do you have enabled actuator ? you can capture metrics using that as well and it shows you exactly how much your app is consuming – MohamedSanaulla Nov 07 '17 at 08:42
-
other means code ,meta data size, othe type of heap ? those are like 20-50mb only – trinadh k Nov 07 '17 at 09:01
-
What is your -Xmx value? – Ingo Kegel Nov 07 '17 at 09:48