Ad Widget

Collapse

queue full with 'more than 10 minutes' items

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chrisz
    Junior Member
    • Jan 2014
    • 3

    #1

    queue full with 'more than 10 minutes' items

    hi,

    last friday, our zabbix server suddenly stopped working properly. I was working on a new template and after some time afk I started work again and was greated with some error message about a locked table or sth. It disappeared quickly so I don't recall the exact wording. And I thought a simple refresh would fix it, but it didn't.

    Instead, I noticed that the majority of my items stopped collecting data. Some still work, but only sporadically. A zabbix server restart gets all items to work again but after a short while, they stop working again. The queue shows most items as awaiting update for "more than 10 minutes".

    There are no error messages in the server log that provide any hints. I suspected a DB problem and had a look at the processlist but I don't see anything alarming. There are a lot of long-lasting "sleep" connections and about five queries that are in "sending data" state for anything between 3-22 seconds. Maybe that's a little weird, but I don't know. Those queries disappear after a while, so it's not like they get stuck forever.

    Please help me with debugging this! Any advice is appreciated. I do have a DB backup. If there's chance that it'll fix things, I'd apply it. But I'd loose some work so I want to be sure there's nothing else I can do first.

    Cheers,
    Chris
  • chrisz
    Junior Member
    • Jan 2014
    • 3

    #2
    alright, after analyzing this some more, I realize that there were always queries coming from my triggers which were hanging for many seconds in the processlist. This is due to the fact that I use averages a lot in my triggers and that the history and history_uint tables has 3 mil and 12 mil records, respectively.

    The situation is under control. Now it's time to optimize the DB for Zabbix.

    Comment

    • LynxChaus
      Junior Member
      • Feb 2013
      • 25

      #3
      Originally posted by chrisz
      The situation is under control. Now it's time to optimize the DB for Zabbix.
      v2.2.x? Try disable ValueCache first.

      Comment

      • chrisz
        Junior Member
        • Jan 2014
        • 3

        #4
        nope, 2.0.4, soon to become 2.0.10.
        It's quite obvious by now that the history tables have grown too big for the current MySQL settings and the available memory. So I know what to do next.

        Thanks though, I'll keep that in mind for the future!

        Chris

        Comment

        Working...