aspose file tools*
The moose likes Servlets and the fly likes Session Management Problems in the application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Session Management Problems in the application" Watch "Session Management Problems in the application" New topic
Author

Session Management Problems in the application

Kiran Chintha
Greenhorn

Joined: Jul 25, 2009
Posts: 15
Hi Friends,
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.

Thanks
Kiran
Sebastian Janisch
Ranch Hand

Joined: Feb 23, 2009
Posts: 1183
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 -
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9305
    
  17

Please take time to Carefully Choose One Forum when you start a topic. The SCJP forum is not the correct place for this. I'll move it to the appropriate forum...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Kiran Chintha
Greenhorn

Joined: Jul 25, 2009
Posts: 15
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.

Thanks
Kiran
Kiran Chintha
Greenhorn

Joined: Jul 25, 2009
Posts: 15
Hi Sebastian,
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.


Thanks
Kiran
 
Don't get me started about those stupid light bulbs.
 
subject: Session Management Problems in the application