[bdbxml] problem using XmlModify in a multithreaded environment
"Adrien Lamoureux" <[email protected]> Tue, 30 Aug 2005 16:42:18 -0400
| Newsgroups | gmane.comp.db.dbxml.general |
|---|---|
| Message-ID | <[email protected]> |
Hello,
I'm trying to use Berkely DBXML in a multithreaded environment but every time I test this case, it seems to be in deadlock. I don't get any error message and it hangs indefinitely. I'm using the Java API with whole document storage and a shared Environment with these flags:
envConf.setAllowCreate(true);
envConf.setInitializeCache(true);
envConf.setInitializeLocking(true);
envConf.setCacheSize(1048576);
envConf.setMaxLockers(5000);
envConf.setMaxLockObjects(5000);
envConf.setMaxLocks(5000);
envConf.setMessageStream(System.out);
envConf.setErrorStream(System.err);
Each thread creates its own XmlManager and adopts the above environment. I've tested creating and appending documents to a single container, but as soon as I try to use XmlModify I get deadlock. Each thread creates everthing needed to accomplish its task(XmlQueryContext,XmlUpdateContext,XmlResults, etc...)
Any insight into this would be greatly appreciated.
Thank You.
Adrien