Answer the question
In order to leave comments, you need to log in
How to fix Spring (MVC, Security) + Hibernate + Tomcat memory leak?
There is an application on Sprimg (MVC, Security) + Hibernate, I run it on Tomcat. The application has about 50 tables in the database, 80 models, etc. (this number is apparently due to a misunderstanding of the implementation of relationships between tables)
If you suddenly need it, the code: https://github.com/StepanovNickolay/myCRM
Memory leaks occur when starting:
Answer the question
In order to leave comments, you need to log in
Are you sure it's a leak? It seems that even in the idle state, the application is constantly processing something, creating objects, which it then does not use. These unused objects are removed by the collector. Otherwise, you would have grown the minimum amount of memory after the work of the collector.
Observe the objects on the heap, determine which objects are removed after a large amount of garbage collection, and find the place in the code where they are created. And then think about it, maybe you don’t need to create them all the time.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question