Closed cubxxw closed 7 months ago
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.
restart
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue was closed because it has been stalled for 7 days with no activity.
Body:
Description
When monitoring the logs of the
openimserver-openim-push
andopenimserver-openim-rpc-friend
pods, the following error was encountered after the service started:failed to create fsnotify watcher: too many open files
The error seems to be related to reaching the maximum file watchers limit.
Logs
For
openimserver-openim-push
pod:And for
openimserver-openim-rpc-friend
pod:Workaround
The issue was temporarily mitigated by increasing the system file watcher limits with the following commands:
However, this might not be a sustainable solution, especially in environments with multiple running pods/services. It is critical to understand why so many files are being watched and whether optimizations can be applied to reduce the number.
Environment
Expected Behavior
The services/pods should run without encountering the "too many open files" error and without requiring modifications to system-level file watcher settings.
Potential Solutions