Problem:
The client is experiencing intermittent high CPU usage spikes on their VPS hosting a multilingual website using WPML. Despite optimizing the site and deactivating most plugins, the issue persists. The client suspects WPML might be causing these CPU consumption problems.
Solution:
We recommended the following steps to address the high CPU usage potentially caused by WPML:
1. **Increase the WordPress Memory Limit:**
- Access your site files via FTP or your hosting file manager.
- Locate the
file at the root of your WordPress installation.
- Edit the file and add the following line of code just before the line that says
/* That's all, stop editing! Happy blogging. */
:
define('WP_MEMORY_LIMIT', '256M');
- Save the changes.
2. **Run WPML's troubleshooting tools:**
- Go to **WPML → Support** in your WordPress dashboard.
- Scroll down to the **Troubleshooting** section.
- Perform the following actions one by one, waiting for each to complete before starting the next:
1. **Clear cache**
2. **Sync post taxonomies**
3. **Remove ghost entries**
4. **Fix element collation**
5. **Fix WPML tables collation**
6. **Set language information**
7. **Fix terms count**
8. **Cleanup and optimize string tables**
After completing these steps, monitor your VPS's CPU usage to see if the spikes persist. If the problem continues, we recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the solution provided here becomes irrelevant or if the issue persists, please open a new support ticket at WPML support forum.