Hello everyone.
I have a dedicated server with 64G of RAM, XEON 5640 x2 16 core 24 thread, 24M cache running Centos 7 php 7.2, MariaDb 10.2 with DirectAdmin and Litespeed. I've installed Moodle 3.9. We have 270 users which login to website at 8 AM. in the 9 courses we have a Bigbluebutton plugin for seperate groups and recording enabled.
Last month I installed Joomdle on the moodle and joomla but I faced a serious problem and my users couldn't login. I uninstalled joomdle and everything went fine.
last week I installed a wordpress in a folder and installed Edwiser plugin with SSO integration. I added users to wordpress. Users were logging in into Moodle with no problem. three days ago I moved the Wordpress into the root and let the users login from wordpress. But I realised that CPU usage goes up to 100% and makes the server crash. I deactivated and uninstalled the Edwiser plugin from Moodle and Wordpress and moved Wordpress to a folder again. After all these things when my users want to login to the Moodle, the Cpu goes to 100% and makes the site be down for a while.
How should I debug the issue? I know that my server is much more than enough for this number of users and courses. But I don't know how should I clean my database.
please sb helps.
thank you.

