Hey Fabiano
Perhaps DefaultDbCachePages is overwritten by database header information. 
Gstat -h will tell you that. Look for “Page buffers”


From: firebird-support@yahoogroups.com <firebird-support@yahoogroups.com>
Sent: 18. maj 2018 16:12
To: firebird-support@yahoogroups.com
Subject: [firebird-support] Firebird using all available memory


Hi,

I have a Debian 9 Linux server with 8GB of memory, a database with 30GB, page 
size 4KB, and Firebird 3.0.3 running in superserver mode and about 150-200 
concurrent connections.

In my firebird.conf I have changed the following properties:

DefaultDbCachePages = 524288 # 2GB
TempCacheLimit = 1024M # 1GB
LockMemSize = 2M

As superserver uses a shared cache, I presumed the total used memory should 
stay between 3GB and 4GB, but it keeps growing during the day until it reaches 
the 8GB limit and Firebird shuts down with this message:

debian  Fri May 18 10:45:35 2018
        Shutting down the server with 150 active connection(s) to 2 
database(s), 0 active service(s)

I am checking the active transactions during the day, and altought there are 
some old (2h to 3h) active transactions, I don't that an old active transaction 
should cause this, but I am reporting anyway, maybe it is relevant.

Do someone have some advice to what should I do to prevent this from happening?

Maybe my understanding about how Firebird uses memory is incorrect, so any 
advice about how I should calculate the required amount of memory needed is 
welcome.

PS: I have migrated from FB 2.5 recently (previously I did use superclassic 
mode), and these problems started after the migration.

Regards,

Fabiano


Vi gør opmærksom på, at denne e-mail kan indeholde fortrolig information. Hvis 
du ved en fejltagelse modtager e-mailen, beder vi dig venligst informere 
afsender om fejlen ved at bruge svarfunktionen. Samtidig beder vi dig slette 
e-mailen i dit system uden at videresende eller kopiere den. Selvom e-mailen og 
ethvert vedhæftet bilag efter vores overbevisning er fri for virus og andre 
fejl, som kan påvirke computeren eller it-systemet, hvori den modtages og 
læses, åbnes den på modtagerens eget ansvar. Vi påtager os ikke noget ansvar 
for tab og skade, som er opstået i forbindelse med at modtage og bruge e-mailen.

Please note that this message may contain confidential information. If you have 
received this message by mistake, please inform the sender of the mistake by 
sending a reply, then delete the message from your system without making, 
distributing or retaining any copies of it. Although we believe that the 
message and any attachments are free from viruses and other errors that might 
affect the computer or it-system where it is received and read, the recipient 
opens the message at his or her own risk. We assume no responsibility for any 
loss or damage arising from the receipt or use of this message.
  • [firebi... Fabiano Bonin fabiano.bo...@personalsoft.com.br [firebird-support]
    • RE... 'Thomas Kragh-Pedersen (TKG)' t...@kmd.dk [firebird-support]
      • ... Fabiano Bonin fabiano.bo...@personalsoft.com.br [firebird-support]
        • ... Javier Cintron fcintr...@yahoo.com [firebird-support]
          • ... Fabiano Bonin fabiano.bo...@personalsoft.com.br [firebird-support]
        • ... 'Thomas Kragh-Pedersen (TKG)' t...@kmd.dk [firebird-support]
        • ... Omacht András aoma...@mve.hu [firebird-support]
          • ... Fabiano Bonin fabiano.bo...@personalsoft.com.br [firebird-support]
            • ... Javier Cintron fcintr...@yahoo.com [firebird-support]
              • ... Fabiano Bonin fabiano.bo...@personalsoft.com.br [firebird-support]

Reply via email to