MySQL consume cpu

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dimsum
Posts: 153
Joined: Thu Aug 15, 2013 6:05 pm

MySQL consume cpu

Post by dimsum »

Hi,

I have run an XI it's smoothly when the last 2days I got a MySQL to consume a CPU too hight. no error log in MariaDB but I saw some of file in /var/lib/mysql/nagiosxi/xi_meta.ibd is looking abnormal. please find the pictures.

Also, I use ramdisk but no luck.

Any idea please let me know.

Thank you.
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: MySQL consume cpu

Post by scottwilkerson »

this definitely doesn't look correct.

Lets run the following to clear some of these tables that should be pulling temp data:

Code: Select all

killall -9 php
systemctl restart mariadb
echo "truncate table xi_events; truncate table xi_meta; truncate table xi_eventqueue;" | mysql -u root -pnagiosxi nagiosxi
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
dimsum
Posts: 153
Joined: Thu Aug 15, 2013 6:05 pm

Re: MySQL consume cpu

Post by dimsum »

It worked.

Thanks!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: MySQL consume cpu

Post by scottwilkerson »

dimsum wrote:It worked.

Thanks!
Great!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked