Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 12-16-2005
acbell acbell is offline
Registered User
 
Name: Andrew Bell
Organization: Iowa State University
Project: National Resources Inventory
 
Join Date: Jan 2005
Location: Ames, IA, USA
Posts: 89
Freeze Evictor Transactions

Hi,

We are getting deadlock exceptions using the freeze evictor. Things seem to retry and be OK, but we are trying to understand what is going on. Can anyone explain the transaction model that it used with the evictor and how deadlocks can occur?

Thanks,
Reply With Quote
  #2 (permalink)  
Old 12-19-2005
bernard's Avatar
bernard bernard is online now
ZeroC Staff
 
Name: Bernard Normier
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Palm Beach Gardens, FL
Posts: 816
Hi Andrew,

Each Freeze Evictor uses a dedicated thread to save updates in the background. That's the only thread writing anything to the underlying database, and it writes the updates (including additions and deletions) using transactions.

At the same time, other threads can read the database; reads acquire read locks on one or more pages in the underlying file. The reads that acquire the most locks and are the most likely to trigger deadlocks are iterations (the getIterator() call on the Evictor).

A deadlock from time to time in a Freeze Evictor application is nothing to worry about. But a large number of deadlock can obviously lead to poor performance and more deadlocks; if this happens, try these Freeze Evictor properties to reduce the length of your write transactions: MaxTxSize, SaveSizeTrigger, SavePeriod.

Best regards,
Bernard
__________________
Bernard Normier
ZeroC, Inc.
Reply With Quote
  #3 (permalink)  
Old 12-19-2005
acbell acbell is offline
Registered User
 
Name: Andrew Bell
Organization: Iowa State University
Project: National Resources Inventory
 
Join Date: Jan 2005
Location: Ames, IA, USA
Posts: 89
Thanks

Thanks a ton for the response.

And to all the ZeroC folks, thanks very much for a very nice, well-supported, and carefully constructed product.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Slow in Freeze Evictor add operation Yunqiao Yin Help Center 2 02-06-2007 08:38 PM
Freeze evictor synchronization with Java tie classes jdekozak Help Center 2 01-30-2007 02:12 PM
Identity Map for Freeze Evictor acbell Help Center 4 09-01-2005 04:27 PM
Fast track Freeze evictor for RDBMS StuartA Comments 0 05-23-2005 05:56 AM
How to handle distributed transactions robert Help Center 3 10-31-2004 10:35 PM


All times are GMT -4. The time now is 10:57 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.