From commons-user-return-6783-apmail-jakarta-commons-user-archive=jakarta.apache.org@jakarta.apache.org Thu Mar 04 01:21:45 2004 Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 91160 invoked from network); 4 Mar 2004 01:21:45 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 4 Mar 2004 01:21:45 -0000 Received: (qmail 18474 invoked by uid 500); 4 Mar 2004 01:20:52 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 18346 invoked by uid 500); 4 Mar 2004 01:20:52 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 18235 invoked from network); 4 Mar 2004 01:20:50 -0000 Received: from unknown (HELO oe-im1.bizmailsrvcs.net) (206.46.164.52) by daedalus.apache.org with SMTP; 4 Mar 2004 01:20:50 -0000 Received: from mm-ismta3.bizmailsrvcs.net ([206.46.164.28]) by oe-im1.bizmailsrvcs.net (InterMail vM.5.01.06.05 201-253-122-130-105-20030824) with ESMTP id <20040304012058.KJEJ9686.oe-im1.bizmailsrvcs.net@mm-ismta3.bizmailsrvcs.net>; Wed, 3 Mar 2004 19:20:58 -0600 Received: from [10.16.43.60] ([12.25.200.5]) by mm-ismta3.bizmailsrvcs.net (InterMail vM.5.01.06.05 201-253-122-130-105-20030824) with ESMTP id <20040304012058.KBEH23725.mm-ismta3.bizmailsrvcs.net@[10.16.43.60]>; Wed, 3 Mar 2004 19:20:58 -0600 In-Reply-To: <40467B5A.50303@ais.pl> References: <40467B5A.50303@ais.pl> Mime-Version: 1.0 (Apple Message framework v612) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <319B2785-6D7A-11D8-A827-000393C78DDE@openwave.com> Content-Transfer-Encoding: 7bit Cc: From: Forrest Girouard Subject: Re: native memory leak on every call to File.deleteOnExit() Date: Wed, 3 Mar 2004 17:20:59 -0800 To: "Jakarta Commons Developers List" X-Mailer: Apple Mail (2.612) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Mar 3, 2004, at 4:42 PM, Tomasz Pik wrote: > Forrest Girouard wrote: > >> On Mar 3, 2004, at 4:05 PM, Noel J. Bergman wrote: >>>> Is any one on this list aware that every call to File.deleteOnExit() >>>> leaks memory in the native heap? >>> >>> I am. Code intended for server use should be audited to remove that >>> call. >> Ok. I wasn't aware that there were any expectations in this area. >> Can you explain further? Is there other calls that need to be >> "removed" for server use? > > If you're asking about Java libraries, not directly commons libraries > I know two examples, that cause problems with webapp classloaders > and reloading: adding SecurityProviders and loading native libraries. Thanks for the input although I'm aware of the issues surrounding these two examples. By the way, we completely avoid all the native code issues of which there are many by simply having a local surrogate process make those calls on our behalf. Cheers, Forrest --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org