Skip to content

This site/page has used all available php / apache processes

Some people see an error page on their website with the following contents:

This site / page has used all avaialble php / apache processes allowed on free hosting.

Refreshing the page once the amount of apache / php processes are reduced will cause the site to work

We would recommend upgrading your hosting account at IFastNet Premium hosting accounts, premium hosting accounts have MUCH higher resources dedicated to them.

This article explains why you may see this page, and what you can do to avoid seeing it.

What do these PHP / Apache processes mean?

Every time a request to a PHP script on your website is made, a new program is started to execute your PHP code. This process then executes your code, sends the response to the visitor, and finally quits.

Note that one entry process is created for every request, not every PHP file. So if your code includes multiple PHP files, these still count as one entry process.

Why do I see this error on my website?

The short answer is simple: there are too many PHP scripts being executed on your account at the same time.

There are various reasons why you so many PHP scripts are being executed at once. Here are some common causes:

  • Too many simultaneous visitors. If many people are trying to open a page on your website at the same time, this typically launches a lot of PHP code as well.
  • Website pages take too long to load. A PHP/Apache process is freed whenever a script finishes executing. If your code completes in 1 second, it won't use up any processes after that 1 second. If your code takes 10 seconds to complete, it uses up processes for much longer.
  • Too many PHP scripts are loaded per page view. Most website software requires one PHP script to be executed per page view (the main HTML content), and includes static content like images and styles as static links. Some website software post-processes such static files for things like compression, resizing, combining, etc. If one page embeds 50 images, which are each processed by a PHP script, this launches 50 processes, which can easily cause you to hit a limit.

How can I reduce my process usage?

Here are some recommendations which may help to reduce your process usage.

  • Ensure static files (like HTML or CSS files) don't have the .php file extension. All requests to files with the .php extension generate entry processes, even if there is no actual PHP code in the file.
  • Reduce usage of AJAX and other background requests. If your website has code that constantly refreshes the page in the background (to check for changes or new messages), this can easily cause high entry process usage with few visitors.

If the suggestions above are not an option, please consider to upgrade your account to premium hosting, where you get much higher process limits.

How can I increase my process allocation?

The process allocation on free hosting cannot be increased upon request. We treat all accounts equally, and will not give people unfair benefits just because they ask for it.

If your process usage is still too high after following the recommendations here (or you are having trouble applying the tips to your website), please consider upgrading your account to premium hosting. On premium hosting the entry process allocation is much higher than on free hosting.