jQuery in Action, 3rd edition
The moose likes Servlets and the fly likes Memory Leaks in Servlets/JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Memory Leaks in Servlets/JSP" Watch "Memory Leaks in Servlets/JSP" New topic

Memory Leaks in Servlets/JSP

Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

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

Joined: Mar 22, 2000
Posts: 13025
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.

author of:
I agree. Here's the link: http://aspose.com/file-tools
subject: Memory Leaks in Servlets/JSP
jQuery in Action, 3rd edition