Two Laptop Bag
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
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.

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: 13036
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:
subject: Memory Leaks in Servlets/JSP
It's not a secret anymore!