commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Neidhart (JIRA)" <>
Subject [jira] [Commented] (VFS-209) RAM file system writes to a RAM file fail under heavy load
Date Tue, 15 Jan 2013 16:42:12 GMT


Thomas Neidhart commented on VFS-209:

Did you also call FileContent.close() after the write operation has finished?

Closing the OutputStream alone is not sufficient, and subsequent calls to FileContent.getOutputStream()
will fail with the mentioned exception.
> RAM file system writes to a RAM file fail under heavy load
> ----------------------------------------------------------
>                 Key: VFS-209
>                 URL:
>             Project: Commons VFS
>          Issue Type: Bug
>    Affects Versions: 1.0
>         Environment: Fails on all platforms
>            Reporter: Rakshith N
>            Priority: Critical
> Simple writes to a RAM file using the Microsoft Web Stress tool fails by throwing a FileSystemException
which says that the file is already in use. 
> I have double checked the streams. In happens, in spite of close being called each time
on the outputstream.
> org.apache.commons.vfs.FileSystemException: Could
>  not write to ""ram:///dynamic.cfm"" because it is currently in use.
> It fails while trying to get the OutputStream from the FileContent.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message