Limiting php5-fpm processes.

Discussion in 'Installation/Configuration' started by Plutocrat, Jul 7, 2016.

  1. Plutocrat

    Plutocrat New Member

    Hi
    I notice that for each website that is set up, a new php5-fpm pool is started. I'm running a small server with a lot of low traffic websites, so this eats up a lot of the server memory, and I sometimes have to restart the service to free up some memory.
    I'm wondering if its possible to stop the creation of so many processes? Would it be possible, for example, to limit the number of php5-fpm instances to one per client? I could perform this change manually, of course, but then the config would probably get overwritten by ISPconfig. Is there a setting somewhere within the admin interface that I haven't discovered, or some other hacky way of doing this?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Set php-fpm mode to ondemand in website settings (options tab) of the website. There you can also set a limit for the number of processes.
     
  3. Plutocrat

    Plutocrat New Member

    Great. That's cut the number of php-fpm processes from 26 to around 6-10 and saved me about 200Mb of memory. Exactly what I needed. Thanks.
     

Share This Page