jakarta-jcs-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mustafa Bayramov" <spyr...@gmail.com>
Subject Re: disk cache files lock on JVM abort
Date Tue, 26 Sep 2006 19:45:50 GMT
Vladimir,

You may track/debug it - what thread is locked the file by third parties tools.

If you killing JVM all threads will be killed too but I remember I've
had issue with tomcat under XP it accruing lock on jar file and then i
wasn't able to delete it for a while.

Regards

On 9/27/06, Vladimir Olenin <VOlenin@cihi.ca> wrote:
> Hi,
>
> I ran into one issue with JCS under Windows platform (not sure if the
> same is valid for Linux/Unix systems - most probably not). When JVM is
> aborted (process is 'hard killed'), the JCS doesn't have a chance to
> shutdown properly This results in the Disk cache files being locked on
> JVM restart (I've setup the JCS so that it'd invalidate whatever
> information is available in the cache). I'm getting the messages like:
>
> ... Trying to delete xxx.data.0
> ... Trying to delete xxx.data.1
> ... Trying to delete xxx.data.2
> ... Trying to delete xxx.data.3
> .....
> ... Trying to delete xxx.data.9
>
> (not sure about the correct spelling don't have the stack trace at
> hand). So, it seems like the system is trying to acquire a lock on the
> files, but fails. You can NOT delete these files from Windows Explorer
> as well (I'm getting 'sharing violation - this file can be in use'
> error).
>
> I wonder if there are any workarounds or what is the timeframe during
> which Windows holds the lock on the files (I'm pretty sure it should
> expire at some point...)
>
> Thanks.
>
> Vlad
>
>
>

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


Mime
View raw message