Ad Widget

Collapse

mysql very busy

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • medic
    Member
    • Feb 2007
    • 58

    #1

    mysql very busy

    Hi, with the 1.3.3-Version, there is very much load on my mysql Database.

    i can see some "create" and "delete tmp tables" .. not sure if they are responsible for that impact. I have only 1 item at 30 second polltime (icmpping) all the others at 60 up to 300 seconds polltime...
    The impact seems to hit the CPU.


    model name : Dual Core AMD Opteron(tm) Processor 280
    stepping : 2
    cpu MHz : 2400.000

    (its a dual dualcore machine, with 4 Cores)

    top:
    25119 mysql 15 0 469m 78m 5760 S 198 1.1 1093:35 mysqld

    uptime:
    20:29:30 up 17 days, 2:09, 6 users, load average: 6.92, 6.80, 6.84

    iowait:
    0-2 (very little)

    Updated: Mon, 05 Mar 2007 19:23:26 +0000
    Refreshed every: 30 sec (refresh now)
    Users (online): 4(0)
    Logged in as medic
    ZABBIX server is running
    Hosts (m/n/t/d): 32(17/2/13/0)
    Items (m/d/n)[t]: 217(178/20/19)[0]
    Triggers (e/d)[t/u/f]: 194(193/1)[3/15/175]


    can someone please verify ?

    Can this be the reason?:
    15605:20070305:204355 Expression [{13373}=1] cannot be evaluated [Unable to get value for functionid [13373]]

    mysql> select * from triggers where expression like "%13373%";
    +-----------+------------+--------------------+-----+--------+-------+----------+------------+-----------+----------+----------------------------------------------+------------+
    | triggerid | expression | description | url | status | value | priority | lastchange | dep_level | comments | error | templateid |
    +-----------+------------+--------------------+-----+--------+-------+----------+------------+-----------+----------+----------------------------------------------+------------+
    | 12585 | {13373}=1 | Last Agent Version | | 0 | 2 | 1 | 0 | 0 | | Trigger just added. No status update so far. | 12508 |
    +-----------+------------+--------------------+-----+--------+-------+----------+------------+-----------+----------+----------------------------------------------+------------+

    mysql> select * from functions where functionid = 13373;
    +------------+--------+-----------+-----------+----------+-----------+
    | functionid | itemid | triggerid | lastvalue | function | parameter |
    +------------+--------+-----------+-----------+----------+-----------+
    | 13373 | 17815 | 12585 | NULL | str | 1.3.3 |
    +------------+--------+-----------+-----------+----------+-----------+

    Trigger: Host_At:agent.version.str(1.3.3)=1

    Note: Disabling the item drops CPU Load for about 200% ...
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    May I ask you to increase debug level and send extract of zabbix_server.log? Thanks.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • medic
      Member
      • Feb 2007
      • 58

      #3
      I should note, that agent.version is supposed to be polled every 3600 seconds (1hour)

      seems like update interval is not respected...



      History:
      2007-03-05 21:03:24 1173128604 1.3.2
      2007-03-05 21:03:24 1173128604 1.3.2
      2007-03-05 21:03:24 1173128604 1.3.2
      2007-03-05 21:03:24 1173128604 1.3.2
      2007-03-05 21:03:24 1173128604 1.3.2
      2007-03-05 21:03:24 1173128604 1.3.2
      2007-03-05 21:03:24 1173128604 1.3.2
      2007-03-05 21:03:24 1173128604 1.3.2
      2007-03-05 21:03:24 1173128604 1.3.2
      2007-03-05 21:03:24 1173128604 1.3.2
      2007-03-05 21:03:24 1173128604 1.3.2
      2007-03-05 21:03:24 1173128604 1.3.2
      2007-03-05 21:03:24 1173128604 1.3.2
      2007-03-05 21:03:24 1173128604 1.3.2
      2007-03-05 21:03:24 1173128604 1.3.2
      2007-03-05 21:03:24 1173128604 1.3.2
      2007-03-05 21:03:24 1173128604 1.3.2
      2007-03-05 21:03:24 1173128604 1.3.2
      2007-03-05 21:03:23 1173128603 1.3.2
      2007-03-05 21:03:23 1173128603 1.3.2
      2007-03-05 21:03:23 1173128603 1.3.2
      2007-03-05 21:03:23 1173128603 1.3.2
      2007-03-05 21:03:23 1173128603 1.3.2
      2007-03-05 21:03:23 1173128603 1.3.2
      2007-03-05 21:03:23 1173128603 1.3.2
      2007-03-05 21:03:23 1173128603 1.3.2
      2007-03-05 21:03:23 1173128603 1.3.2
      2007-03-05 21:03:23 1173128603 1.3.2
      2007-03-05 21:03:23 1173128603 1.3.2
      2007-03-05 21:03:23 1173128603 1.3.2
      2007-03-05 21:03:23 1173128603 1.3.2
      2007-03-05 21:03:23 1173128603 1.3.2
      2007-03-05 21:03:23 1173128603 1.3.2

      [root@toolbox ~]# mysqladmin status -p
      Enter password:
      Uptime: 1373918 Threads: 24 Questions: 148808526 Slow queries: 7 Opens: 3897 Flush tables: 1 Open tables: 64 Queries per second avg: 108.310

      109 queries per second? *smiles*

      [root@toolbox ~]# echo "select count(*) from history_text;" | mysql -pzab zabbix_beta_133; sleep 5; echo "select count(*) from history_text;" | mysql -pzab zabbix_beta_133;

      count(*)
      540308

      count(*)
      542436

      2100 inserts in 5 seconds :-)
      Attached Files
      Last edited by medic; 05-03-2007, 23:01.

      Comment

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

        #4
        Thanks for the log. ZABBIX 1.3.3 does not correctly process item having type Text. Please change type of the item to String to make it work.
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

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

          #5
          This is fixed in pre 1.3.4.
          Alexei Vladishev
          Creator of Zabbix, Product manager
          New York | Tokyo | Riga
          My Twitter

          Comment

          • roinet
            Junior Member
            • Mar 2007
            • 2

            #6
            When I can find this item? This is fields of table in database or some type in source code?
            I have same problem with version 1.1.6.
            Last edited by roinet; 29-03-2007, 01:10.

            Comment

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

              #7
              You cannot have exactly the same problem because it was 1.3.3 specific.
              Alexei Vladishev
              Creator of Zabbix, Product manager
              New York | Tokyo | Riga
              My Twitter

              Comment

              • roinet
                Junior Member
                • Mar 2007
                • 2

                #8
                May be it another problem, but it has same symptoms - mysqld receive many sql-query, and load cpu about 10%. This is for one router and two computers.

                Comment

                Working...