First I have attached is a simple patch to eliminate the following php warning that I am seeing in my apache error log file:
[error] PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of fsockopen(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/www/ganglia.php on line 273 I am still using apache 1.3.28 with php 4.3.3. Second, occasionally my web browser is getting connection errors with broken images that stop the page refreshing when it loads the ganglia page and at the same time it happens I get these in my error log: [notice] child pid 571 exit signal Segmentation fault (11) I assume these are coming from the rrdtool process that the php script is executing to generate the graphs. Any idea why rrdtool would be seg faulting or how I could debug it. This doesn't happen too frequently, maybe a few times a day, but they seem to happen in spurts. Could this occur when rrdtool is trying to read a file at the same time gmetad is writing to it? Finally, my apache server appears to be leaking memory. Could the ganglia php scripts be causing a memory leak? We have several other webservers all with the same version of apache and only the ganglia webfrontend has this leak. My temporary fix is to just restart apache every night, since even the weekly logrotate & restart was too long to wait. ~Jason -- /------------------------------------------------------------------\ | Jason A. Smith Email: [EMAIL PROTECTED] | | Atlas Computing Facility, Bldg. 510M Phone: (631)344-4226 | | Brookhaven National Lab, P.O. Box 5000 Fax: (631)344-7616 | | Upton, NY 11973-5000 | \------------------------------------------------------------------/
diff -uNr ganglia-webfrontend-2.5.5-dist/ganglia.php ganglia-webfrontend-2.5.5/ganglia.php --- ganglia-webfrontend-2.5.5-dist/ganglia.php Mon Nov 10 13:54:16 2003 +++ ganglia-webfrontend-2.5.5/ganglia.php Fri Jan 2 12:00:45 2004 @@ -270,7 +270,7 @@ break; } - $fp = fsockopen( $ip, $port, &$errno, &$errstr, $timeout); + $fp = fsockopen( $ip, $port, $errno, $errstr, $timeout); if (!$fp) { $error = "fsockopen error: $errstr";