Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 77148 invoked from network); 20 Sep 2007 10:16:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Sep 2007 10:16:44 -0000 Received: (qmail 68696 invoked by uid 500); 20 Sep 2007 10:16:34 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 68673 invoked by uid 500); 20 Sep 2007 10:16:34 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 68664 invoked by uid 99); 20 Sep 2007 10:16:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Sep 2007 03:16:34 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [213.133.33.40] (HELO smtp.is.nl) (213.133.33.40) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Sep 2007 10:18:32 +0000 Received: from [213.133.51.241] (HELO [10.10.100.248]) by smtp.is.nl (CommuniGate Pro SMTP 5.0.10) with ESMTP id 24479090 for users@jackrabbit.apache.org; Thu, 20 Sep 2007 12:16:12 +0200 Message-ID: <46F2486C.30807@planet.nl> Date: Thu, 20 Sep 2007 12:16:12 +0200 From: Nick Stolwijk User-Agent: Thunderbird 1.5.0.13 (X11/20070824) MIME-Version: 1.0 To: users@jackrabbit.apache.org Subject: Re: Bundled PM tmp files filling up tomcat References: <235bf4ca0709070429m3a95e327k3a84df85b1881c29@mail.gmail.com> <5f211bd50709070437s7cd3a907ub4cdead2e17e7d96@mail.gmail.com> <235bf4ca0709070634u678f2b3cpbfd15d8b91c3570f@mail.gmail.com> <90a8d1c00709070731i595c6472g9cfb32462f50747e@mail.gmail.com> <12782072.post@talk.nabble.com> <90a8d1c00709200255n29e59d0bl9536d2be70f64855@mail.gmail.com> In-Reply-To: <90a8d1c00709200255n29e59d0bl9536d2be70f64855@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org We have worked with the OracleFileSystem and when the OutputStreams for blob's don't get closed, the tmp file also won't get deleted. So, do you work with the OracleFileSystem? Hth, Nick Stolwijk Stefan Guggisberg wrote: > hi lori, > > On 9/19/07, Lori wrote: > >> I am having the same problem where the tomcat temp directory is >> filled with bin????.tmp files. The files are stored in the database with >> (i.e. externalBlobs=false). Sometimes the files go away, but many times >> they just stick around. I haven't identified why they aren't released, >> but right now the temp directory has almost 2 Gig's worth of these >> binary files. If we shut our application down it appears that we can >> clear out the temp directory. However we can't be shutting it down all the >> time. We tried removing the files that were 2 days old, and then ran >> into some problems of files that couldn't be accessed - so we have just >> left them there till restart. >> Any ideas, suggestions, configuration help would be apprectiated. Is >> there a known bug where they are left around? >> > > the only situation i can think of where such temp files could be left around > is when the repository is not shut down properly (e.g. by killing the jvm > process) or an application on top of jackrabbit holds on to/caches > properties/streams returned from the JCR api. > > if you store the blob's in the db, the blob will be spooled to a temp file > when it's requested (e.g. by a node.getProperty() call). the property > is cached, holding a reference to the temp file. once the property is > evicted from the cache, the temp file will go away. > > therefore, if you have lots of binary properties and they're requested > frequently, it's possible that you'll see lots of such temp files since > their associated properties are cached. > > what jackrabbit version are you using? how many temp files > do you typically see? > > could you perhaps provide a memory dump of your jvm, taken > when you observe lots of such temp files? i'd like to analyze it > using a profiler. > > btw: the current blob handling will be significantly improved by > using a global data store for binaries > (see http://issues.apache.org/jira/browse/JCR-926). > > cheers > stefan > > >> -Lori >> >> >> Stefan Guggisberg wrote: >> >>> On 9/7/07, harvey waters wrote: >>> >>>> No sorry I don't have a test case. I just got a 'Disk Full' error on our >>>> live server and then took a look in the tomcat temp directory and found >>>> all >>>> the binaries going back to when we installed the system. I thought these >>>> binaries were used as a BLOB cache for JackRabbit, if so I guessed there >>>> might be a way of managing them. >>>> >>> assuming you configured jackrabbit to store blobs in the db >>> (i.e. externalBlobs=false), reading a binary property value >>> (e.g. node.getProperty("bin").getStream()) will cause the blob >>> to be spooled from the db to a temp file. note that only *one* >>> temp file will be created. the temp file will be automatically >>> deleted when it's not being referenced anymore and the associated >>> Property object is evicted from the cache. life expectancy of >>> such a temp file should therefore be rather short. >>> >>> cheers >>> stefan >>> >>> >>>> Currently we're on version 1.3 of JackRabbit. >>>> >>>> On 9/7/07, Thomas Mueller wrote: >>>> >>>>> Hi, >>>>> >>>>> What version did you use, and do you have a simple test case? >>>>> >>>>> Thanks, >>>>> Thomas >>>>> >>>>> On 9/7/07, harvey waters wrote: >>>>> >>>>>> Is there anyway I can stop the bundled PM from filling up the temp >>>>>> >>>>> directory >>>>> >>>>>> in Tomcat. I aslo noticed that on loading a binary into JackRabbit I >>>>>> >>>>> ended >>>>> >>>>>> up with 9 duplicated tmp files. Have I done soemthing wrong here or >>>>>> >>>> is >>>> >>>>> it >>>>> >>>>>> JackRabbit ? >>>>>> >>>>>> Many Thanks >>>>>> >>>>>> Harvery >>>>>> >>>>>> >>> >> -- >> View this message in context: http://www.nabble.com/Bundled-PM-tmp-files-filling-up-tomcat-tf4400812.html#a12782072 >> Sent from the Jackrabbit - Users mailing list archive at Nabble.com. >> >> >> > >