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

Too many open file handles #9060

Closed
jamieb22 opened this issue Nov 11, 2019 · 10 comments
Closed

Too many open file handles #9060

jamieb22 opened this issue Nov 11, 2019 · 10 comments
Assignees
Labels
Milestone

Comments

@jamieb22
Copy link

jamieb22 commented Nov 11, 2019

OrientDB Version:

3.0.24

Java Version

1.8

OS

Linux dbtest 4.15.0-66-generic #75-Ubuntu SMP Tue Oct 1 05:24:09 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Expected behavior

Do not expect huge number of open file handles

Actual behavior

File handle limit exceeded

Steps to reproduce

In this scenario, our multitenant application starts around 80 Orient DB databases. The Orient DB databases were created and are readable using Orient DB v2.2.27. Please download a full stack of all orient db file handles at the exact time open file handles error occurred: orientdb_openfilehandle_logs.zip

@jamieb22 jamieb22 changed the title MultitenantToo many open file handles Multitenant: Too many open file handles Nov 11, 2019
@valenpo
Copy link

valenpo commented Nov 11, 2019

@Laa Andrey, hello.

I'm trying copy all databases locally for debug. Right now compressing all database folder.
And find that it contains 96411. We limit for 64k opened file's. Maybe odb try open all files on one shot?

Total number of databases is 90.

7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=C,Utf16=off,HugeFiles=on,64 bits,16 CPUs Intel(R) Xeon(R) Gold 6140 CPU @ 2.30GHz (50654),ASM,AES-NI)

Scanning the drive:
2247 folders, 94164 files, 221561883935 bytes (207 GiB)                      

Creating archive: var.opt.archive.7z

Items to compress: 96411

@jamieb22
Copy link
Author

bump

@jamieb22 jamieb22 changed the title Multitenant: Too many open file handles Too many open file handles Jan 7, 2020
@tglman tglman added the bug label Jun 1, 2020
@tglman tglman added this to the 3.0.x milestone Jun 1, 2020
@andrii0lomakin
Copy link
Member

Please check latest 3.0.x, it should be already fixed.

@jamieb22
Copy link
Author

Thanks for fix, however, latest is still OrientDB 3.0.32. Must we build it ourselves?

@andrii0lomakin
Copy link
Member

Hi, @jamieb22 let me check couple of things before that, I will let you know when you should try new version a bit later.

@andrii0lomakin
Copy link
Member

andrii0lomakin commented Oct 20, 2020

Hi @valenpo , do you open all those databases in separate JVMs or inside of the single one?

@valenpo
Copy link

valenpo commented Oct 20, 2020 via email

@andrii0lomakin
Copy link
Member

You can see the limit of open files printed during the start of the database (does not matter server or embedded). Could you send me this number and also could you send me the value of the limit of open files on your system?

@valenpo
Copy link

valenpo commented Oct 20, 2020 via email

@andrii0lomakin
Copy link
Member

Limit of open database files is changed according to the OS settings. So the more limit you set the more open files you will have. Could you check the log and check the limit of open files in the console. Also, of course, check whether this problem is reproducible.

@jamieb22 jamieb22 closed this as completed May 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

4 participants