Subject | Re: GDB file grows |
---|---|
Author | tmiravet |
Post date | 2004-09-24T14:38:59Z |
Thank you very much for all that information. For sure I will do the
gstat and post it to get your advice.
Thanks again,
Trini.
--- In firebird-support@yahoogroups.com, Helen Borrie <helebor@t...>
wrote:
gstat and post it to get your advice.
Thanks again,
Trini.
--- In firebird-support@yahoogroups.com, Helen Borrie <helebor@t...>
wrote:
> At 12:12 PM 24/09/2004 +0200, you wrote:since some
>
> >Hi all,
> >
> >We have a firebird database 1.0.3 Version WI-V6.2.972 installed
> >months. Yesterday we detected that the .gdb file was huge -18Gb-.When
> >doing a backup of such huge database with gbak, the .gbk file wasabout 20
> >Mb -normal size-. And restoring the .gbk file we got a normalsize .gdb
> >file -about 22Mb-.one. After
> >
> >So, we delete the huge file and start working with the restore
> >a while the size was 30Mb, after another while 50Mb, ... it seemsthat
> >something makes the .gdb file to grow, and it is not because suchvolume
> >of data is stored in the database.we got
> >
> >When we did again the gbak to the, at that point, 150M gdb file,
> >again a normal size .gbk file and the restored one had also normalsize.
> >appreciate.
> >Has anyone experience something like this? Any help is really
>interval set
> My guess is that you have this combination of conditions:
> read-write transactions running that never finish, the sweep
> to 0 (auto-sweeping is disabled) and you never do manual sweeps.The first
> is a problem with your application code; the other two are causedby
> administrative ignorance and neglect, but the three are intertwined.transactions
>
> You can switch off auto-sweeping if your applications manage
> well (since auto-sweeping is unlikely to be triggered off where theoff
> application code takes proper care of transactions). If you switch
> sweeping, you must do manual sweeps. With good transactionmanagement, the
> need to sweep will be perhaps monthly, quarterly or even yearly.How often
> it's needed in a well-behaving database would depend on how muchdeleting
> you do. Apart from restores, sweeping is the only way to free upspace
> that was occupied by deleted records.might
>
> With poor transaction management (which your symptoms suggest) you
> need to sweep several times a week. But you really need to huntout those
> perpetual transactions and fix them so that you avoid getting thedatabase
> into this state.or 6
>
> Another contributor to your troubles may be a page size that is too
> small. If you inherited a database that was created with the IB 5
> defaults, or an early beta of Firebird 1, the default page size of1 Kb is
> pretty unrealistic and will cause to server to waste space and todraw
> blocks of page storage too often.running a
>
> You can find out quite a lot about the state of the database by
> gstat -h on it. Pipe the output to a file and paste it here so wecan help
> to work out what's going on it.
>
> ./heLen