You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Darren Hartford <dh...@ghsinc.com> on 2006/08/04 17:57:34 UTC

RE: Disk space problem with tomcat cache directory (File.createTempFile)

In NodeRevisionContent.java, there is:

====================
    public long bufferContent(InputStream is) throws IOException {
        File buffer = File.createTempFile("content_", null);
        OutputStream os = new BufferedOutputStream(new
FileOutputStream(buffer));
        try {
            long length = FileHelper.globalBufferCopy(is, os);
            InputStream bis = new BufferedInputStream(new
FileInputStream(buffer));
            setContent(bis);
            return length;
        } finally {
            try {
                is.close();
            } finally {
                os.close();
            }
        }
    }
===================

Would this be a culprit?

-D 

> -----Original Message-----
> From: Darren Hartford [mailto:dhartford@ghsinc.com] 
> Sent: Friday, August 04, 2006 10:35 AM
> To: Slide Users Mailing List
> Subject: RE: Disk space problem with tomcat cache directory
> 
> Windows tomcat 5.5.9 does *not* experience this problem. 
> 
> > -----Original Message-----
> > From: Darren Hartford [mailto:dhartford@ghsinc.com]
> > Sent: Friday, August 04, 2006 10:14 AM
> > To: Slide Users Mailing List
> > Subject: RE: Disk space problem with tomcat cache directory
> > 
> > Some more detail: 
> > 
> > Linux install of Jpackage version of tomcat, 5.5.9-1jpp experiences 
> > this problem.
> > 
> > On windows Tomcat 5.5.17, the /temp directory does *not* 
> have the same 
> > symptoms.
> > 
> > -D
> > 
> > > -----Original Message-----
> > > From: Darren Hartford
> > > Sent: Friday, August 04, 2006 10:07 AM
> > > To: 'Slide Users Mailing List'
> > > Subject: Disk space problem with tomcat cache directory
> > > 
> > > Hey all,
> > > I'm experiencing some problems with Slide built from SVN 
> running on 
> > > Tomcat 5.5/FC5/jpackage sun-jdk 5.
> > > 
> > > Under /var/cache/tomcat5/temp is a large number of temporary files
> > > (content_NNNNN.tmp) that are the binary files being sent to Slide.
> > > 
> > > These appear to persist even after the transaction for
> > injecting them
> > > is complete.
> > > 
> > > Does anyone have any information regarding this?
> > > 
> > > Thanks,
> > > -D
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: slide-user-help@jakarta.apache.org
> > 
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org