Wordfence database issue crashes server
-
Hi,
Today my complete server went down due to a Wordfence database issue. I noticed similar posts about this today. Is this a known issue?
It seems slow queries can pull down the complete server.
This is what my hosting provider found out and which lead to a complete crash:
=== TOP 10 of 90 (total) Slow Queries for the past 4 hours ======================================================= 1. Executed 24m 5s ago for 427.521232 sec on Database --> xx Date: 2022-02-13 11:27:04 Query_time: 427.521232 Rows_examined: 0: Rows_sent 0 Lock_time: 5.101989 Query_chars: 672 SELECT *, CASE WHEN <code>type</code> = 3 THEN 0 WHEN <code>type</code> = 4 THEN 1 WHEN <code>type</code> = 7 THEN 2 WHEN <code>type</code> = 6 THEN 3 WHEN <code>type</code> = 5 THEN 4 WHEN <code>type</code> = 9 THEN 5 WHEN <code>type</code> = 8 THEN 6 WHEN <code>type</code> = 2 THEN 7 WHEN <code>type</code> = 1 THEN 8 ELSE 9999 END AS <code>typeSort</code>, ...... <code>IP</code> WHEN <code>type</code> = 7 THEN <code>IP</code> WHEN <code>type</code> = 2 THEN <code>IP</code> WHEN <code>type</code> = 8 THEN <code>IP</code> ELSE 9999 END AS <code>detailSort</code> FROM <code>hggy_wfBlocks7</code> WHERE <code>type</code> IN (3) AND (<code>expiration</code> = 0 OR <code>expiration</code> > UNIX_TIMESTAMP()) ORDER BY <code>typeSort</code> ASC, <code>id</code> DESC; ------------------------------------------------------------------------------------------------------------------- 2. Executed 24m 5s ago for 427.520877 sec on Database --> xx Date: 2022-02-13 11:27:04 Query_time: 427.520877 Rows_examined: 0: Rows_sent 0 Lock_time: 5.105281 Query_chars: 672 SELECT *, CASE WHEN <code>type</code> = 3 THEN 0 WHEN <code>type</code> = 4 THEN 1 WHEN <code>type</code> = 7 THEN 2 WHEN <code>type</code> = 6 THEN 3 WHEN <code>type</code> = 5 THEN 4 WHEN <code>type</code> = 9 THEN 5 WHEN <code>type</code> = 8 THEN 6 WHEN <code>type</code> = 2 THEN 7 WHEN <code>type</code> = 1 THEN 8 ELSE 9999 END AS <code>typeSort</code>, ...... <code>IP</code> WHEN <code>type</code> = 7 THEN <code>IP</code> WHEN <code>type</code> = 2 THEN <code>IP</code> WHEN <code>type</code> = 8 THEN <code>IP</code> ELSE 9999 END AS <code>detailSort</code> FROM <code>hggy_wfBlocks7</code> WHERE <code>type</code> IN (3) AND (<code>expiration</code> = 0 OR <code>expiration</code> > UNIX_TIMESTAMP()) ORDER BY <code>typeSort</code> ASC, <code>id</code> DESC; ------------------------------------------------------------------------------------------------------------------- 3. Executed 24m 5s ago for 427.520773 sec on Database --> xx Date: 2022-02-13 11:27:04 Query_time: 427.520773 Rows_examined: 0: Rows_sent 0 Lock_time: 5.101828 Query_chars: 672 SELECT *, CASE WHEN <code>type</code> = 3 THEN 0 WHEN <code>type</code> = 4 THEN 1 WHEN <code>type</code> = 7 THEN 2 WHEN <code>type</code> = 6 THEN 3 WHEN <code>type</code> = 5 THEN 4 WHEN <code>type</code> = 9 THEN 5 WHEN <code>type</code> = 8 THEN 6 WHEN <code>type</code> = 2 THEN 7 WHEN <code>type</code> = 1 THEN 8 ELSE 9999 END AS <code>typeSort</code>, ...... <code>IP</code> WHEN <code>type</code> = 7 THEN <code>IP</code> WHEN <code>type</code> = 2 THEN <code>IP</code> WHEN <code>type</code> = 8 THEN <code>IP</code> ELSE 9999 END AS <code>detailSort</code> FROM <code>hggy_wfBlocks7</code> WHERE <code>type</code> IN (3) AND (<code>expiration</code> = 0 OR <code>expiration</code> > UNIX_TIMESTAMP()) ORDER BY <code>typeSort</code> ASC, <code>id</code> DESC; ------------------------------------------------------------------------------------------------------------------- 4. Executed 24m 5s ago for 427.520753 sec on Database --> xx Date: 2022-02-13 11:27:04 Query_time: 427.520753 Rows_examined: 0: Rows_sent 0 Lock_time: 5.101839 Query_chars: 672 SELECT *, CASE WHEN <code>type</code> = 3 THEN 0 WHEN <code>type</code> = 4 THEN 1 WHEN <code>type</code> = 7 THEN 2 WHEN <code>type</code> = 6 THEN 3 WHEN <code>type</code> = 5 THEN 4 WHEN <code>type</code> = 9 THEN 5 WHEN <code>type</code> = 8 THEN 6 WHEN <code>type</code> = 2 THEN 7 WHEN <code>type</code> = 1 THEN 8 ELSE 9999 END AS <code>typeSort</code>, ...... <code>IP</code> WHEN <code>type</code> = 7 THEN <code>IP</code> WHEN <code>type</code> = 2 THEN <code>IP</code> WHEN <code>type</code> = 8 THEN <code>IP</code> ELSE 9999 END AS <code>detailSort</code> FROM <code>hggy_wfBlocks7</code> WHERE <code>type</code> IN (3) AND (<code>expiration</code> = 0 OR <code>expiration</code> > UNIX_TIMESTAMP()) ORDER BY <code>typeSort</code> ASC, <code>id</code> DESC; ------------------------------------------------------------------------------------------------------------------- 5. Executed 24m 5s ago for 427.520729 sec on Database --> xx Date: 2022-02-13 11:27:04 Query_time: 427.520729 Rows_examined: 0: Rows_sent 0 Lock_time: 5.101896 Query_chars: 672 SELECT *, CASE WHEN <code>type</code> = 3 THEN 0 WHEN <code>type</code> = 4 THEN 1 WHEN <code>type</code> = 7 THEN 2 WHEN <code>type</code> = 6 THEN 3 WHEN <code>type</code> = 5 THEN 4 WHEN <code>type</code> = 9 THEN 5 WHEN <code>type</code> = 8 THEN 6 WHEN <code>type</code> = 2 THEN 7 WHEN <code>type</code> = 1 THEN 8 ELSE 9999 END AS <code>typeSort</code>, ...... <code>IP</code> WHEN <code>type</code> = 7 THEN <code>IP</code> WHEN <code>type</code> = 2 THEN <code>IP</code> WHEN <code>type</code> = 8 THEN <code>IP</code> ELSE 9999 END AS <code>detailSort</code> FROM <code>hggy_wfBlocks7</code> WHERE <code>type</code> IN (3) AND (<code>expiration</code> = 0 OR <code>expiration</code> > UNIX_TIMESTAMP()) ORDER BY <code>typeSort</code> ASC, <code>id</code> DESC; ------------------------------------------------------------------------------------------------------------------- 6. Executed 24m 5s ago for 427.520719 sec on Database --> xx Date: 2022-02-13 11:27:04 Query_time: 427.520719 Rows_examined: 0: Rows_sent 0 Lock_time: 5.101793 Query_chars: 672 SELECT *, CASE WHEN <code>type</code> = 3 THEN 0 WHEN <code>type</code> = 4 THEN 1 WHEN <code>type</code> = 7 THEN 2 WHEN <code>type</code> = 6 THEN 3 WHEN <code>type</code> = 5 THEN 4 WHEN <code>type</code> = 9 THEN 5 WHEN <code>type</code> = 8 THEN 6 WHEN <code>type</code> = 2 THEN 7 WHEN <code>type</code> = 1 THEN 8 ELSE 9999 END AS <code>typeSort</code>, ...... <code>IP</code> WHEN <code>type</code> = 7 THEN <code>IP</code> WHEN <code>type</code> = 2 THEN <code>IP</code> WHEN <code>type</code> = 8 THEN <code>IP</code> ELSE 9999 END AS <code>detailSort</code> FROM <code>hggy_wfBlocks7</code> WHERE <code>type</code> IN (3) AND (<code>expiration</code> = 0 OR <code>expiration</code> > UNIX_TIMESTAMP()) ORDER BY <code>typeSort</code> ASC, <code>id</code> DESC; ------------------------------------------------------------------------------------------------------------------- 7. Executed 24m 5s ago for 427.520707 sec on Database --> xx Date: 2022-02-13 11:27:04 Query_time: 427.520707 Rows_examined: 1: Rows_sent 1 Lock_time: 3.900691 Query_chars: 85 SELECT option_value FROM hggy_options WHERE option_name = 'disallowed_keys' LIMIT 1; ------------------------------------------------------------------------------------------------------------------- 8. Executed 24m 5s ago for 427.520699 sec on Database --> xx Date: 2022-02-13 11:27:04 Query_time: 427.520699 Rows_examined: 0: Rows_sent 0 Lock_time: 5.101878 Query_chars: 672 SELECT *, CASE WHEN <code>type</code> = 3 THEN 0 WHEN <code>type</code> = 4 THEN 1 WHEN <code>type</code> = 7 THEN 2 WHEN <code>type</code> = 6 THEN 3 WHEN <code>type</code> = 5 THEN 4 WHEN <code>type</code> = 9 THEN 5 WHEN <code>type</code> = 8 THEN 6 WHEN <code>type</code> = 2 THEN 7 WHEN <code>type</code> = 1 THEN 8 ELSE 9999 END AS <code>typeSort</code>, ...... <code>IP</code> WHEN <code>type</code> = 7 THEN <code>IP</code> WHEN <code>type</code> = 2 THEN <code>IP</code> WHEN <code>type</code> = 8 THEN <code>IP</code> ELSE 9999 END AS <code>detailSort</code> FROM <code>hggy_wfBlocks7</code> WHERE <code>type</code> IN (3) AND (<code>expiration</code> = 0 OR <code>expiration</code> > UNIX_TIMESTAMP()) ORDER BY <code>typeSort</code> ASC, <code>id</code> DESC; ------------------------------------------------------------------------------------------------------------------- 9. Executed 24m 5s ago for 427.520695 sec on Database --> xx Date: 2022-02-13 11:27:04 Query_time: 427.520695 Rows_examined: 0: Rows_sent 0 Lock_time: 5.101813 Query_chars: 672 SELECT *, CASE WHEN <code>type</code> = 3 THEN 0 WHEN <code>type</code> = 4 THEN 1 WHEN <code>type</code> = 7 THEN 2 WHEN <code>type</code> = 6 THEN 3 WHEN <code>type</code> = 5 THEN 4 WHEN <code>type</code> = 9 THEN 5 WHEN <code>type</code> = 8 THEN 6 WHEN <code>type</code> = 2 THEN 7 WHEN <code>type</code> = 1 THEN 8 ELSE 9999 END AS <code>typeSort</code>, ...... <code>IP</code> WHEN <code>type</code> = 7 THEN <code>IP</code> WHEN <code>type</code> = 2 THEN <code>IP</code> WHEN <code>type</code> = 8 THEN <code>IP</code> ELSE 9999 END AS <code>detailSort</code> FROM <code>hggy_wfBlocks7</code> WHERE <code>type</code> IN (3) AND (<code>expiration</code> = 0 OR <code>expiration</code> > UNIX_TIMESTAMP()) ORDER BY <code>typeSort</code> ASC, <code>id</code> DESC; ------------------------------------------------------------------------------------------------------------------- 10. Executed 24m 5s ago for 427.520686 sec on Database --> xx Date: 2022-02-13 11:27:04 Query_time: 427.520686 Rows_examined: 0: Rows_sent 0 Lock_time: 5.101959 Query_chars: 672 SELECT *, CASE WHEN <code>type</code> = 3 THEN 0 WHEN <code>type</code> = 4 THEN 1 WHEN <code>type</code> = 7 THEN 2 WHEN <code>type</code> = 6 THEN 3 WHEN <code>type</code> = 5 THEN 4 WHEN <code>type</code> = 9 THEN 5 WHEN <code>type</code> = 8 THEN 6 WHEN <code>type</code> = 2 THEN 7 WHEN <code>type</code> = 1 THEN 8 ELSE 9999 END AS <code>typeSort</code>, ...... <code>IP</code> WHEN <code>type</code> = 7 THEN <code>IP</code> WHEN <code>type</code> = 2 THEN <code>IP</code> WHEN <code>type</code> = 8 THEN <code>IP</code> ELSE 9999 END AS <code>detailSort</code> FROM <code>hggy_wfBlocks7</code> WHERE <code>type</code> IN (3) AND (<code>expiration</code> = 0 OR <code>expiration</code> > UNIX_TIMESTAMP()) ORDER BY <code>typeSort</code> ASC, <code>id</code> DESC; -------------------------------------------------------------------------------------------------------------------
Can you advise how to prevent this?
Thanks!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Wordfence database issue crashes server’ is closed to new replies.