Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| faq:nix [2022/05/06 22:20] – Add FAQ about "Too many open files" error and solution digital man | faq:nix [2023/02/08 23:50] (current) – [Maximum Open Files] Replace pgrep with pidof digital man | ||
|---|---|---|---|
| Line 22: | Line 22: | ||
| * [[#SDL Errors|How do I work around SDL 1.2 run-time errors]]? | * [[#SDL Errors|How do I work around SDL 1.2 run-time errors]]? | ||
| * [[# | * [[# | ||
| - | * [[#maxopenfiles|How do I resolve ERROR 24 (Too many open files)]]? | + | * [[#Maximum_Open_Files|How do I resolve ERROR 24 (Too many open files)]]? |
| | | ||
| ===== Flavors ===== | ===== Flavors ===== | ||
| Line 256: | Line 256: | ||
| ===== Maximum Open Files ===== | ===== Maximum Open Files ===== | ||
| **Question: | **Question: | ||
| - | Why am I getting | + | Why am I seeing |
| **Answer: | **Answer: | ||
| - | You need to increase your maximum | + | 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 '' |
| - | On Linux, edit ''/ | + | **Answer: |
| + | 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 view the soft limit: '' | ||
| + | To view the hard limit: '' | ||
| + | |||
| + | Another method that works on Linux is to search for line beginning with "Max open files" in the file ''/ | ||
| + | $ sudo grep "Max open files" / | ||
| + | Max open files 10000 10000 files | ||
| + | |||
| + | **If you start Synchronet with systemd**\\ | ||
| + | If you're using [[howto: | ||
| + | |||
| + | <file sbbs.service> | ||
| + | LimitNOFILE=10000 | ||
| + | </ | ||
| + | |||
| + | After adding the line, reload the service file from the command line using '' | ||
| + | |||
| + | **If you start Synchronet manually or with a shell script**\\ | ||
| + | If you start sbbs with a shell script, manually from the command line, or some other similar method, edit ''/ | ||
| + | |||
| + | To raise the soft limit for your Synchronet user, add this line: | ||
| <file limits.conf> | <file limits.conf> | ||
| - | * soft nofile | + | yourBBSuser |
| </ | </ | ||
| + | |||
| + | | ||
| ===== See Also ===== | ===== See Also ===== | ||
| * [[: | * [[: | ||