I have been working on an application configured completely on Core Java, Servlets and JSP's, i need to improve the performance of the application by removing unnecessarily used session variables and attributes once the work with that variables is done, i need to trace them out and pull them out from the session, so as to reduce the session data and improve the performance as a whole, i do have some more change requests that i need to take care of to improve the performance, i will be discussing with you the same in the next post, help me out with the ways, to remove these unnecessary session stuff.
You could write a SessionAttributeListener that gets invoked every time something is added to the session. If you use an IDE like Eclipse you could put a breakpoint into the attributeAdded method to check the stacktrace and see where that attribute gets added and then trace where it is not needed anymore and remove it.
JDBCSupport - An easy to use, light-weight JDBC framework -
Thanks Ankit, actually i have mistaken to take a correct forum, actually i have picked up the most recent topic from my list and sent as a new reply from that window, thanks for your observation and will do the post in the appropriate forums for the new ones.
Joined: Jul 25, 2009
Thanks for your suggestion, I will implement the SessionAttributeListener and track the scope of the session attributes and will remove them once they are no longer required.