Ad Widget

Collapse

Apache loads full CPU when running screens.php

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • djinn_fr22
    Member
    • Jan 2007
    • 54

    #1

    Apache loads full CPU when running screens.php

    I have a problem when I request the screens.php with 4 graphs with usage of memory by server for a week.

    screens.php?period=43200&dec=0&inc=0&left=0&right= 0&stime=yyyymmddhhmm&screenid=12&from=0&fullscreen =0

    24H period works okay but as soon as I start week period, it get stuck.
    I tested each graph one by one and it works properly. The problem is only with this screen (other screens are OK) for over 24H period.

    When I look on the server running Apache. As soon as I start the request, Apache get 100% of CPU usage.
    I am obliged to restart Apache to stop CPU overload.

    I am running zabbix web frontends 1.1.5.
    I don't know if it's worth it to upgrade to 1.1.6 after looking the changelog.

    I think it's a problem with GD.
    I am using Apache/2.0.59 (Win32) PHP/5.2.0 on Windows with php_gd2.dll

    I don't if somebody has already got a problem with gd and zabbix.
    If so, can somebody tell me where to look at ?
    I turn on the debug of apache and php, but so far it doesn't give me much info.
    How can I get debug feature on GD ?

    Thank you.
  • James Wells
    Senior Member
    • Jun 2005
    • 664

    #2
    Greetings,

    Right off the bat, I suspect you need to allocate more memory to PHP in the php.ini. Depending on your OS / Distribution, you may have to edit multiple php.ini files, but the entry you are looking for is "memory_limit = 8M" I recommend changing this to 32M.
    Unofficial Zabbix Developer

    Comment

    • djinn_fr22
      Member
      • Jan 2007
      • 54

      #3
      Thank you for your advice.

      I change the memory limit of 128M, but it doesn't change anything.

      I don't know where to look at.
      How to get debug info of php extension ?

      Thank you.

      Comment

      • James Wells
        Senior Member
        • Jun 2005
        • 664

        #4
        Don't recall the variable off the top of my head, but in the php.ini there is a setting that enables logging of errors and allows you to define where those errors go.
        Unofficial Zabbix Developer

        Comment

        Working...