|
|
| Author |
Message |
Froz
Joined: 26 Aug 2008 Posts: 19
|
Posted: Wed Aug 27, 2008 4:21 pm Post subject: php slow? |
|
|
I'm running a php script that uses cacti_snmp_walk to get a value. The script gets the value and outputs it to the screen a very resonable amount of time. I echo end of script at the end even. After it ends, it sits for about 3 seconds.
If i copy my poller cache, put all the commands in a batch file and run it, it's absolutely terrible. I'll never be able poll the data quick enough.
Any ideas?
cacti 8.7b, patched
mysql 5.0.67-win32
cacti-spine-0.8.7a
net-snmp-5.4.2-1.win32.exe
php-5.2.6-win32-installer.msi
rrdtool-1.2.15-cygwin-1.5.20
latest cygwin
activerperl-5.8.8.822-mswin32-x86-280952 |
|
| Back to top |
|
 |
BSOD2600 Cacti Moderator
Joined: 08 May 2004 Posts: 6795 Location: WA, USA
|
Posted: Wed Aug 27, 2008 7:49 pm Post subject: |
|
|
| Consider converting the script to use the cacti php script server, that way new copies of php.exe are not spawned for every custom php script. |
|
| Back to top |
|
 |
Froz
Joined: 26 Aug 2008 Posts: 19
|
Posted: Thu Aug 28, 2008 7:57 am Post subject: |
|
|
Unfortunately It's not my script. I've been working on the fibre alliance script from kwabbernoot.
http://forums.cacti.net/viewtopic.php?t=15797&highlight=fiberalliance
kwabbernoot was kind enough to give me an updated version of his .php script that works with 8.7b I wouldn't know how to convert it to use the cacti php server. Would you know of a guide to do that? |
|
| Back to top |
|
 |
Froz
Joined: 26 Aug 2008 Posts: 19
|
Posted: Thu Aug 28, 2008 2:03 pm Post subject: |
|
|
| I downgraded to 4.4.9 and it's significantly faster. odd.. |
|
| Back to top |
|
 |
BSOD2600 Cacti Moderator
Joined: 08 May 2004 Posts: 6795 Location: WA, USA
|
Posted: Thu Aug 28, 2008 7:42 pm Post subject: |
|
|
| Froz wrote: | | Would you know of a guide to do that? |
The documentation site is a wealth of information. http://docs.cacti.net/?q=node/514
| Froz wrote: | | I downgraded to 4.4.9 and it's significantly faster. odd.. |
No idea, except blame PHP . Possibly follow some guides on optimizing PHP + IIS? |
|
| Back to top |
|
 |
|