Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Memory Leaks in Servlets/JSP

 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

This is a slight cross-post, so forgive me. http://www.javaranch.com/ubb/Forum34/HTML/001859.html

If anyone indeed *does* think that servlets/jsps have unique forms of memory leaks, that are not related to 'common programming errors', but are endemic to servlet programming, I wouldn't mind hearing about them as well.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13056
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Prime candidates:
Database related resources improperly released.
Threads started but not terminated (this got me one time).
Bulky stuff attached to long lived sessions.
--------- I suggest you write a monitoring servlet
for access by developers. Have this servlet capable
of dumping the contents of the working ThreadGroup,
available memory, max memory, anything else that
indicates activity.
Bill

------------------
author of:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic