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

Lots of proc files left open #1597

Open
ratetel opened this issue Jan 19, 2023 · 5 comments
Open

Lots of proc files left open #1597

ratetel opened this issue Jan 19, 2023 · 5 comments

Comments

@ratetel
Copy link

ratetel commented Jan 19, 2023

Hello... we are running the latest rtpengine with recording in debian 11 lxcs. Under high loads, we are seeing several million open files left behind with:

~# lsof |grep rtpengine | wc -l
15452848

As a result we are getting tons of "Too many open files" errors and rtpengine fails to engage.

We've set respectable ulimits for the LXC and host OS.

Anyone have an ideas?

@rfuchs
Copy link
Member

rfuchs commented Jan 20, 2023

Which files are those?

Are you closing your calls correctly?

@ratetel
Copy link
Author

ratetel commented Jan 20, 2023 via email

@rfuchs
Copy link
Member

rfuchs commented Jan 20, 2023

Can you be more specific? A concrete example maybe?

@vladpaiu
Copy link

Hello,

On a server not running traffic any more, we're running

lsof | grep rtpengine > /tmp/lsof_out

Then for a callid that's ended, we do

grep -nrH "74eb216b2a77a9ba5f43b2604ca41937" /tmp/lsof_out | wc -l
1828

so we get a huge number of open /proc/rtpengine/3/calls/74eb216b2a77a9ba5f43b2604ca41937 type of files..

The strange thing is that lsof also outputs the thread ID that is using the open files, and in the /tmp/lsof_out we see loads of threads that are not currently running ( from the output of ps -T -p [rtpengine-recording-pid-here] ).

@rfuchs
Copy link
Member

rfuchs commented Jan 20, 2023

And these open files are ... ??

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

No branches or pull requests

3 participants