RE: Does anyone else have this glitch ??

"Rusi Popov" <[email protected]>
Newsgroups gmane.comp.java.enhydra.shark
Organization i:FAO AG
Message-ID <[email protected]>
Dear colleague,
We had a very similar problem - when a process has an activity that runs
long, the process is locked until this activity ends. In a multithreaded
application
usually there are other threads that need to check the status of the same
process instance while this activity is running. IFAIK all public Shark
methods that work with a process or activity instance try to obtain a lock
in the process through *LockMaster classes (i.e. DODSLockMaster). Once the
activity is still running, the process instance is locked and the other
thread cannot obtain new lock on it. Then the *LockMaster.lock() throws a
BaseException.
Your problem might be related indirectly with the database volume (by the
way, we use Oracle) - activities just run slower while other threads are
trying to lock the process. 
Our solution:
We changed our application to catch the BaseExceptions, not report them and
treat them as "the process is busy". In addition we changed our application
not to rely on information that might be retrieved from a process instance
while it is still locked

Just a guess:
Probably your activities highly depend on the database volume so you should
try to optimize their SQL statements or try to index the db tables they use.
With best regards
Rusi Popov
 
-----Original Message-----
From: Neville van Deventer [mailto:[email protected]] 
Sent: Monday, 25 July, 2005 22:52
To: [email protected]
Subject: [shark] Does anyone else have this glitch ??


Hi List,
 
When my Shark Database reaches a size of about 1G, the shark library has
trouble following transitions correctly, and I'm getting a lot of DODS Lock
exceptions.

Just wanted yo knopw if anyone else is experiencing this type of glitch ??

Thanks in Advance


Neville van Deventer
message-footer.txt (text/plain, 271 B)
--
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.