Reputation: 3993
I have been working on customized code of one to many example, I came across this exception when there where more than 50 users joining the same room
debug KurentoWebSocketTransport WebSocketTransport.cpp:488 processMessage() Response: >{"error":{"code":40009,"data":{"type":"NOT_ENOUGH_RESOURCES"},"message":"Too many open files"},"id":5321,"jsonrpc":"2.0"}
Is there any specific reason why I am getting Too many open files
?
Am I not closing the mediapipeline properly ?
Increasing the file descriptor count to one million also didn't help. Which I don't think increasing file descriptor count should be a solution.
Any help is appreciated.
Upvotes: 1
Views: 1429
Reputation: 3541
It could be that you have reached the file descriptors for the process. To check FDs for a process, check this other SO thread. If you are not closing your pipelines and freeing up resources, it is most likely the case that you are reaching that limit.
Upvotes: 1