Skip to content

Commit 143f0e3

Browse files
committed
Updated documentation for mod_lsapi as new option oom_score_adj was added
1 parent 4b0a7df commit 143f0e3

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/cloudlinux_os_components/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6596,6 +6596,7 @@ For installation guide mod_lsapi PRO please visit [Installation](/cloudlinux_os_
65966596
* [lsapi_backend_pgrp_max_reqs](/cloudlinux_os_components/#lsapi-backend-pgrp-max-reqs)
65976597
* [lsapi_backend_pgrp_max_crashes](/cloudlinux_os_components/#lsapi-backend-pgrp-max-crashes)
65986598
* [lsapi_backend_loglevel_info](/cloudlinux_os_components/#lsapi-backend-loglevel-info)
6599+
* [lsapi_backend_oom_score_adj](/cloudlinux_os_components/#lsapi-backend-oom-score-adj)
65996600
* [lsapi-server-tweak](/cloudlinux_os_components/#lsapi-server-tweak) Beta
66006601
66016602
[Connection pool mode](/cloudlinux_os_components/#connection-pool-mode):
@@ -6944,6 +6945,20 @@ Controls how many crashes of its worker processes a control process will detect
69446945
69456946
---
69466947
6948+
#### **lsapi_backend_oom_score_adj**
6949+
6950+
**Syntax**: lsapi_backend_oom_score_adj [number]
6951+
6952+
**Default**: lsapi_backend_oom_score_adj 0
6953+
6954+
**Context**: httpd.conf, virtualhost
6955+
6956+
**Description**: This option can be used to apply **oom_score_adj** values for PHP processes created by mod_lsapi. Value is an integer in the -1000 to 1000 range. The lower the value, the lower the chance that the process will be killed.
6957+
When your server becomes low on free memory and an OOM killer is invoked then desirable that lsphp processes are sacrificed to free up memory. To do this, you need to set oom_score_adj to a large value.
6958+
For more information on setting value **oom_score_adj**, see the page [https://man7.org/linux/man-pages/man5/proc.5.html](https://man7.org/linux/man-pages/man5/proc.5.html)
6959+
6960+
---
6961+
69476962
#### **lsapi_server_tweak** <Badge text="beta" />
69486963
69496964
**Syntax**: lsapi_server_tweak [On/Off]

0 commit comments

Comments
 (0)