I have a Jetty application with a Jersey servlet. I am running continuous tests and see that the RES memory keeps increasing with top
. I am using a threadpool in Jetty and setting max threads to 50. I do see Jetty recycling threads after some time since the ids keep going up like qtp1849433705-100
. I believe this is ok or do I need some other setting?
I ran VisualVM to analyze if I have a leak. I ran it for a while and I see no apparent spikes either though the RES space gradually goes up. I ran a pmap too and do see several ``anon``` blocks but that doesn't give me a good sense if something is wrong.
Is there some other way to detect if I have a leak?