Skip to content
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

Slow connect/disconect FB 2.1.4 on Win2003 [CORE3455] #3816

Open
firebird-automations opened this issue Apr 28, 2011 · 4 comments
Open

Slow connect/disconect FB 2.1.4 on Win2003 [CORE3455] #3816

firebird-automations opened this issue Apr 28, 2011 · 4 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: rudi f (rudibr78)

Votes: 1

This is a rather weird behaviour and I probably wouldve not create a ticket but I saw it happening on 3 distinct and unrelated win 2003 servers running FB 2.1.3 and 2.1.4

We had a large surge of users as of last week and the server response got extremely slow.
After a lot of debuging and optmizing queries/indexes, it became clear all of the slow down was being caused by slow connection speeds.

We did a small benchmark tool to test for connection speed and concurrent connections. The tool consists on connecting and disconnecting N times to the database. By executing/instantiating the tool multiple times we could simulate concurrent connections.

The connection times averages were pretty abysmal :
1 connection : avg 70 ms connect time
2 connections : avg 120
3 connections : avg 180
4 connections : avg 250

Having to deal with the issue ASAP we got a new more robust win2008 64 bit server. We were glad to see the problem was gone. Our benchmark tool had 6 concurrent connections at 15-30 ms (same as 1 connection).

Out of curiosity tho, I decided to run the tool on my local win7 23bit 1gb dev machine.
I got the same fast results as the win2008 server with lots of concurrent connections.

I then ran the benchmark on 2 other random win2003 machines (some of our client's machines).
We are not the admins of those setups and they may vary, but the progressively bad connection results appeared on those machines too.

I understand this was something of an issue with FB 1.0 and fixed in 1.5 , it doesnt sound to be exactly the same thing but its happening anyway.

On our problematic server we upgraded, we had 60 users using temporary connections (permanent connections/pooling unfourtunately is not an option for us) , when the connections reached about 25-30 simultaneously, the benchmark tool was responding up to 2.5 - 3 seconds to estabilish a new connection.

@firebird-automations
Copy link
Collaborator Author

Commented by: Sean Leyne (seanleyne)

Please confirm:

- SuperServer or Classic engine?

- Database page cache size?

- Amount of memory free and used by Firebird processes as the number of connections increases?

@firebird-automations
Copy link
Collaborator Author

Commented by: rudi f (rudibr78)

Classic
page cache is defaulting "DefaultDbCachePages", so its 75 I believe. All other firebird.conf inis are defaulting too.
on the highest usage, 2.5gb free memory, 300mb used by firebird (30 processes at 10k each)

@firebird-automations
Copy link
Collaborator Author

Commented by: Sean Leyne (seanleyne)

Confirm the pages cache setting using gstat or gfix (I can never keep those straight in my mind)

@firebird-automations
Copy link
Collaborator Author

Commented by: rudi f (rudibr78)

sure, heres the gstat

Database "d:\firebird\ibfibra_piloto.gdb"
Database header page information:
Flags 0
Checksum 12345
Generation 37825343
Page size 16384
ODS version 11.1
Oldest transaction 31514037
Oldest active 31514038
Oldest snapshot 31513992
Next transaction 31514078
Bumped transaction 1
Sequence number 0
Next attachment ID 6415635
Implementation ID 16
Shadow count 0
Page buffers 0
Next header page 0
Database dialect 3
Creation date Sep 16, 2008
Attributes force write

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant