Troubleshooting
v5.16.0
Search this version
Troubleshooting
Troubleshooting
Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Too Many Sockets or Files Open
Copy Markdown
Open in ChatGPT
Open in Claude
Only on Linux systems: if too many sockets or files are open by the process this can cause problems.
How to detect
Check the file descriptor limit:
ulimit -nCheck the used file descriptor count on a running process:
watch -n 1 "ls /proc/\`ps -eo comm,pid | awk '\$1 == \"ometascan\" { print \$2 }'\`/fd | wc -l"If the count is close to the limit this will cause problems.
Rule of thumb: 1 scan workflow requires 2-3 file descriptors.
Solution
Increasing the number of file descriptors
The command ulimit -n displays the current set number of maximum file descriptors. In order to increase this number follow the next steps:
Append this line to /etc/sysctl.conf
fs.file-max = 65535Add the following lines to /etc/security/limits.conf
* soft proc 65535* hard nproc 65535* soft nofile 65535* hard nofile 65535Restart the system to apply the new configuration. After restart you can check the changed limit by issuing ulimit -n
> ulimit -n> 65535Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
Last updated on
Was this page helpful?
Next to read:
Too Many TIME_WAIT SocketDiscard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message
