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.
This topic contains 25 replies, has 3 voices.
Last updated by T4ng 2 years, 10 months ago.
Assisted by: Sumit.
Author | Posts |
---|---|
December 23, 2021 at 1:26 pm #10239105 | |
T4ng |
Last month, we updated our website with you last plugins and addons. We ever since noticed huge php-fpm cpu consumption raise (twice what it used to be). |
December 23, 2021 at 2:29 pm #10239655 | |
T4ng |
I needed to build only the system files through duplicator (too big db). |
December 27, 2021 at 10:38 am #10249749 | |
Yvette Supporter
Languages: English (English ) Spanish (Español ) Timezone: Europe/Paris (GMT+01:00) |
Hello I will be helping you now. If you need to send us a Duplicator package or archive of your site, please use a file sharing servicer like WeTransfer and use the private area I am opening to send us a downloadable link for this. Thanks |
December 29, 2021 at 11:53 am #10260357 | |
Yvette Supporter
Languages: English (English ) Spanish (Español ) Timezone: Europe/Paris (GMT+01:00) |
Hello I have consulted with our 2nd tier support. For performance issues, please follow these suggestions: TIPS 1. Lower the weight of the page size in MB. Compress images (EWWW plugin), minimize their quantity. 2. Try to check your site with faster internet connection. 3. Deactivate all unneeded plugins. Do not use monitoring plugins like a Query Monitor on production site. 4. Try to implement object caching with Redis. This significantly improves performance on backend. It requires support on hosting or VPS and a plugin. Better use this one: https://wordpress.org/plugins/redis-cache/ Some page caching plugins like a W3 Total Cache can provide object caching too. In this case, Redis Cache plugin is not needed. 5. Try to use faster hosting or VPS server. Heavy sites require more resources. 6. Try to use page caching plugin like Super Cache, W3 Total Cache, or WP-Rocket. 7. Do not use any kind of SSL-helping plugins. They produce significant overhead redirecting every request. To use https properly, just convert all links in the database by Duplicator plugin or WP-CLI. After doing this, then test performance as follows : HOW TO TEST PROPERLY 1. Try to turn off plugins one by one and make sure that issue is related to WPML plugins. 2. Try to switch theme to standard to make sure that problem is not related to the theme (as it was with Jupiter) 3. Make sure that impact of WPML is more than +30% to the page loading time. WPML provides a lot of services, and they cannot go without a cost – some resources are needed: (processor, memory, db requests) 4. Please use the simple Chrome extension Page Load Time (hidden link) to measure loading time. It weights nothing in contrast to Query Monitor. 5. Cache plugins should be turned off to understand the impact of WPML or other plugin/themes Note : HOW TO *NOT* TEST 1. Do not use Query Monitor on production site. With WPML, it slows down a site significantly. QM should be used to see what is going on, then switched off. 2. Do not rely fully on QM results. It is very powerful tool, but problem is quite often not in database requests, which take a small amount of overall time. It is better to use xhprof (some hosting providers give the opportunity to use it), or Blackfire (on VPS) 3. Do not use P3 (Plugin Performance Profiler) (https://wordpress.org/plugins/p3-profiler/) plugin. It is not supported for 4 years. I wait for your feedback. |
December 29, 2021 at 10:01 pm #10262297 | |
T4ng |
Hi Yvette, Thanks for your answer. I believe these suggestions from your second tier support team, are generic. May I ask if you took time to deploy the Duplicator archive I provided? With regards to the test process, I already went through it when I reached the support chat in the first place. The support mate asked me to provide you with a duplication of our website, because he found the amount of requests initiated by WPML, and especially the string translation module, as shown by QM, was surprizingly high (I provided some screenshot of QM results). Nonetheless, I'll answer each of the points you enumerated here. So that we're on the same page from now on. 1. Lower the weight of the page size in MB. Compress images (EWWW plugin), minimize their quantity. 2. Try to check your site with faster internet connection. 3. Deactivate all unneeded plugins. Do not use monitoring plugins like a Query Monitor on production site. 4. Try to implement object caching with Redis. This significantly improves performance on backend. It requires support on hosting or VPS and a plugin. Better use this one: https://wordpress.org/plugins/redis-cache/ Some page caching plugins like a W3 Total Cache can provide object caching too. In this case, Redis Cache plugin is not needed. 5. Try to use faster hosting or VPS server. Heavy sites require more resources. Please take a look to the resources screenshot enclosed. The step you'll notice corresponds to the plugins update deployment and the peaks appearing after that step, way above 20%, to admin page usage. 6. Try to use page caching plugin like Super Cache, W3 Total Cache, or WP-Rocket. 7. Do not use any kind of SSL-helping plugins. They produce significant overhead redirecting every request. To use https properly, just convert all links in the database by Duplicator plugin or WP-CLI. Since we follow all these precautions and took time to test our website, didn'tanalysis may I ask yuo to take a closer look at the Duplicator archive I provided you with? Thanks for your help |
December 30, 2021 at 1:52 pm #10265209 | |
Yvette Supporter
Languages: English (English ) Spanish (Español ) Timezone: Europe/Paris (GMT+01:00) |
Thanks for that info. I am just following protocol so I can escalate this to our performance team. I still need login credentials for wp-admin for your site so our 2nd tier can verify any doubts on your server directly. Is this possible? I am opening the private area for this. |
December 31, 2021 at 9:55 am #10268377 | |
Yvette Supporter
Languages: English (English ) Spanish (Español ) Timezone: Europe/Paris (GMT+01:00) |
Thank you for that - I will make a note that these are NOT for the production site. This is now escalated. |
December 31, 2021 at 4:19 pm #10269321 | |
T4ng |
Thank you |
January 3, 2022 at 10:03 am #10275915 | |
T4ng |
Hi Yvette, Thanks |
January 5, 2022 at 8:18 am #10289559 | |
Sumit Supporter
Languages: English (English ) Timezone: Asia/Kolkata (GMT+05:30) |
Hi, I am Sumit from 2nd tier support. Yvette for a few days so I will handle this ticket. I hope it is fine. I checked the login details but the site seems to be hosted on the local server or the domain name is not valid. Please see [linked removed] If we need to set up the domain name in the hosts file then please let us know the IP address of the site or please provide the site details which we can access. I am enabling the private reply again. Also, please let me know a page link or action you perform and find slowness. Thank you! |
January 5, 2022 at 10:53 am #10290603 | |
T4ng |
Hi Sumit, thanks for getting back to me. Can you please hide the previous message, since our company name appears? |
January 5, 2022 at 1:36 pm #10292201 | |
Sumit Supporter
Languages: English (English ) Timezone: Asia/Kolkata (GMT+05:30) |
Hi, Thanks for the feedback! I have removed the link from the previous message. I can deploy the package but our server may be slow or fast as compared to your server so it will be difficult to find out whether the site is slow or fast. That's why I asked for the staging site on the same server so we can check the website on the same server where the production site is running. Anyway, if this is not possible I will try to test this on our server or local server. But what should I test? please elaborate a bit more on where do you see the slowness? A page link or action you are performing. Thanks |
January 5, 2022 at 6:57 pm #10294685 | |
T4ng |
Thanks The problem occurs on our server when the CPU load has too high over a specific (short) period of time. It's kind of burst: if we exceeded a volume of CPU consumption over a period of time, won't be allowed to use more than 20% of CPU, and some request take ages, or basically generate 504 errors. Thats what occurs on our AWS Lighsail instances, only since november's plugins update. By the way, I'm currently doing some testings on a test env., disabling slightly all plugins, watch resources consumption... When most of our significant plugins are inactive, W3TC and Autoptimize disabled, and without front trafic (this instance is not public), the CPU consomption is almost null. On the other hand, I figured that multiplying the amount of open admin pages ask for more resources, even if no actions occur on these pages. Now , if I watch the network, from my browser, I figure there are 2 kinds of requests : Script: apps.js / hidden link Last but not least: this occurs: As soon as I disable WPML plugins, the resources consumption drops significantly, even with many admin page relaoded (but where these WPML request don't appear anymore from the network view). I activated only WPML + Translation strings, and reloaded 8 admin pages (it takes ages): Then, I deactivated WPML + Translation strings, reactivated 40-ish plugins, everything besides Image processors, CDN stuff and W3TC, reloaded every admin page in a couple of seconds. Finally, I activated W3TC, and reloaded admin pages again Which really narrows it down to a WPML version issue. You should be able to see this also with the package I provided you with. What is this script, and how can I get rid of these calls? Thanks for your help. |
January 6, 2022 at 3:27 pm #10300203 | |
Sumit Supporter
Languages: English (English ) Timezone: Asia/Kolkata (GMT+05:30) |
Hi, Thanks for the info. I deployed the package and I can see the WPML trying to make this request consuming CPU. I found this because the site is running on local and the SSL certificate is invalid due to this it says REST is disabled in WPML > Support: under title "WordPress". Once I change the URL from HTTPS to HTTP the issue is fixed, WPML makes only one request and then no more requests. Since I can not see your local site but I am guessing that you have the same issue, the SSL certificate is invalid or valid only locally. If this is the problem then I would suggest testing on a live staging server with a valid SSL certificate. Hope it helps. Thanks |
January 6, 2022 at 3:44 pm #10300267 | |
T4ng |
Hi Sumit, The SSL certificate is wrong locally, but it's absolutely fine in bot production and preproduction envs, where the requests also occur. Screenshot is our production env. As you can see, REST is fine, but requests still occur. |