Skip to main content

I need help optimizing MySQL

Comments

5 comments

  • cPRex Jurassic Moderator
    Hey there! The MySQL server hadn't even been running for 2 hours according to the output from the tuning script, so the information may not be accurate, as it says. When the server seems slow, what is the output from the following command: mysqladmin proc status
    0
  • smyrna
    Hey there! The MySQL server hadn't even been running for 2 hours according to the output from the tuning script, so the information may not be accurate, as it says. When the server seems slow, what is the output from the following command: mysqladmin proc status

    I rebooted because of the slowness. Output results below: +-----+--------------------------+-----------+--------------------------+---------+------+--------------------------+------------------------------------------------------------------------------------------------------+----------+ | Id | User | Host | db | Command | Time | State | Info | Progress | +-----+--------------------------+-----------+--------------------------+---------+------+--------------------------+------------------------------------------------------------------------------------------------------+----------+ | 1 | system user | | | Daemon | | InnoDB purge coordinator | | 0.000 | | 2 | system user | | | Daemon | | InnoDB purge worker | | 0.000 | | 3 | system user | | | Daemon | | InnoDB purge worker | | 0.000 | | 4 | system user | | | Daemon | | InnoDB purge worker | | 0.000 | | 5 | system user | | | Daemon | | InnoDB shutdown handler | | 0.000 | | 9 | root | localhost | information_schema | Sleep | 14 | | | 0.000 | | 11 | root | localhost | information_schema | Sleep | 314 | | | 0.000 | | 13 | root | localhost | information_schema | Sleep | 14 | | | 0.000 | | 440 | kohlassyedek_kohlassyeni | localhost | kohlassyedek_kohlassyeni | Query | 0 | Sending data | SELECT COUNT(*) FROM UVspU9aX_term_relationships, UVspU9aX_posts WHERE UVspU9aX_posts.ID = UVspU9aX_ | 0.000 | | 445 | kohlassyedek_kohlassyeni | localhost | kohlassyedek_kohlassyeni | Query | 0 | Sending data | SELECT post_status, COUNT( * ) AS num_posts FROM UVspU9aX_posts WHERE post_type = 'product' GROUP BY | 0.000 | | 446 | root | localhost | | Query | 0 | Init | show processlist | 0.000 | +-----+--------------------------+-----------+--------------------------+---------+------+--------------------------+------------------------------------------------------------------------------------------------------+----------+ Uptime: 324 Threads: 39 Questions: 96924 Slow queries: 19 Opens: 308 Flush tables: 1 Open tables: 301 Queries per second avg: 299.148
    0
  • cPRex Jurassic Moderator
    It usually isn't necessary to reboot a system because of slowness, as restarting a particular service will often take care of that. Nothing in the output you provided looks odd, but was the slowness happening again when you ran that command? We need to run the commands and examine the system while the slowness is happening, as it will be very difficult to get useful data after it has stopped.
    0
  • smyrna
    It usually isn't necessary to reboot a system because of slowness, as restarting a particular service will often take care of that. Nothing in the output you provided looks odd, but was the slowness happening again when you ran that command? We need to run the commands and examine the system while the slowness is happening, as it will be very difficult to get useful data after it has stopped.

    First of all, thanks I made a few changes, I'm watching the processes, it seems there is no problem.
    0
  • cPRex Jurassic Moderator
    It's always possible it could have been a temporary issue with the MySQL service, but if you see it happening again just try and run those tools and see if they give you more information.
    0

Please sign in to leave a comment.