CACTID Only Running 1 PHP.EXE At A Time

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

CACTID Only Running 1 PHP.EXE At A Time

Post by TheWitness »

For some reason, only 1 PHP.EXE is running at a time and causes CACTID to run as slow as CMD.PHP. Has anyone experienced this and was there a resolution?

TheWitness
sidewinder
Cacti User
Posts: 66
Joined: Sat Dec 06, 2003 12:44 pm
Location: Winchester, MA

Post by sidewinder »

I've been running it for months and other than the popen issue i have had very little problem.

I've been running the version that comes with the 0.8.5a release.

cactid doesn't require php to run, so unless you have some php scripts added to cacti as data queries or input methods, this process would be unrelated to cactid.

Cheers - Phil
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Sidewinder,

The calls to any of the Host Resource MIB's involve the calling of external scripts via the XML files. Each XML file then generates a list of OID's to be scanned and performs calculations on the results. Unfortunately, PHP is VEEERRRRYYYY slow on the Windows platform. Therefore, CACTID is just as slow as CMD.PHP when you have a lot of PC's and/or SCRIPTS.

TheWitness
sidewinder
Cacti User
Posts: 66
Joined: Sat Dec 06, 2003 12:44 pm
Location: Winchester, MA

Post by sidewinder »

Not following, cactid processes the data_input_data_cache table. The entries in there are generated when you add a new graph using cacti. There is no xml processing done by cactid.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

True, the script is specified in the XML file however. My bad... The scripts run serially and not as multiple threads as anticipated.

TheWitness
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Reading around, there are a few things that I've done to help speed up cacti displaying stuff in php.

1) Switched over to FastCGI instead of php.exe
2) in Php.ini, output_buffering = on
3) Using zend optimizer
Jeppe
Posts: 47
Joined: Sun Feb 09, 2003 4:48 am
Contact:

Post by Jeppe »

FWIW, I'm having the same problem and I haven't been able to pinpoint what the problem is so far. I have exactly one cactid binary (0.8.5) that threads most of the time. Others I compile use just one thread no matter what.

I'm suspecting it might have something to do with the shell scripts I'm using with lots of data sources.

Using Fedora1 with all the updates.

J
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests