You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Caldarale, Charles R" <Ch...@unisys.com> on 2008/09/29 18:33:05 UTC

RE: Tomcat JVM not releasing deleted files (lsof show delete inodes taking up disk space)

> From: Chad Kellerman [mailto:sunckell@gmail.com]
> Subject: Tomcat JVM not releasing deleted files (lsof show
> delete inodes taking up disk space)
>
> the application indexes uploaded files, the indexing process
> creates the temporary files then removes them.

Sounds like your "indexing process" is hanging onto some form of reference to the temporary files, thereby keeping the busy counts for the inodes up.  Space for a file won't be released until its busy count goes go zero, even if it is unlinked.

Look for places in your code that hang on to references to objects of the type File, RandomAccessFile, some form of InputStream or OutputStream, etc.  Not nulling out those references may keep the underlying inode busy.  A heap profiler might help in tracking down those specific object types.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org