W3C home > Mailing lists > Public > www-jigsaw@w3.org > March to April 1999

destroy() not called in my servlet

From: lacall <lacall@micron.com>
Date: Thu, 22 Apr 1999 17:09:41 -0400 (EDT)
Message-ID: <B1272D4045CBD111A96E0020AFFBF32D03DB7CD8@ntxchange03.micron.com>
To: "'www-jigsaw@w3.org'" <www-jigsaw@w3.org>
I have a servlet whose init() method starts a thread (a "cleanup thread")
whose purpose is to watch over the threads created in doPost() and to stop
them after a timeout period.  I found that I was running out of memory after
running my servlet many times, and that this first thread (the "cleanup
thread") seems to be the culprit--if I don't start() it, I don't have the
memory leak.

The solution I would think would be to stop that thread in the servlet's
destroy() method. But I'm doing that; the destroy() method seems never to be

Is there something I may be doing to prevent the destroy() method from
getting called??


Luke Call
EDM Group
Micron Technology, Boise 
Received on Thursday, 22 April 1999 17:14:14 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:34 UTC