Geekzone: technology news, blogs, forums
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.

335 posts

Ultimate Geek
+1 received by user: 48

Topic # 245585 11-Feb-2019 23:32
Send private message quote this post

starting a new sever and im using php-fpm 7.1


keep getting warning like this


WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children, there are 0 idle, and 9 total children


i change my default  www.conf to below but still getting warnings


my setting are


pm = dynamic


pm.max_children = 17


pm.start_servers = 2


pm.min_spare_servers = 1


pm.max_spare_servers = 3


pm.process_idle_timeout = 10s;


pm.max_requests = 1000




server has 1 core cpu and 2gb ram running Ubuntu 18 with Apache


any tips ?

Create new topic
Mr Snotty
8435 posts

Uber Geek
+1 received by user: 4360

Lifetime subscriber

  Reply # 2176821 11-Feb-2019 23:58
Send private message quote this post

What is this server hosting? It can be hard to balance this depending on how much ram each process uses. Really, it is trial and error. For a site that achieves ~3mil hits per day (running PHP-FPM, Apache with a seperate database server) I have this:


pm = dynamic
pm.max_children = 50
pm.start_servers = 20
pm.min_spare_servers = 10
pm.max_spare_servers = 35
pm.max_requests = 1000


The server has 2x Virtual CPU cores and 4gb of ram with NVME backed storage (I also have 4gb allocated to SWAP) and the site it hosts runs quickly. This is what works for me, but it may not work for you.

335 posts

Ultimate Geek
+1 received by user: 48

  Reply # 2176824 12-Feb-2019 01:08
Send private message quote this post

vultr vps im using with 1 core


forgot to post i have a 2gb swap too and MySQL on another server


ill test with about half of what you got


pm = dynamic
pm.max_children = 25
pm.start_servers = 10
pm.min_spare_servers = 5
pm.max_spare_servers = 16
pm.max_requests = 1000


what do you use in mpm_event.conf ?? on Apache ?


mine is keep as default settings







Create new topic

Donate via Givealittle

Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:

Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:

Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:

News »

Amazon introduces new Kindle with adjustable front light
Posted 21-Mar-2019 20:14

A call from the companies providing internet access for the great majority of New Zealanders, to the companies with the greatest influence over social media content
Posted 19-Mar-2019 15:21

Two e-scooter companies selected for Wellington trial
Posted 15-Mar-2019 17:33

GeForce GTX 1660 available now
Posted 15-Mar-2019 08:47

Artificial Intelligence to double the rate of innovation in New Zealand by 2021
Posted 13-Mar-2019 14:47

LG demonstrates smart home concepts at LG InnoFest
Posted 13-Mar-2019 14:45

New Zealanders buying more expensive smartphones
Posted 11-Mar-2019 09:52

2degrees Offers Amazon Prime Video to Broadband Customers
Posted 8-Mar-2019 14:10

D-Link ANZ launches D-Fend AC2600 Wi-Fi Router Protected by McAfee
Posted 7-Mar-2019 11:09

Slingshot commissions celebrities to design new modems
Posted 5-Mar-2019 08:58

Symantec Annual Threat Report reveals more ambitious, destructive and stealthy attacks
Posted 28-Feb-2019 10:14

FUJIFILM launches high performing X-T30
Posted 28-Feb-2019 09:40

Netflix is killing content piracy says research
Posted 28-Feb-2019 09:33

Trend Micro finds shifting threats require kiwis to rethink security priorities
Posted 28-Feb-2019 09:27

Mainfreight uses Spark IoT Asset Tracking service
Posted 28-Feb-2019 09:25

Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.

Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron

Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.