New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blocking new connections as a consequence of the too long sweep security2.fdb [CORE5067] #5354
Comments
Commented by: Oleg Matveyev (o_matveev) Full dump fb_inet_server allowed, but cannot upload by restriction file size 10Mb |
Modified by: Oleg Matveyev (o_matveev)Attachment: security2.7z [ 12865 ] |
Commented by: Oleg Matveyev (o_matveev) Workaround: backup-restore secirity2.fdb. But after this operation Oldest transaction always is 1 Database "c:\ib\security2.fdb"
|
Modified by: Oleg Matveyev (o_matveev)environment: Windows x64, Firebird Classic Server x64 => Windows x64, Firebird Classic Server x64. 26952 Build (2.5.5 release), 2.5.3 release too |
Commented by: Petr Smach (petr.smach) I've same problem with 2.5.4 Classic server. (test 2.5.3 and 2.5.5 too, Superserver doesn't have this issue) Database "d:/security2.fdb"
|
Modified by: @hvladassignee: Vlad Khorsun [ hvlad ] |
Commented by: @hvlad The issue reason is a bit complex and could be divided into two parts. 2. Slow transaction start. |
Commented by: @hvlad Fix is committed into v2.5.6 and available for testing. Fix contains: - engine now updates header page with cached transaction counters when last attachment disconnects from database - algorithm for searching oldest active transaction in TIP cache is improved and now it have complexity O(N) not O(N^2) - also, engine updates header page with transaction counters just before the sweep - to have refreshed counters values |
Modified by: @hvladstatus: Open [ 1 ] => Resolved [ 5 ] resolution: Fixed [ 1 ] Fix Version: 3.0 RC2 [ 10048 ] Fix Version: 2.5.6 [ 10721 ] |
Commented by: John Franck (bozzy) Is there any anticipation on the release date for FB 2.5.6? This issue is giving me (and not only me, I suppose) a lot of problems. With high connection rates, in a month the delta between oldest and next transaction could arise a lot (I'm in the order of 15.000.000). This value is sufficient to slow down connections by about 10x a clean installation (I have ~20ms connection time with clean security2.fdb, while a month later it's ~180ms). FB is consuming a lot of resources (CPU is often hitting 100%) and this is unacceptable. The backup/restore workaround implies a downtime, that's not always feasible... BTW, I'm actually having troubles doing so, gbak -se is giving me an error saying it can't write the backup file, despite I'm running as root and the path does exists (I'm on CENTOS 7 x64). By now, the only solution I've found is to overwrite security2.fdb with a clean copy made just after a clean FB installation (I have no users configured). |
Commented by: @dyemanov v2.5.6 should be released in April. |
Commented by: @paulbeach Snapshot? http://www.firebirdsql.org/en/snapshot-builds/ |
Submitted by: Oleg Matveyev (o_matveev)
Attachments:
security2.7z
Votes: 2
Symptoms: every time one process fb_inte_server.exe load 100% CPU one kernel after some easy queries.
Current process ID is not present in SELECT FROM MON$ATTACHMENTS.
After one hour of continuous working, no more connections allowed,
and number fb_inet_server process increased from 40..50 to more than 250.
firebird.log:
______________________________
WOODY Sun Jan 03 13:26:01 2016
Sweep is started by SWEEPER
Database "C:\IB\SECURITY2.FDB"
OIT 19821012, OAT 20, OST 20, Next 70004809
WOODY Sun Jan 03 13:34:03 2016
Shutting down the server with 1 active connection(s) to 1 database(s), 0 active service(s)
WOODY Sun Jan 03 13:34:06 2016
Sweep is started by SWEEPER
Database "C:\IB\SECURITY2.FDB"
OIT 19821012, OAT 20, OST 20, Next 70005503
WOODY Sun Jan 03 13:36:23 2016
Shutting down the server with 1 active connection(s) to 1 database(s), 0 active service(s)
WOODY Sun Jan 03 13:36:24 2016
Sweep is started by SWEEPER
Database "C:\IB\SECURITY2.FDB"
OIT 19821012, OAT 20, OST 20, Next 70005604
WOODY Sun Jan 03 13:46:27 2016
Sweep is started by SWEEPER
Database "C:\IB\SECURITY2.FDB"
OIT 19821012, OAT 20, OST 20, Next 70005805
WOODY Sun Jan 03 13:51:03 2016
Sweep is started by SWEEPER
Database "C:\IB\SECURITY2.FDB"
OIT 19821012, OAT 20, OST 20, Next 70006002
______________________________
gstat -h
Database "c:\ib\security2.fdb"
Database header page information:
Flags 0
Checksum 12345
Generation 140017716
Page size 4096
ODS version 11.2
Oldest transaction 19821012
Oldest active 20
Oldest snapshot 20
Next transaction 70008371
Bumped transaction 1
Sequence number 0
Next attachment ID 70008352
Implementation ID 16
Shadow count 0
Page buffers 0
Next header page 0
Database dialect 3
Creation date Mar 19, 2013 10:56:23
Attributes force write
______________________________
Commits: 7a017e6 dc31f92 59e6c1f f2c8f05 76fb404 3553f54 cf5f8a9 FirebirdSQL/fbt-repository@cfa6229 FirebirdSQL/fbt-repository@4902036 FirebirdSQL/fbt-repository@c96b695 FirebirdSQL/fbt-repository@f9fc4be
The text was updated successfully, but these errors were encountered: