This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am trying to fix the performance problems in my application.
1. How does a serializable object serialized. When I profiled the application, I never see this object GCd.
I use sweetdev ria tree in my application.
On every refresh of my JSP page, increases new objects which are related to the tree. My TreeDataProvider implements ITreeDataProvider which extends Serializable.
The objects are removed from memory only when I restart my tomcat. I have controlled the increase of memory due to nodeTypes, by making the node types as constants. But I could not make the TreeDataProvider a constant as it varies and not a constant.
I am not sure on what do I miss here. Does gc behaves differently if my class extends Serializable?
No, I am using sweetdev ria library, the dataprovider class implements ITreeDataProvider which extends Serializable. I do not want my objects to be stored to the disk. Not sure on whether the license terms allows me to edit the code.
Do you get OutOfMemoryErrors? If not, it might just be that the gc decided that it isn't yet time to gc the instances.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus