Hi there,
We’ve recently launched a site for a client using modx 1.0.4 and it’s been running fine under test conditions but under load it starts eating up all the server resources and eventually hanging.
It is a pretty complicated site - it has multiple domains which are all controlled by .htaccess and it also pulls in resources from various APIs. However, from our testing we think the problem lies within connecting to the DB.
Here’s an error message we got when one of the pages crashed...
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« Execution of a query to the database failed - MySQL server has gone away »
SQL: SELECT id FROM br_brands WHERE modxID = 99
[Copy SQL to ClipBoard]
Parser timing
MySQL: 0.0038 s (26 Requests)
PHP: 208.0937 s
Total: 208.0975 s
Wondering if this is something to do with modX persistent connections failing but not closing and eventually leaving the DB uncontactable but PHP still vainly trying to connect and chewing up all the server memory.
I would give you full server details but we’re currently locked out
Assume a typical linux apache/mysql/php setup running under cPanel with all necessary modules installed.
Any thoughts appreciated!