At the moment we have a problem where sometimes, for no apparent reason, the CPU use of MySQL process skyrockets to 1000% usage and stays there until we manually restart the mysql service. During that time the webpage performs awfully slow.
There must be something in our shop (built in PrestaShop 1.6) that makes it skyrocket, but when don't know exactly what is it. Is there any way I can keep track of what it might be? That way we might be able to know if there's a malfunctioning module.
Maybe some way to keep a log for every SQL sentence sent and the time it was sent so I can compare it with the server load logs?