Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Session Management Problems in the application

 
Kiran Chintha
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ankit Garg
Sheriff
Posts: 9521
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Kiran Chintha
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic