Hi
Look at output of gstat -h
And check if your application handle transaction correctly.
There are infos like:
Oldest transaction 166
Oldest active 167
Oldest snapshot 167
Next transaction 170
For details you can run some select on MON$ tables to see where the exact problem is.
PS. Which Firebird version?
Regards,
Karol Bieniaszewski
--
You received this message because you are subscribed to the Google Groups "firebird-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebird-suppo...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/firebird-support/6de2ceea-a34d-4d4e-be58-34c977e9bd52n%40googlegroups.com.
Hi
Few things.
To view this discussion on the web, visit https://groups.google.com/d/msgid/firebird-support/edc894a5-ee62-408f-8ab5-39538630d010n%40googlegroups.com.
I do not know how big is your database but
pageSize * DefaultDbCachePages = 4096 * 2048 = 8 MB cache memory used for support your database 😉
To view this discussion on the web, visit https://groups.google.com/d/msgid/firebird-support/e64128bb-275c-45e8-8aae-71b0fb9eba6fn%40googlegroups.com.
Dimitry - about „Timeout occurred while waiting for a secondary connection for event processing” this issue occurred for us too.
And starting clearly new app even on different computer was not possible as Firebird stopped responding for events connections.
It respond for normal connections without events, but events stopped working.
Only restart of the Firebird service helped, no changes in the firewall was required at all. So looks like some issue with FB itself is possible here too.
Regards,
Karol Bieniaszewski
Od: 'Dimitry Sibiryakov' via firebird-support
Wysłano: środa, 11 września 2024 11:22
Do: firebird...@googlegroups.com
Temat: Re: [firebird-support] Restart works, errno = 104 Firebird 2.5<LI-V2.5.2.26540
Abdul Muqtadir wrote 11.09.2024 10:25:
--
You received this message because you are subscribed to the Google Groups "firebird-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebird-suppo...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/firebird-support/dc5a9e80-127e-4b4d-ab8a-c35d21033855%40ibphoenix.com.
Yes, it looks exactly the same.
Regards,
Karol Bieniaszewski
Od: 'Dimitry Sibiryakov' via firebird-support
Wysłano: środa, 11 września 2024 13:55
Do: firebird...@googlegroups.com
Temat: Re: [firebird-support] Restart works, errno = 104 Firebird 2.5<LI-V2.5.2.26540
'Karol Bieniaszewski' via firebird-support wrote 11.09.2024 13:43:
--
You received this message because you are subscribed to the Google Groups "firebird-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebird-suppo...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/firebird-support/9f87e66f-4bfd-4739-9348-f351a110481d%40ibphoenix.com.
[root@localhost bin]# ulimit -n
1024
[root@localhost bin]# sysctl net.core.somaxconn
net.core.somaxconn = 128
[root@localhost firebird]# pstree -p | grep fbserver
|-fbguard(26664)---fbserver(26665)-+-{fbserver}(26669)
| |-{fbserver}(26671)
| |-{fbserver}(26710)
| |-{fbserver}(26711)
| |-{fbserver}(26712)
| |-{fbserver}(26713)
| |-{fbserver}(26714)
| |-{fbserver}(3249)
| |-{fbserver}(3503)
| |-{fbserver}(3505)
| |-{fbserver}(6098)
| |-{fbserver}(8503)
| |-{fbserver}(11447)
| |-{fbserver}(11764)
| |-{fbserver}(11770)
| `-{fbserver}(12297)
[root@localhost firebird]# /usr/sbin/service firebird status
Firebird server [default] is running (pid 26665)
[root@localhost firebird]# free -h
total used free shared buff/cache available
Mem: 5.5G 1.5G 285M 148M 3.8G 3.6G
Swap: 15G 294M 15G
[root@localhost firebird]# netstat -an | grep 3050
tcp 0 0 0.0.0.0:3050 0.0.0.0:* LISTEN
tcp 0
0 *.*.*.* :3050 ********** :57204
ESTABLISHED
*more than 50 established user connections here below*
===================
[root@localhost firebird]# lsof -i :3050
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
fbserver 26665 firebird 0u IPv4 300649456 0t0 TCP *:gds_db (LISTEN)
fbserver 26665 firebird 3u IPv4 300768648 0t0 TCP localhost.localdomain:gds_db->************************:56512 (ESTABLISHED)
*more than 50 established user connections here below*
===============================
Hi
Looking at the logs, nothing stands out. However, there are multiple updates recorded on the same table.
You can check the full gstat to see if there aren't too many record versions on the updated table.
There is a small gap in transactions, but it isn't significant (Oldest active vs. Next transaction).
However, without knowing the exact operation that is slow for you and causing you to stop the service, it's difficult for us to pinpoint the cause.
Regards,
Karol Bieniaszewski
To view this discussion on the web, visit https://groups.google.com/d/msgid/firebird-support/ea17b61b-9496-4046-b189-2929e0b6a914n%40googlegroups.com.