Ad Widget

Collapse

MySQL Performance

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Shiva
    Junior Member
    • Apr 2005
    • 14

    #1

    MySQL Performance

    I am having heavy CPU utilization on the zabbix server, mostly consumed by the MySQL process. I checked the MySQL database performance using phpMyAdmin and this is a summary of the data in red:
    Slow queries: 1K
    Handler_read_rnd 296 M (The number of requests to read a row based on a fixed position. This is high if you are doing a lot of queries that require sorting of the result. You probably have a lot of queries that require MySQL to scan whole tables or you have joins that don't use keys properly.
    Handler_read_rnd_next 1 G (The number of requests to read the next row in the data file. This is high if you are doing a lot of table scans. Generally this suggests that your tables are not properly indexed or that your queries are not written to take advantage of the indexes you have)
    Created_tmp_disk_tables 31 M (The number of temporary tables on disk created automatically by the server while executing statements. If Created_tmp_disk_tables is big, you may want to increase the tmp_table_size value to cause temporary tables to be memory-based instead of disk-based)

    Is this normal? Am running Zabbix 1.1.1 with housekeeper patch on a Solaris 10 server with 1 GB RAM and 1x1 GHz CPU
  • ddrager
    Junior Member
    • Aug 2006
    • 13

    #2
    Seems "normal" to me... I know Zabbix uses my MySQL server pretty hard. I only have a few hosts and the database gets quite large, fast. Here are my corresponding entries:

    Slow_queries 16
    Handler_read_rnd 199 M
    Handler_read_rnd_next 142 M
    Created_tmp_disk_tables 178 k

    This is on a system with 2 gigs of ram, and a Pentium D dual core 3.0ghz cpu and the MySQL server has been up for 77 days.

    Comment

    • Alexei
      Founder, CEO
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Sep 2004
      • 5654

      #3
      Originally posted by Shiva
      Slow queries: 1K
      It would be interesting to know MySQL uptime and also get more details about the slow queries if possible.
      Alexei Vladishev
      Creator of Zabbix, Product manager
      New York | Tokyo | Riga
      My Twitter

      Comment

      • Shiva
        Junior Member
        • Apr 2005
        • 14

        #4
        Originally posted by Alexei
        It would be interesting to know MySQL uptime and also get more details about the slow queries if possible.
        The MySQL server is up for 37 days, 20 hours, 29 minutes and 42 seconds. I have just now enabled the slow queries log. Will post the result asap.

        Comment

        • Alexei
          Founder, CEO
          Zabbix Certified Trainer
          Zabbix Certified SpecialistZabbix Certified Professional
          • Sep 2004
          • 5654

          #5
          Thanks. Please keep me informed.
          Alexei Vladishev
          Creator of Zabbix, Product manager
          New York | Tokyo | Riga
          My Twitter

          Comment

          Working...