Yah I was thinking the same exact thing actually.... Its far more a limitation of PHP than anything Zabbix is responsible for though.
Ad Widget
Collapse
Scaling the web front end
Collapse
X
-
perhaps I could setup APD, maybe hack it into hosts.php or something? http://pecl.php.net/package/apdComment
-
How about this for php debugging/profiling?
I haven't used it personally so I can't say if its output would be useful here.Comment
-
True, but there isn't any functional framework within the Zabbix frontend for enabling adding debugging to disk for situations for this.RHCE, author of zbxapi
Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM
Comment
-
So this is interesting.... For S&G I let my php threads (we use php-fcgi) spin out of control forever after one of my front end timeouts.
Watching the db I noticed something, that I was basically experiencing what people have been referring to as the "DOS" of profileid. Only this is on the auditlog table...
I see basically 2 types of queries just spammed over and over. Theyve been running for over 3 hours now...
EDIT: This is on the latest nightlySELECT nextid FROM ids WHERE nodeid=0 AND table_name='auditlog' AND field_name='auditid'
UPDATE ids SET nextid=nextid+1 WHERE nodeid=0 AND table_name='auditlog' AND field_name='auditid'Last edited by jcesario; 24-03-2010, 21:02.Comment
-
Yep... I saw the same symptoms on my box. It has since gone away but when I did see it it was usually when a new user would begin looking at Zabbix.RHCE, author of zbxapi
Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM
Comment
-
Have you done much looking into getting xdebug installed? It looks like the only way to get some really good data is going to be to add a profiler of some kind.RHCE, author of zbxapi
Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM
Comment
-
You may try to enable debug in configuration of user groups for one specific group. Now you have a Debug link in the top header for all front-end screens.
Now if you see that a page is slow or very slow, click on the link to see why it happened.Comment
-
If you're getting a page timeout the front end debug is pretty much useless. The only way to see the debug information is if you can actually get a full page render. The problem I had had very similar symptoms and all I would ever see was a menu bar. Debug information was only available *after* the page rendered which *never* happened. What would be nice is if there was an ability to turn on debugging to a file. I don't care if actually turning it on requires digging into the source, in fact I would prefer that but something that says "this function is called with these values" and so on would do wonders. (kinda like what I have done with Zabcon)
I realize this may mean huge data dumps, perhaps you could make it more granular requiring levels or only logging when someone has enabled a debug get variable after they have enabled debug in the source (required to prevent a DOS of the system by default).
Otherwise for problems like this the only real option is to learn XDebug, or purchase Zend and use it's profiler.RHCE, author of zbxapi
Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM
Comment
-
I will be looking into estimating LOE on getting some kind of profiling in there. However thats not something I have time for right now. Its basically a whole project unto itself.
Im also looking into grabbing a copy of Zend Profiler so I can just use that instead.Comment
Comment