-
Notifications
You must be signed in to change notification settings - Fork 548
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 files after a while #2568
Comments
after more digging found out that these files are created like this: [ D3 2024-10-07 11:11:05.8215 604538/T2j Ser/HttpChunkedBodyParser.h:162 ]: [Client 14] ChunkedBodyParser: parsing 4048 of 14786 bytes of remaining chunk data; 10738 now remaining the file is being created and opened, but never closed again. |
I'm also getting the same error when I host my Nuxt SSR application.
|
@Nitaaq Were you able to find a solution? |
@KibetMasiror been doing some digging, turns out whenever the ssr output is too big passenger defers to on-disk buffer, This buffer opens a file descriptor but for some reason doesnt close it, possible fixes is to make your SSR output less in size, or do a cron job that restarts apache/nginx which is almost instant depending on your configuration |
@Nitaaq Thanks for your response. Will definitely try it out. Could the problem also be caused by high traffic such that each visit spawns a new process then fails to close it for some reason (memory leaks caused by conflicting processes)? |
@KibetMasiror we do have high traffic but the process is not getting killed, no memory leaks whatsoever, my issue is more likely is a file descriptor leak than a memory leak. you can check your /var/run/ea-ruby27-passenger for buffer.[random number] files, and check your open files from the main PassengerAgent process by determining your pid with this command: and running this command to see how much open files you have at the moment if this number keeps increasing over time it will eventually reach the limit specified in here |
@Nitaaq Thank you so much for your assistance |
Hello,
I've been running a nextJS app under passenger installed using WHM EasyApache 4,
The main process PassengerAgent is incrementally opening file descriptors without closing them, leads to reaching the ulimit after a while
Looked up the files they were named buffer.(number) with 0 bytes in them
Tried looking up why passenger is creating these files at the first place, couldn't find anything in the documentation referring to these files
Can you please help with whatever is going on
OS: AlmaLinux v8.10.0 STANDARD
Passenger Version: 6.0.23
The text was updated successfully, but these errors were encountered: