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


bigalow

568 posts

Ultimate Geek
+1 received by user: 112


#245585 11-Feb-2019 23:32
Send private message

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
michaelmurfy
meow
13579 posts

Uber Geek
+1 received by user: 10910

Moderator
ID Verified
Trusted
Lifetime subscriber

  #2176821 11-Feb-2019 23:58
Send private message

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.





Michael Murphy | https://murfy.nz
Referral Links: Quic Broadband (use R122101E7CV7Q for free setup)

Are you happy with what you get from Geekzone? Please consider supporting us by subscribing.
Opinions are my own and not the views of my employer.




bigalow

568 posts

Ultimate Geek
+1 received by user: 112


  #2176824 12-Feb-2019 01:08
Send private message

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








Geekzone Live »

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



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.