Skip to content

Commit

Permalink
Fix #211: memlock 73728 is the smallest limit that works for Alpine…
Browse files Browse the repository at this point in the history
… Linux 3.20.3 x86_64 build (#212)
  • Loading branch information
alopatindev authored Oct 20, 2024
1 parent 88b1292 commit 751ef79
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/ws/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ proxied to IPv4 requests, and IPv6 requests to IPv6 requests.

Make sure locked memory limits are sufficient:
- If you're using a systemd service file, add `LimitMEMLOCK=65536000` to it
- If you're using openrc, make sure you have `rc_ulimit='-l 65536'` in your init script
- Otherwise, add the following lines to
`/etc/security/limits.conf`, and then log out and back in:

Expand All @@ -71,6 +72,8 @@ Make sure locked memory limits are sufficient:
* soft memlock 65536
```

In Alpine Linux you will likely need a [higher limit](https://github.com/greatest-ape/aquatic/issues/211).

Once done, start the application:

```sh
Expand Down

0 comments on commit 751ef79

Please sign in to comment.