Skip to main content



      Home
Home » Eclipse Projects » Memory Analyzer » Need help to fix the Spring SessionFactoryImpl Memory leak with Eclipse Memory Analyser(Need help to fix the Spring SessionFactoryImpl Memory leak with Eclipse Memory Analyser)
Need help to fix the Spring SessionFactoryImpl Memory leak with Eclipse Memory Analyser [message #1772888] Mon, 18 September 2017 08:11 Go to next message
Eclipse UserFriend
Hi All

I have used Eclipse Memory Analyser to analyse the Heap Dumps of my Spring MVC application. It shows there is a potential memory leak with the Spring SessionFactoryImpl, I am unable to figure out what exactly is causing this issue.

I am attaching the screen shots here of the complete memory analyser.

Kindly request someone to please help me.
Re: Need help to fix the Spring SessionFactoryImpl Memory leak with Eclipse Memory Analyser [message #1772983 is a reply to message #1772888] Tue, 19 September 2017 12:11 Go to previous messageGo to next message
Eclipse UserFriend
kindly someone please help
Re: Need help to fix the Spring SessionFactoryImpl Memory leak with Eclipse Memory Analyser [message #1773007 is a reply to message #1772983] Wed, 20 September 2017 04:14 Go to previous messageGo to next message
Eclipse UserFriend
As seen on page 22, 50 of 78 MB is consumed by QueryPlanCache.

So you need something like https://stackoverflow.com/questions/31557076/spring-hibernate-query-plan-cache-memory-usage

On the other hand, the memory consumption is just 50M, so you might want just increase the heap size and see how it would go.
Re: Need help to fix the Spring SessionFactoryImpl Memory leak with Eclipse Memory Analyser [message #1773103 is a reply to message #1773007] Thu, 21 September 2017 10:14 Go to previous messageGo to next message
Eclipse UserFriend
Hi

Thanks a lot for the help. As mentioned I would like to increase the HEAP size and see if it all goes well.

Also please let me know what exactly is causing the WebClasscloader to occupy 40M, could you please let me know how to trace the HashMap and find out what are the objects holding back in memory and why this HashMap is occupying 40M memory.

Please find the screen shot attached.

Thanks,
-Hari.
  • Attachment: Fig -1.PNG
    (Size: 122.74KB, Downloaded 290 times)
Re: Need help to fix the Spring SessionFactoryImpl Memory leak with Eclipse Memory Analyser [message #1773261 is a reply to message #1773103] Mon, 25 September 2017 14:23 Go to previous messageGo to next message
Eclipse UserFriend
Can somebody please help how to analyse the hashmap[] consuming 40mb memory, please see the screenshot attached in the previous thread
Re: Need help to fix the Spring SessionFactoryImpl Memory leak with Eclipse Memory Analyser [message #1773264 is a reply to message #1773261] Mon, 25 September 2017 14:56 Go to previous messageGo to next message
Eclipse UserFriend
Have you tried "Show retained set" on the HashMap in question?

E.g.: https://www.ibm.com/developerworks/community/blogs/kevgrig/entry/advanced_heapdump_analysis_retained_sets
Re: Need help to fix the Spring SessionFactoryImpl Memory leak with Eclipse Memory Analyser [message #1773289 is a reply to message #1773264] Tue, 26 September 2017 02:22 Go to previous messageGo to next message
Eclipse UserFriend
Hi

I have tried the "Show retained size" as mentioned below, Please find the document attached.

Kindly please help.

Thanks
-Hari

[Updated on: Tue, 26 September 2017 05:05] by Moderator

Re: Need help to fix the Spring SessionFactoryImpl Memory leak with Eclipse Memory Analyser [message #1774987 is a reply to message #1772888] Mon, 23 October 2017 04:43 Go to previous message
Eclipse UserFriend
Can someone please help how to analyse the hashmap[] consuming 40mb memory, please see the screenshot attached in the previous thread
Previous Topic:Strange unknown string instance
Next Topic:ParseHeapdump.sh throws error
Goto Forum:
  


Current Time: Sat Jul 05 08:16:24 EDT 2025

Powered by FUDForum. Page generated in 0.23818 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top