Firebird SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsDatabasesFirebird SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 14th, 2011, 03:58 AM
googlesteve googlesteve is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2010
Posts: 7 googlesteve User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 15 m
Reputation Power: 0
Firebird gets slower and slower, then crashes

We have a firebird 1.5 database that is constantly synchronising data from another source. This means lots of update statments are being performed.

A single sync involves updating around 25,000 records every 15mins.

This process starts quite fast, it complete the 25,000 updates in around 60seconds (during which CPU is at 100%) Each sync process gradually gets slower and slower. The firebird process uses more and more memory (but only around 1GB in total). The database also grows larger and larger when it reaches around 1.2GB it crashes with a deadlock error.

I understand the database growth, because presumably an update leaves an old copy of the record in the database. What is causing the slowdown and the memory usage?

Is there anything I can do to reduce the slowdown, and the crashing?

Reply With Quote
  #2  
Old June 20th, 2011, 05:51 AM
mIRCata mIRCata is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2006
Location: Plovdiv. Bulgaria
Posts: 200 mIRCata User rank is Corporal (100 - 500 Reputation Level)mIRCata User rank is Corporal (100 - 500 Reputation Level)mIRCata User rank is Corporal (100 - 500 Reputation Level)mIRCata User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 6 h 50 m 14 sec
Reputation Power: 11
I think that there is an active transaction which is not commited. And Firebird keep information between oldest active transaction and current transaction. If you were using FB 2.1 or 2.5 you could see active connections trough MON tables, but now you must check your code for some forgotten transaction. I've seen how Firebird release 800MB of memory when I've closed an application with similar problem after two days of continues working.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > Firebird gets slower and slower, then crashes

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
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 On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap