This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

Memory consumption problem

Jun 1st, 2009, 01:02 AM

Hi,
I have added the spring framework to my existing, Cairngorm but after two days work.. the result my project ate 15% more local memory than usual . solution: i did revamp to the older structure by removing spring from my project. I will be much interested to see IoC (especially spring) in my project.

Any help, will be encouraged.
The link to my context.xml for cairngorm

Comment

how much more memory exactly are we talking about here? I mean, if your application used to consume 10MB and adding spring actionscript adds another 1.5 meg, then yes, it would be rather much. But if it was 200K, and now it grew by 20 or 30k, it wouldn't be that weird since the container does consume its own piece of memory naturally.

As for all the objects you're instantiating at startup, are they necesary? I see quite a few delegate classes getting instantiated, which are quite commonly transient objects i.e. they get instantiated and destroyed after use. So maybe you need to mark those objects with scope="prototype"?