|
Posted by Jerry Stuckle on 08/18/06 03:08
gavino wrote:
> REHDAT LINUX 4S PHP 4.3.9 LEGACY APP I MOVED NOW EATS MEMORY CAN ANYONE
> TAE A LOOK ?
> I FIXED ONE PARTIALLY BY CHANGING [VARIABLE-XYZ] TO ['VARIABLE-XYZ']
> here are my apache settings: 1 page laoding for a few seconds eat like
> 48% of a xeon 3.0 processor!!!
>
> <IfModule prefork.c>
> StartServers 8
> MinSpareServers 5
> MaxSpareServers 20
> MaxClients 150
> MaxRequestsPerChild 1000
> </IfModule>
>
> # worker MPM
> # StartServers: initial number of server processes to start
> # MaxClients: maximum number of simultaneous client connections
> # MinSpareThreads: minimum number of worker threads which are kept
> spare
> # MaxSpareThreads: maximum number of worker threads which are kept
> spare
> # ThreadsPerChild: constant number of worker threads in each server
> process
> # MaxRequestsPerChild: maximum number of requests a server process
> serves
> <IfModule worker.c>
> StartServers 2
> MaxClients 150
> MinSpareThreads 25
> MaxSpareThreads 75
> ThreadsPerChild 25
> MaxRequestsPerChild 0
>
> #
> # To reduce memory usage in the worker MPM, the thread guard page
> # can be disabled, at the expense of some protection against stack
> # overflow.
> #
> #ThreadGuardArea off
>
> </IfModule>
>
>
>
> ERRORS FROM /ETC/HTTPD/LOGS/APP-XYZ-LOG
> [client 10.1.30.223] PHP Notice: Use of undefined constant timespent -
> assumed 'timespent' in /var/www/html/misticket/sli
> ps.php3 on line 736, referer:
> http://mis.troubleticket.net/nbrowse.php3?f_func=addslip
> [client 10.1.30.223] PHP Notice: Use of undefined constant sid -
> assumed 'sid' in /var/www/html/misticket/slips.php3 on l
> ine 748, referer:
> http://mis.troubleticket.net/nbrowse.php3?f_func=addslip
> [client 10.1.30.223] PHP Notice: mysql(): This function is deprecated;
> use mysql_query() instead. in /var/www/html/mistic
> ket/mysql.php3 on line 22, referer:
> http://mis.troubleticket.net/nbrowse.php3?f_func=addslip
> [client 10.1.30.223] PHP Notice: Use of undefined constant summary -
> assumed 'summary' in /var/www/html/misticket/slips.p
> hp3 on line 759, referer:
> http://mis.troubleticket.net/nbrowse.php3?f_func=addslip
> [client 10.1.30.223] PHP Notice: Use of undefined constant sid -
> assumed 'sid' in /var/www/html/misticket/slips.php3 on l
> ine 770, referer:
> http://mis.troubleticket.net/nbrowse.php3?f_func=addslip
> [client 10.1.30.223] PHP Notice: Undefined variable: exp_children in
> /var/www/html/misticket/slips.php3 on line 770, ref
> erer: http://mis.troubleticket.net/nbrowse.php3?f_func=addslip
> [client 10.1.30.223] PHP Notice: mysql(): This function is deprecated;
> use mysql_query() instead. in /var/www/html/mistic
> ket/mysql.php3 on line 22, referer:
> http://mis.troubleticket.net/nbrowse.php3?f_func=addslip
> [client 10.1.30.223] PHP Notice: Use of undefined constant sid -
> assumed 'sid' in /var/www/html/misticket/slips.php3 on l
> ine 895, referer:
> http://mis.troubleticket.net/nbrowse.php3?f_func=addslip
> [client 10.1.30.223] PHP Notice: Undefined variable: exp_contacts in
> /var/www/html/misticket/slips.php3 on line 895, ref
> erer: http://mis.troubleticket.net/nbrowse.php3?f_func=addslip
> [client 10.1.30.223] PHP Notice: Use of undefined constant sid -
> assumed 'sid' in /var/www/html/misticket/slips.php3 on l
> ine 938, referer:
> http://mis.troubleticket.net/nbrowse.php3?f_func=addslip
> [client 10.1.30.223] PHP Notice: Undefined variable: exp_follow in
> /var/www/html/misticket/slips.php3 on line 938, refer
> er: http://mis.troubleticket.net/nbrowse.php3?f_func=addslip
> [client 10.1.30.223] PHP Notice: Use of undefined constant sbgn -
> assumed 'sbgn' in /var/www/html/misticket/slips.php3 on
> line 1087, referer:
> http://mis.troubleticket.net/nbrowse.php3?f_func=addslip
> [client 10.1.30.223] PHP Notice: Use of undefined constant Account -
> assumed 'Account' in /var/www/html/misticket/conf/ke
> ystone.conf on line 395, referer:
> http://mis.troubleticket.net/nbrowse.php3
> [client 10.1.30.223] PHP Notice: Use of undefined constant accountname
> - assumed 'accountname' in /var/www/html/misticket
> /conf/keystone.conf on line 395, referer:
> http://mis.troubleticket.net/nbrowse.php3
> [client 10.1.30.223] PHP Notice: Use of undefined constant Location -
> assumed 'Location' in /var/www/html/misticket/conf/
> keystone.conf on line 396, referer:
> http://mis.troubleticket.net/nbrowse.php3
> [client 10.1.30.223] PHP Notice: Use of undefined constant accountname
> - assumed 'accountname' in /var/www/html/misticket
> /conf/keystone.conf on line 396, referer:
> http://mis.troubleticket.net/nbrowse.php3
> [client 10.1.30.223] PHP Notice: Use of undefined constant Location -
> assumed 'Location' in /var/www/html/misticket/conf/
> keystone.conf on line 397, referer:
> http://mis.troubleticket.net/nbrowse.php3
> [client 10.1.30.223] PHP Notice: Use of undefined constant
> locationname - assumed 'locationname' in /var/www/html/mistick
> et/conf/keystone.conf on line 397, referer:
> http://mis.troubleticket.net/nbrowse.php3
> [client 10.1.30.223] PHP Notice: Use of undefined constant Phone -
> assumed 'Phone' in /var/www/html/misticket/conf/keysto
> ne.conf on line 398, referer: http://mis.troubleticket.net/nbrowse.php3
> [client 10.1.30.223] PHP Notice: Use of undefined constant accountname
> - assumed 'accountname' in /var/www/html/misticket
> /conf/keystone.conf on line 398, referer:
> http://mis.troubleticket.net/nbrowse.p
>
Well, first of all, clean up your code. It takes time (and memory) to
handle all of these errors.
Other than that, we can't see your code, so we would have no idea what
might be taking the resources.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|