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

[FB3] Memory Leaks. FB does not release memory after load tests. [CORE5416] #5689

Closed
firebird-automations opened this issue Dec 9, 2016 · 10 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @ibprovider

Block progress on DNET743

Attachments:
fb_image.png
fb_performance.png
firebird.exe.ProcessExplorerData__DLLs.txt
firebird.exe.ProcessExplorerData__Resources.txt
IBP_TEST_FB30_D3.7z

Firebird does not release memory after completion of load tests.

Size of each memory leaks ~ equal to size of page cache

One interest moment:
1. When I execute (sequential) two "load tests set" without pause - FB not releases memory after second set.
@call run_test_w64_local2_d3.bat
@call run_test_w32_local2_d3.bat

Memory leak (approximately) == 3.5 GB

2. When I added a pause (10 min) between runs - I see 2xLeaks.
@call run_test_w64_local2_d3.bat
sleep 10m
@call run_test_w32_local2_d3.bat

Memory leak (approximately) == 7GB

---------------
Database Page: 16KB

Changes in firebird.conf:
DefaultDbCachePages = 200000
UserManager = Srp, Legacy_UserManager
MaxUnflushedWrites = -1
MaxUnflushedWriteTime = -1
WireCrypt = Enabled

----------------
Additional information for attached screenshots - because I executed parallel tests for two databases, memory leaks was multiplied by two and equal (at current moment) to 21GB.

Commits: 889f749 de191b7

@firebird-automations
Copy link
Collaborator Author

Modified by: @ibprovider

Attachment: fb_image.png [ 13042 ]

Attachment: fb_performance.png [ 13043 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @ibprovider

Attachment: firebird.exe.ProcessExplorerData__DLLs.txt [ 13045 ]

Attachment: firebird.exe.ProcessExplorerData__Resources.txt [ 13046 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @hvlad

Did you set database linger to some non-zero value at test database ?

@firebird-automations
Copy link
Collaborator Author

Commented by: @ibprovider

>Did you set database linger to some non-zero value at test database ?

No....

Database was created with default settings.

See attached archive with test database.

@firebird-automations
Copy link
Collaborator Author

Commented by: @ibprovider

Empty test database for FB3, third dialect.

@firebird-automations
Copy link
Collaborator Author

Modified by: @ibprovider

Attachment: IBP_TEST_FB30_D3.7z [ 13048 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

assignee: Vlad Khorsun [ hvlad ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @cincuranet

Link: This issue block progress on DNET743 [ DNET743 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

Version: 3.0.1 [ 10730 ]

Version: 3.0.0 [ 10740 ]

Version: 4.0 Initial [ 10621 ]

Fix Version: 4.0 Alpha 1 [ 10731 ]

Fix Version: 3.0.3 [ 10810 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

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