You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Luca Morandini <lu...@tin.it> on 2002/04/16 12:06:21 UTC

OT: How to clear the jar_cache files ?

Folks,

sorry to make such an awkward question, but Tomcat keeps filling my temp
directory with this caching stuff... and no amount of mailing lists
searching helped me :(

Best regards,


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



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


RE: How to clear the jar_cache files ?

Posted by Peter Schwenke <pe...@bluetoad.com.au>.
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
in your temporary directory.

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:
 > Vadim,
 > 
 > 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-----
 > > From: Vadim Gritsenko [mailto:vadim.gritsenko@verizon.net]
 > > 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-----
 > > > > From: Vadim Gritsenko [mailto:vadim.gritsenko@verizon.net]
 > > > > 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.
 > >
 > > Vadim
 > >
 > >
 > > > Best regards,
 > > >
 > > > ---------------------------------------------
 > > >                Luca Morandini
 > > >                GIS Consultant
 > > >               lmorandini@ieee.org
 > > > http://utenti.tripod.it/lmorandini/index.html
 > > > ---------------------------------------------
 > > >
 > >
 > >
 > > ---------------------------------------------------------------------
 > > Please check that your question has not already been answered in the
 > > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
 > >
 > > To unsubscribe, e-mail: <co...@xml.apache.org>
 > > For additional commands, e-mail: <co...@xml.apache.org>
 > >
 > 
 > 
 > ---------------------------------------------------------------------
 > Please check that your question has not already been answered in the
 > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
 > 
 > To unsubscribe, e-mail: <co...@xml.apache.org>
 > For additional commands, e-mail: <co...@xml.apache.org>

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


RE: How to clear the jar_cache files ?

Posted by Luca Morandini <lu...@tin.it>.
Vadim,

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-----
> From: Vadim Gritsenko [mailto:vadim.gritsenko@verizon.net]
> 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-----
> > > From: Vadim Gritsenko [mailto:vadim.gritsenko@verizon.net]
> > > 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.
>
> Vadim
>
>
> > Best regards,
> >
> > ---------------------------------------------
> >                Luca Morandini
> >                GIS Consultant
> >               lmorandini@ieee.org
> > http://utenti.tripod.it/lmorandini/index.html
> > ---------------------------------------------
> >
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


RE: How to clear the jar_cache files ?

Posted by Vadim Gritsenko <va...@verizon.net>.
> From: Luca Morandini [mailto:luca.morandini1@tin.it]
> 
> > -----Original Message-----
> > From: Vadim Gritsenko [mailto:vadim.gritsenko@verizon.net]
> > 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.

Vadim

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


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


RE: How to clear the jar_cache files ?

Posted by Luca Morandini <lu...@tin.it>.
> -----Original Message-----
> From: Vadim Gritsenko [mailto:vadim.gritsenko@verizon.net]
> 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 ?

Best regards,

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



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


RE: How to clear the jar_cache files ?

Posted by Vadim Gritsenko <va...@verizon.net>.
> From: Luca Morandini [mailto:luca.morandini1@tin.it]
> 
> 
> > -----Original Message-----
> > From: Vadim Gritsenko [mailto:vadim.gritsenko@verizon.net]
> > Sent: Tuesday, April 16, 2002 8:14 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]
> > >
> > > Folks,
> > >
> > > sorry to make such an awkward question, but Tomcat keeps filling
my
> > > temp
> > > directory with this caching stuff... and no amount of mailing
lists
> > > searching helped me :(
> >
> > "jar_cache"? In tomcat? I never seen this/these directory/files.
> >
> > Vadim
> >
> 
> Really ?
> 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.

 
> Anyway, when Tomcat is re-started they get cleaned and re-created...
but not
> always :( hence my question.

Hm.
 

> Best regards,
> 
> P.S.
> Oh, my configuration:
> 
> - Windows 2000 Professional

Win2K Server

> - Sun JDK 1.3.1
> - Tomcat 4.0.1

4.0b5 - 4.0.4b2, all of them (not at the same moment though) :)

> - Cocoon 2.0.2


Vadim


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


RE: How to clear the jar_cache files ?

Posted by Luca Morandini <lu...@tin.it>.
> -----Original Message-----
> From: Vadim Gritsenko [mailto:vadim.gritsenko@verizon.net]
> Sent: Tuesday, April 16, 2002 8:14 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]
> >
> > Folks,
> >
> > sorry to make such an awkward question, but Tomcat keeps filling my
> temp
> > directory with this caching stuff... and no amount of mailing lists
> > searching helped me :(
>
> "jar_cache"? In tomcat? I never seen this/these directory/files.
>
> Vadim
>

Really ?
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.

Anyway, when Tomcat is re-started they get cleaned and re-created... but not
always :( hence my question.

Best regards,

P.S.
Oh, my configuration:

- Windows 2000 Professional
- Sun JDK 1.3.1
- Tomcat 4.0.1
- Cocoon 2.0.2


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


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


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


RE: How to clear the jar_cache files ?

Posted by Vadim Gritsenko <va...@verizon.net>.
> From: Luca Morandini [mailto:luca.morandini1@tin.it]
> 
> Folks,
> 
> sorry to make such an awkward question, but Tomcat keeps filling my
temp
> directory with this caching stuff... and no amount of mailing lists
> searching helped me :(

"jar_cache"? In tomcat? I never seen this/these directory/files.

Vadim


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


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>