解决PHP-FPM报错: [pool www] server reached pm.max_children setting (5), consider raising it

最近配置了nextcloud,然后发现网站频繁卡死(WordPress和nextcloud)

怀疑PHP有问题,一查log果不其然。发现错误码:[pool www] server reached pm.max_children setting (5), consider raising it。

查询资料得知:需要编辑配置

 nano /etc/php/7.3/fpm/pool.d/www.conf
默认值小的可怜
pm.max_children = 5
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 3
改大点
pm.max_children = 256
pm.start_servers = 32
pm.min_spare_servers = 1
pm.max_spare_servers = 64

注意 pm.start_servers = min_spare_servers + (max_spare_servers – min_spare_servers) / 2
必须按这个公式 不然启动报错

暂无评论

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇