Skip to content

Commit

Permalink
Merge pull request #104 from helldotcat/node-maxmem
Browse files Browse the repository at this point in the history
CLOS-2239: Fix pam_limits interference with LVE limits causing OOM in nodejs selector
  • Loading branch information
annkots authored Dec 7, 2023
2 parents b9e622d + 24d5a33 commit 0feff62
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/shared/cloudlinux_os_components/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6260,6 +6260,17 @@ This is a much more convenient approach to developing an application and debuggi
In this case, there is no useful information for debugging errors and this is suitable for production mode. More information about [PassengerFriendlyErrorPages](https://www.phusionpassenger.com/library/config/apache/reference/#passengerfriendlyerrorpages) and [PassengerAppEnv](https://www.phusionpassenger.com/library/config/apache/reference/#passengerappenv).
#### Known Restrictions and Issues
1. In some cases running commands e.g. `npm build` can produce an Out Of Memory error.
When the error is encountered in Nodejs Selector UI or in terminal in web browser, check physical and virtual memory LVE limits. Also check process limits through `ulimit -v -m` command in Terminal UI or inside `/proc/<process_id>/limits` file. Increase the limits if necesarry.
On cPanel, increase the default process memory limit:
```
whmapi1 set_tweaksetting key=maxmem value=8192
/usr/local/cpanel/scripts/restartsrv_cpsrvd
```
In some cases, due to bugs in underlying Node.js frameworks (e.g. [Out of memory: wasm memory](https://github.com/webpack/webpack/issues/15584#issuecomment-1104603420)) it could be necessarily to increase `maxmem` upto 50 Gb (`51200`) or even to `unlimited`.
## Apache mod_lsapi PRO
Expand Down

0 comments on commit 0feff62

Please sign in to comment.