1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Resolve an error related to resource limitations
This guide details resource exhaustion errors that can occur when managing and visiting a website.
Preamble
- Resource limits are in place to maintain the integrity, stability, and performance of the shared server, while ensuring a fair experience for all users.
- If a website or application requires significantly higher resources, it may be necessary to switch to a Serveur Cloud or another type of virtual hosting where resources are allocated more flexibly.
Error origins
Fatal error: Maximum execution time of 30 seconds exceeded
This error occurs when the server sets a time limit for script execution, usually to avoid tasks that take too long. For example, if a script attempts to resize many large images in a single operation, it may exceed the allowed execution time limit. The server imposes this limit to ensure a quick response to user requests. The path often mentioned in the error can indicate a more precise origin (for example Fatal error: Maximum execution time of 30 seconds exceeded in /home/www/1234567abc/web/wp-includes/media.php on line 123
)
memory limit exceeded
This error occurs when the script or application uses more memory than allocated. This can happen when a script processes a large volume of data or when there is a memory leak. For example, an image management script may consume more memory than allowed, resulting in this error.
Resolution paths
Some ways to resolve these errors:
- Check the scripts that make multiple connections to the server to display data.
- Optimize the script(s) in question so that they require fewer resources.
- Increase the limits of the concerned site to allow the script to complete its tasks and/or limit the number of simultaneous connections (especially on a Serveur Cloud where the limits (RAM, execution time, simultaneous connections) can be significantly increased).
- Migrate your hosting to Serveur Cloud.
Also, refer to this other guide.