1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Resolve an error related to resource limits
This guide details the resource limit errors that can be encountered when managing and visiting a website.
Preamble
- Resource limits are set 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 Cloud Server 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 has set an execution time limit for scripts, usually to avoid tasks that take too long. For example, if a script attempts to resize many large images in a single operation, this can 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 can consume more memory than allowed, resulting in this error.
Resolution tips
A few tips to resolve these errors:
- Check the scripts that make multiple connections to the server to display data.
- Optimize the affected script(s) so that they require fewer resources.
- Increase the limits of the affected site to allow the script to do everything it needs to and/or limit the number of simultaneous connections (especially on a Cloud Server where limits (RAM, execution time, simultaneous connections) can be significantly increased).
- Migrate your hosting to a Cloud Server.
Also refer to this other guide.