Subject | Re: Database file grows |
---|---|
Author | lsbtreis |
Post date | 2005-06-22T10:25:47Z |
--- In firebird-support@yahoogroups.com, "Alan McDonald" <alan@m...>
wrote:
doubles its size and gets corrupted. And this only happens if the
aplication crashes. If I close the aplications normaly ( the db
connections are closed ) the file grows very little. But if I kill the
aplications with open db connections the file gets huge.
And the problem about that is that someone is killing the aplications
in the taskManager over night. We are trying to avoid this procedure
but meanwhile the database files get corrupted. And this can happen if
the machine has a hard reboot.
Elisabete
wrote:
> > --- In firebird-support@yahoogroups.com, "Alan McDonald" <alan@m...><alan@m...>
> > wrote:
> > > > --- In firebird-support@yahoogroups.com, "Alan McDonald"
> > > > wrote:disapers
> > > > > >
> > > > > > When the aplication crashes it stops.
> > > > > >
> > > > > > Elisabete
> > > > > >
> > > > >
> > > > > does this mean the fbserver process is running high and
> > > > uncontrollably when
> > > > > the crash occurs?
> > > >
> > > > No, during my aplication execution the fbserver is running low (
> > > > between 4 and 20 % CPU ) and when my aplication crashes it
> > > > from TaskManager and the fbserver goes to 0% CPU.when the
> > > >
> > > > Elisabete
> > > >
> > > > > Alan
> > >
> > > but it's after this that the db file continues to grow out of
> > control? when
> > > the app is no longer in memory and the server is inactive?
> > > got me beat this...
> >
> > I've found two different cases for which the db file grows:
> > 1) the first is when my server app crashes. In this case the file
> > grows when my server app restarts.
> >
> > 2) In this case I have the 2 applications running and when one crahes
> > the db file grows. I was able to simulate this situation once. I
> > killed the second apllication (which has 16 open connections) but let
> > the server app running, The db file growed from 460M to 1.07G. This
> > happened in the exact moment I killed the app and there was not a
> > backup running at that time. The fbserver was occuping about 4% CPU
> > because the server app was still inserting records, I think.
> >
> > So when the file grows the fbserver is not inactive but running low
> > (doing inserts).
> >
> > Elisabete
> >
> >
> > > Alan
>
> hang on - this is just real growth being finally reported by the OS
> disconnection of the file occurs.nothing
> When you connect to a db and insert records madly for ten mintues,
> is visibly happening to the file until you disconnect. It's thenthat the OS
> refreshes the file statistics and you see the sudden growth.that's tied
>
> I think you're back to working out why your app crashes and how
> to corruption if at all.You're right for a grow of some megabytes but the database file
doubles its size and gets corrupted. And this only happens if the
aplication crashes. If I close the aplications normaly ( the db
connections are closed ) the file grows very little. But if I kill the
aplications with open db connections the file gets huge.
And the problem about that is that someone is killing the aplications
in the taskManager over night. We are trying to avoid this procedure
but meanwhile the database files get corrupted. And this can happen if
the machine has a hard reboot.
Elisabete
>
> Alan