File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

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
Rancher

Joined: Mar 22, 2000
Posts: 12781
    
    5
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:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Memory Leaks in Servlets/JSP