# cocoon-users mailing list archives

##### Site index · List index
Message view
Top
From "Luca Morandini" <luca.morandi...@tin.it>
Subject RE: How to clear the jar_cache files ?
Date Wed, 17 Apr 2002 11:32:12 GMT
```Peter,

when I stop Tomcat those files disappear... but sometimes they don't (I have
yet to reproduce this anomaly, though).

My view is that they are not removed only when some kind of error occours
(but which one ?).

I will investigate the matter further; anyway, I'd like other Cocoon users
to look into the matter, possibly answering these questions:

1) Do the total amount of disk space eaten by cache_jar*.tmp files increase
over time ?
2) Do ALL these file disappear when stopping Tomcat ?

I must say that this might be serious. Yes, it may be solved by a cleanup
script,
but this wouldn't enhance Cocoon's reputation :(

Best regards,

---------------------------------------------
Luca Morandini
GIS Consultant
lmorandini@ieee.org
http://utenti.tripod.it/lmorandini/index.html
---------------------------------------------

> -----Original Message-----
> Sent: Wednesday, April 17, 2002 10:08 AM
> To: cocoon-users@xml.apache.org; lmorandini@ieee.org
> Subject: RE: How to clear the jar_cache files ?
>
>
>
> I've seen it, as well.  In fact, having a look, I see it on one of my
> machines at the moment.
>
> [peter@epiphone peter]\$ ls -l /opt/tomcat/temp/
> total 578
> -rw-rw-r--    1 root     root       587776 Apr 16 12:44 jar_cache62255.tmp
>
> I very clearly remember coming across it.  My /tmp is small on that
> machine.  I kept running out of disk space.
>
> I needed to put
>
>  -Djava.io.tmpdir=/opt/tomcat/temp
>
> in my CATALINA_OPTS (and create that directory).  The stuff is created
>
> I think there is some other stuff that ends up in that directory, but it
> doesn't appear when you do a listing in *nix systems. The numbers
> weren't adding up for me.  Probably the old trick where you create a
> temporary file and unlink it straight away (or whatever, it's been a
> while since I've done that).
>
> I'm on build 1.3.1_03-b03 on Linux.
>
>                                                         ...Peter
>
> Luca Morandini writes:
>  >
>  > I've found evidence of a bug like this under JRE 1.2... but
> I'm using 1.3.1
>  > and those files are still there :(
>  >
>  > Anyway, I'm wondering if I'm the only one with this problem....
>  >
>  > Best regards,
>  >
>  > ---------------------------------------------
>  >                Luca Morandini
>  >                GIS Consultant
>  >               lmorandini@ieee.org
>  > http://utenti.tripod.it/lmorandini/index.html
>  > ---------------------------------------------
>  >
>  >
>  > > -----Original Message-----
>  > > Sent: Tuesday, April 16, 2002 9:53 PM
>  > > To: cocoon-users@xml.apache.org; lmorandini@ieee.org
>  > > Subject: RE: How to clear the jar_cache files ?
>  > >
>  > >
>  > > > From: Luca Morandini [mailto:luca.morandini1@tin.it]
>  > > >
>  > > > > -----Original Message-----
>  > > > > Sent: Tuesday, April 16, 2002 9:08 PM
>  > > > > To: cocoon-users@xml.apache.org; lmorandini@ieee.org
>  > > > > Subject: RE: How to clear the jar_cache files ?
>  > > > >
>  > > > >
>  > > >
>  > > > > > They're located in the temp directory of my server and
> have names
>  > > > > like:
>  > > > > > jar_cache35350.tmp, jar_cache35354.tmp... and so on at
> the tune of
>  > > > > about 50
>  > > > > > a day.
>  > > > >
>  > > > > I have some files named like this, but in totally different
>  > > directory:
>  > > > > %USERPROFILE%\Local Settings\Temp\jar_cache14163.tmp
>  > > > >
>  > > > > I'm 90% sure that they were created neither by Tomcat,
> nor by JDK.
>  > > > >
>  > > >
>  > > > I beg to differ, since I removed Cocoon and they 're still produced
>  > > (though
>  > > > in much smaller numbers).
>  > > > Regarding the different location in the file system, it dependes on
>  > > the
>  > > > different setting of the \$TEMP directory.
>  > > >
>  > > > Any other clue ?
>  > >
>  > > :-/
>  > >
>  > > Yes. I have got one. Here it is: rt.jar has string
> "jar_cache" inside. I
>  > > don't think it is coincidence. This means, JRE is responsible for
>  > > creating these files.
>  > >
>  > >
>  > >
>  > > > Best regards,
>  > > >
>  > > > ---------------------------------------------
>  > > >                Luca Morandini
>  > > >                GIS Consultant
>  > > >               lmorandini@ieee.org
>  > > > http://utenti.tripod.it/lmorandini/index.html
>  > > > ---------------------------------------------
>  > > >
>  > >
>  > >
>  > > ---------------------------------------------------------------------
>  > > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>  > >
>  > > To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
>  > > For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
>  > >
>  >
>  >
>  > ---------------------------------------------------------------------
>  > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>  >
>  > To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
>  > For additional commands, e-mail: <cocoon-users-help@xml.apache.org>

---------------------------------------------
Luca Morandini
GIS Consultant
lmorandini@ieee.org
http://utenti.tripod.it/lmorandini/index.html
---------------------------------------------

---------------------------------------------------------------------