Plugin causing increased load on server
-
Hi there
We received a message from our hosting providered that we experinced and increase load on our server due to this plugin. Are you able to take a look at their message to help us resolve the issue?
The increased load is caused by a single query which is being generated by the molongui-authorship plugin:
SELECT wpJSrc_users.ID
FROM wpJSrc_users INNER JOIN wpJSrc_usermeta ON ( wpJSrc_users.ID = wpJSrc_usermeta.user_id )
WHERE 1=1 AND (
(
( wpJSrc_usermeta.meta_key = ‘wpJSrc_capabilities’ AND wpJSrc_usermeta.meta_value LIKE ‘%\”administrator\”%’ )
OR
( wpJSrc_usermeta.meta_key = ‘wpJSrc_capabilities’ AND wpJSrc_usermeta.meta_value LIKE ‘%\”editor\”%’ )
OR
( wpJSrc_usermeta.meta_key = ‘wpJSrc_capabilities’ AND wpJSrc_usermeta.meta_value LIKE ‘%\”author\”%’ )
OR
( wpJSrc_usermeta.meta_key = ‘wpJSrc_capabilities’ AND wpJSrc_usermeta.meta_value LIKE ‘%\”contributor\”%’ )
)
)
ORDER BY display_name ASCWe started seeing a large number of 503 errors being returned by the gateway between 13:09 and 13:34 UTC. This typically means that the app’s FPM workers aren’t able to process requests quickly enough so they get dropped instead. Response times were very high during this time and the DB load started affecting other apps on the server so we’ve gone ahead and disabled the molongui-authorship plugin for now. The site still appears to be loading normally but please let us know if the plugin is necessary for the site to function normally and we’ll re-enable it – it can also be re-enabled via the WP admin dashboard if needed. Note that re-enabling it will likely immediately cause performance issues for the site again.
We recommend reaching out to its developers to see if they can optimise the query above in any way – possibly by removing the wildcard matching on the meta_value column which may allow the query to utilise indexes on the usermeta table. Reducing the number of queries that it generates or storing the results of the query in the object cache may also work since a single request seemed to spawn several queries.
Please let me know if there’s any other information I can provide.
The page I need help with: [log in to see the link]
- The topic ‘Plugin causing increased load on server’ is closed to new replies.