We deploy the application on a semi-embedded device with limited memory. In an effort to save everything we can, we analyze heaps of application dumps and attack the largest consumers.
We use Spring 2.5 along with Spring DM 1.1, and we notice that some of our packages with more complex Spring contexts use quite a bit of memory, since Spring seems to support the entire graph object containing all the BeanDefinitions that were parsed from XML. I would suggest that most of this is not needed when the application was initialized and everything was entered.
Are there any configuration options for Spring that let me control this behavior? Run in some kind of low memory mode? Discard all unnecessary things? Trading time calculation for size?
java spring heap memory applicationcontext
Boris Terzic
source share