Skip Navigation

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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: Asia/Singapore (GMT+08:00)

Tagged: 

This topic contains 71 replies, has 2 voices.

Last updated by Kor 1 year, 7 months ago.

Assisted by: Kor.

Author Posts
October 24, 2023 at 3:05 pm #14649209

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thank you for your understanding.

I'd like to share some feedback based on information provided by our 2nd Tier Support.

The log information has proven to be quite valuable, and upon analysis, it has become apparent that the problematic query is associated with the "autoptimize_ccss_queue" option within the database. To potentially resolve this issue, I recommend taking the following steps:

1. Remove the "autoptimize_ccss_queue" option from the database.
2. Consider disabling the Autoptimize plugin entirely.
3. Alternatively, you can try disabling the specific option related to CriticalCSS Queue within the Autoptimize plugin.

Could you please give these suggestions a try and let us know if they help resolve the issue? Please backup before you proceed.

October 24, 2023 at 6:47 pm #14650439

louisN-4

i sent you 3 queries, which of the 3 is related to auto-optimize?

and how is it related?

October 24, 2023 at 6:49 pm #14650443

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

Our 2nd Tier Support is referring to this debug log hidden link .

Let me know how it goes.

October 24, 2023 at 8:23 pm #14650809

louisN-4

this is what causing our server to fail + the large db queries

https://wordpress.org/support/topic/as_async_request_queue_runner-maxing-out-cpu/

and its not related to autoptimize, to action scheduler, and again lead to wpml running many queries - as i showed you

YOU AGAIN DID NOT ANSWER ME on - https://wpml.org/forums/topic/urgent-wpml-db-looping/page/4/#post-14644111

you never told me and i never asked, in query monitor, am i suppose to have these 3 queries, non stop working?

A. THIS ESPECIALLY RUNS EVERY 1 SECOND

SELECT wpml_translations.element_id, tax.term_id, tax.taxonomy
FROM lsk_icl_translations wpml_translations JOIN lsk_term_taxonomy tax
ON wpml_translations.element_id = tax.term_taxonomy_id
AND wpml_translations.element_type = CONCAT('tax_', tax.taxonomy) JOIN lsk_terms terms
ON terms.term_id = tax.term_id
WHERE tax.term_id != tax.term_taxonomy_id

B. SELECT jobs.rid, jobs.job_id as jobId, jobs.editor_job_id as ateJobId, jobs.automatic , translation_status.status, translation_status.review_status, jobs.ate_sync_count > 100 as isLongstanding
FROM lsk_icl_translate_job as jobs
INNER JOIN lsk_icl_translation_status translation_status
ON translation_status.rid = jobs.rid
INNER JOIN lsk_icl_translations translations
ON translation_status.translation_id = translations.translation_id
INNER JOIN lsk_icl_translations parent_translations
ON translations.trid = parent_translations.trid
AND parent_translations.source_language_code IS NULL
LEFT JOIN lsk_posts posts
ON parent_translations.element_id = posts.ID
WHERE jobs.job_id IN (
SELECT MAX(job_id)
FROM lsk_icl_translate_job
GROUP BY rid )
AND jobs.editor = 'ate'
AND ( translation_status.status IN (1,2,40)
OR 1=0 )
AND translations.language_code IN ('nl','en','de','he','ru')
AND ( posts.post_status IS NULL
OR posts.post_status <> 'trash' )

C. SELECT COUNT(jobs.job_id)
FROM lsk_icl_translate_job as jobs
WHERE jobs.editor = 'ate'

October 24, 2023 at 10:20 pm #14651251

louisN-4

we disabled autoptimize although autoptimize guys don't believe its there fault

in addition, we have reduced from 9000 to the memory limit, is that ok?
define('WP_MEMORY_LIMIT', '1200M');
define('WP_MAX_MEMORY_LIMIT', '1200M' );

and i am still waiting for an answer on why these queries showing in my query monitor constantly

October 25, 2023 at 7:54 am #14657693

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thank you for your response.

In the discussions found at https://wpml.org/forums/topic/urgent-wpml-db-looping/page/4/#post-14644111, the topic of concern is the "Advanced Translation Editor." However, the logs for the "Advanced Translation Editor" do not indicate any problems.

I will now request our second-tier support to reexamine the query monitor logs.

October 25, 2023 at 3:03 pm #14662593

louisN-4

1. i asked if those 3 queries should show non stop on query monitor or not?
2. did you get any update from your 2nd tier support?

October 25, 2023 at 3:19 pm #14662821

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Your patience is greatly appreciated.

I have some feedback regarding the query you mentioned in this thread: https://wpml.org/forums/topic/urgent-wpml-db-looping/page/4/#post-14644111 . It appears that you've already reported the same issue in this discussion: https://wpml.org/forums/topic/options-autoload-slow-ttfb/page/3/ , and our 2nd Tier Support has already provided a response and you can read more about it over there.

In addition to the reported problem, the three queries run on the init hook and are not triggered every second. They might be logged due to a request to the site occurring every second. Our 2nd Tier Support has recommended updating the WPML plugin to the latest version, as there have been numerous performance fixes since version 4.6.3.

If you still have questions or concerns regarding these three queries, please feel free to follow up on this ticket: https://wpml.org/forums/topic/options-autoload-slow-ttfb/page/3/

October 25, 2023 at 3:33 pm #14662867

louisN-4

its similar but not the same subject and i will explain,

this query that was reported in:
https://wpml.org/forums/topic/options-autoload-slow-ttfb/page/3/
FROM lsk_icl_translati |
| 47726 | kidenoad_db | 172.16.39.34:58938 | kidenoad_db | Query | 0 | executing | SELECT wpml_translations.element_id, tax.term_id, tax.taxonomy
FROM lsk_icl_translati |
| 47727 | kidenoad_db | 172.16.39.34:58942 | kidenoad_db | Query | 1 | executing | SELECT wpml_translations.element_id, tax.term_id, tax.taxonomy
FROM lsk_icl_translati |
| 47728 | kidenoad_db | 172.16.39.34:58952 | kidenoad_db | Query | 0 | executing | SELECT wpml_translations.element_id, tax.term_id, tax.taxonomy
FROM lsk_icl_translati |
| 47729 | kidenoad_db | 172.16.39.34:58956 | kidenoad_db | Query | 0 | executing | SELECT wpml_translations.element_id, tax.term_id, tax.taxonomy
FROM lsk_icl_translati |
| 47730 | kidenoad_db | 172.16.39.34:58972 | kidenoad_db | Query | 0 | executing | SELECT wpml_translations.element_id, tax.term_id, tax.taxonomy
FROM lsk_icl_translati |

the subject there, that it was slow query

and this time the query works in a loop non stop, as you can see in this paste:
hidden link

do you still think its the same?

October 25, 2023 at 3:41 pm #14662937

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

Our 2nd Tier Support mentioned that you're referring to the same issue. Please follow up on this ticket https://wpml.org/forums/topic/options-autoload-slow-ttfb/page/4/ for further updates.

October 25, 2023 at 3:46 pm #14663029

louisN-4

ok if they say whom am I to say otherwise
- can you ask them to reply to my last message, once that version is released, we will know if they are related

In addition, the other advanced translation queries, did they solve the other 2 queries?

October 25, 2023 at 3:50 pm #14663053

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

I can see your reply on that ticket and you will get a response soon from my colleague.

As for your other queries, you may follow up on that ticket too. It seems to me the fix is in WPML 4.7 which will arrive soon.

The topic ‘[Closed] URGENT – WPML DB LOOPING’ is closed to new replies.