Skip to content Skip to sidebar

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 10:00 8:00 – 10:00 8:00 – 13:00 8:00 – 13:00 9:00 – 13:00 -
- 11:00 – 17:00 11:00 – 17:00 14:00 – 17:00 13:00 – 17:00 13:00 – 18:00 -

Supporter timezone: America/New_York (GMT-04:00)

Tagged: 

This topic contains 8 replies, has 0 voices.

Last updated by Lauren 2 weeks, 5 days ago.

Assisted by: Lauren.

Author Posts
September 23, 2025 at 2:50 pm #17426057

azimd

Background of the issue:
I am trying to perform page translations on my WordPress site hosted on Hostinger. The issue can be seen on this page: hidden link

Symptoms:
Whenever I perform page translations, the Hostinger server's CPU and memory usage hit 100%, resulting in a database error establishment error. This causes the site to slow down, experience downtime, or not load at all. If I do not interact with the admin -> page translations, the CPU and memory usage remain normal.

Questions:
Why does the server CPU and memory usage spike to 100% during page translations?
How can I prevent the database error establishment error when performing page translations?

September 24, 2025 at 3:19 pm #17429678

Lauren
WPML Supporter since 10/2015

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

Please see my previous reply and let me know once the migration has completed.

September 26, 2025 at 9:31 am #17435175

azimd

hi.. i didn't want to do this process on our live server, so we did migration to another server and from that server moved to your cloudways server. The process has completed, and let us if you need credentials to login, so please activate the secured message so that i can share the credentials to you.

September 26, 2025 at 3:40 pm #17436727

Lauren
WPML Supporter since 10/2015

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

I have marked the next reply as private so that you can use the private fields to send me credentials. Thanks!

September 29, 2025 at 2:32 pm #17441431

Lauren
WPML Supporter since 10/2015

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

Thanks for sharing the details. I tested translating the homepage as well as another page, but I'm not seeing slow performance. Are you able to reproduce the issue on the staging site? if so please let me know which page to test.

If the issue is not happening on the staging site, and we have not deactivated any plugins or made changes, this indicates the issue is server side, since the only difference between the live site and this copy should be the server environment.

Please let me know if you are seeing the issue on the staging site as well and I can further troubleshoot there.

September 30, 2025 at 10:29 am #17443855

azimd

**“Could you share a reference screenshot showing how you are monitoring CPU and memory consumption while performing page translations? Also, have you tested this under higher visitor loads?

From our side, here’s what we observed:
1. When we perform translations, CPU and memory usage spikes, but it does not immediately throw a database error.
2. However, when translations are done during peak traffic (around 1–1.5 lakh visitors due to campaigns), CPU and memory hit 100%, which then triggers the ‘Error Establishing Database Connection’ issue.
3. Additionally, could you confirm if your team is using any cache plugins on your side? On the Hostinger server side, we are already using LiteSpeed Cache.”**

We had shared screenshots of this behavior in our earlier message.”**

September 30, 2025 at 5:42 pm #17446089

Lauren
WPML Supporter since 10/2015

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

Also, have you tested this under higher visitor loads? Since it is a staging site, there are not high visitor loads. We are unable to test that. To better understand the reported high CPU usage during translations, I ran controlled benchmarks under different configurations. The Cloudways test server is a 1-core virtual machine (so a CPU load of 1.0 = 100% capacity). I have attached the test results in a screenshot.

Key Takeaways

-WPML alone does not max out CPU. In isolation, WPML runs well under capacity.

-The custom/child theme and plugin stack drive the high baseline load, even with WPML disabled.

-Translations cause short spikes (e.g., 2.0 on a 1-core server), which is expected because translations are compute-intensive. On multi-core servers, the same spike would be distributed and appear lower.

-The sustained overload we observed (300–460%) was not caused by WPML, but by the combination of custom/child theme + plugins running on limited resources.

Next Steps

1. Could you please confirm the hosting specifications (CPU cores, RAM) of your live site’s server? This will help us gauge whether it has enough resources to handle translations smoothly.

2. If the live server is also 1-core, upgrading to a 2–4 core plan would provide the headroom needed.

3. We also recommend an audit of the custom theme and plugins to identify additional performance bottlenecks. This means you should set up a copy of your site on your same server and deactivate non WPML plugins and switch to a default theme to see if the translations are spiking the CPU in that environment. if not, activate plugins a few at a time and check to see when the issue returns.

Screenshot 2025-09-30 at 1.37.10 PM.png
October 6, 2025 at 6:13 am #17458168

azimd

CPU cores -10X, 67%
RAM - 15 GB, 25%
I/O- 80 Mb/s, 0%

Earlier we have 6x, and 12gb later boosted to above configurations.

1. how you are testing these? can you suggest any tool to test the theme and plugins related issues.
2. also we are facing some kind of sync related issues with -> wpml, elementor, jetpack.. are these can cause any issues?
3. what about wpml related cron jobs?
4. configuration of wpml related auto loads from DB?

October 6, 2025 at 6:23 pm #17461748

Lauren
WPML Supporter since 10/2015

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

1. I measured server load with a lightweight snippet (sys_getloadavg) and ran A/B tests:
1. default theme + no plugins,
2. default theme + WPML only,
3. custom theme + WPML only,
4. custom theme + all plugins, and

Result: WPML alone didn’t saturate CPU;

Here are some tools that you can use to test theme/plugin issues

1. Query Monitor: find slow DB queries, hooks, AJAX requests while loading key pages and during WPML actions.
2. Health Check & Troubleshooting: per-session safe mode to toggle plugins/themes without affecting visitors.
3. WP Crontrol (and Action Scheduler screen if WooCommerce/others are installed): inspect/kill noisy cron queues.
4. Object cache + inspector: enable Redis/Memcached; use your host’s object-cache dashboard or Query Monitor’s “Object Cache” panel to confirm hits/misses.

2. I'm not sure what you mean by sync - can you tell me in more detail what issues you are having with these particular plugins?

3. Use WP Crontrol → “Cron Events” and look for common WPML events, e.g.:
wpml-tm-ate-jobs-sync, wpml-tm-ate-pull, wpml-tm-ate-push (sync with Advanced Translation Editor)
wpml-tm-cleanup-* (translation tables cleanup)
wpml-st-* (String Translation maintenance)
wpml-translation-feedback-*, wpml-update-translation-status
If you see very frequent runs or big backlogs, that’s a flag.

Clear orphaned/failed jobs in WPML → Support → Troubleshooting (run the maintenance actions one by one).

4. Autoload bloat can slow every request. Check the size of autoloaded options and large entries:

Query Monitor shows total autoload size on the Environment panel.

WP-CLI quick check:

wp option list --autoload=on --fields=option_name,size_bytes --format=table | sort -nr -k2 | head -20

WPML’s core settings (e.g., _icl_sitepress_settings) are usually modest; huge rows typically come from caches, transients, or plugins storing large blobs in autoload.

The topic ‘[Closed] When ever we doing page transaltions hostinger server cpu and memory hitting 100% usage throwing db …’ is closed to new replies.