Nick,
We have seen this problem, too. Thanks for tracking it down. (FWIW,
we were running 1.0.3 not the HEAD). One thing to note is that I
think this manifests itself more egregiously on Windows than on *nix,
because of Windows' more aggressive file locking...
graham
> Message: 5
> Date: Thu, 19 Oct 2006 16:58:47 +0100
> From: "Nick Fortescue" <ni...@ox...>
> Subject: [Quickfixj-users] File Lock on FileStore impossible to free
> To: <qui...@li...>
> Message-ID: <000201c6f397$767f66f0$84c...@VA...>
> Content-Type: text/plain; charset="us-ascii"
>
> I think I've found a File locking resource leak in quickfixj (SVN Trunk,
> head). I wondered if anyone could confirm it is a defect, and if so the best
> way to fix it.
>
> When you create a FileStore for a given session it opens two
> RandomAccessFiles for the message store and sequence number file. These
> files are only closed by the method closeFiles(), which is only used in
> initialize. And when initialize closes the files it immediately opens them
> again. This means that unless you call closeFiles() yourself, the file will
> remain open (and for example, you can't delete the files programmatically).
>
> However, if you create an initiator, you do it with a MessageStoreFactory,
> not a MessageStore, which means you have no access to the FileStore to let
> you close the files.
>
> This is a problem for me. I am running some conformance tests for my
> counterparty, and I want to do them in a single Application - create a fix
> session, do the test, close the session, delete the files, and then proceed
> with the next test. At the moment this seems to be impossible, as once I am
> finished with the first session I have no way of deleting the files without
> exiting the VM. Am I going to have to write my own FileStoreFactory?
>
> Nick
>
>
>
>
>
> ------------------------------
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>
> ------------------------------
>
> _______________________________________________
> Quickfixj-users mailing list
> Qui...@li...
> https://lists.sourceforge.net/lists/listinfo/quickfixj-users
>
>
> End of Quickfixj-users Digest, Vol 5, Issue 9
> *********************************************
>
--
Marketcetera Trading Platform
download.run.trade.
www.marketcetera.org
|