tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: Tomcat JVM not releasing deleted files (lsof show delete inodes taking up disk space)
Date Mon, 29 Sep 2008 16:33:05 GMT
> 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


Mime
View raw message