Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
faq:nix [2022/05/07 18:50] – [Maximum Open Files] added systemd section. nelgin | faq:nix [2023/02/08 23:50] (current) – [Maximum Open Files] Replace pgrep with pidof digital man | ||
---|---|---|---|
Line 257: | Line 257: | ||
**Question: | **Question: | ||
Why am I seeing '' | Why am I seeing '' | ||
+ | |||
+ | **Answer: | ||
+ | Versions of Synchronet prior to v3.19c contained a bug with the JavaScript //User// class that could cause a leak of open file descriptors (concurrent opens of the '' | ||
**Answer: | **Answer: | ||
You need to increase your maximum number of open files. | You need to increase your maximum number of open files. | ||
+ | \\ \\ | ||
+ | **Checking current open file limits**\\ | ||
+ | The most reliable way to determine your open file limit is to login to your BBS as a sysop, run the ''; | ||
- | To determine your open file limit, when logged in as the user Synchronet runs as, use the commands below. The hard limit is the systemwide limit, and the soft limit is one that a user can raise (up to the hard limit). | + | To view the soft limit: '' |
+ | To view the hard limit: '' | ||
- | Soft limit: | + | Another method that works on Linux is to search for line beginning with "Max open files" in the file '' |
- | Hard limit: '' | + | $ sudo grep "Max open files" / |
+ | Max open files 10000 10000 files | ||
- | To alleviate the ERROR 24 problem on Linux, follow one of the following | + | **If you start Synchronet with systemd**\\ |
+ | If you're using [[howto: | ||
+ | <file sbbs.service> | ||
+ | LimitNOFILE=10000 | ||
+ | </ | ||
- | If you're not using systemd to start sbbs you can edit '' | + | After adding the line, reload the service file from the command line using '' |
- | To raise the soft limit up to the hard limit for your Synchronet | + | **If you start Synchronet |
+ | If you start sbbs with a shell script, manually from the command line, or some other similar method, edit ''/ | ||
- | <file limits.conf> | + | To raise the soft limit for your Synchronet user, add this line: |
- | yourBBSuser | + | |
- | </ | + | |
- | + | ||
- | If you are still receiving ERROR 24, try raising both limits | + | |
<file limits.conf> | <file limits.conf> | ||
- | * | + | yourBBSuser |
- | * soft | + | |
</ | </ | ||
- | |||
- | |||
- | If you are running sbbs from systemd then you'll need to edit your service file. Add the following line in the [Service] section | ||
- | |||
- | | ||
- | Reload the service file | ||
- | |||
- | | ||
- | This will give you a safety net in case a runaway process tries to open a lot of files. Don't forget to restart your bbs after making the change. | ||
- | |||
- | To verify the number of files, you can use the sysop ;SHELL command and run | ||
- | ulimit -a | ||
- | to see exactly which limits your process is to conform to. | ||
| |