You are here: Re: keystone php3 eating memory on my new box using php 4.3.9 apache then errors « PHP Programming Language « IT news, forums, messages
Re: keystone php3 eating memory on my new box using php 4.3.9 apache then errors

Posted by gavino on 08/18/06 03:27

Jerry Stuckle wrote:
> 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
> ==================

I changed all of these from [x] to ['x'] per #php on IRC, some fo them
didnt give cmplaint but I said hey be consistent eh?
It fixed an other of the problem apps.

# SOPHIA variables

$sys_sophia_url = "http://sophia.pcstelcom.com/sophia";
$sys_sophia_label['Account']['accountname']
= "Account";
$sys_sophia_label['Location']['accountname'] =
"Account";
$sys_sophia_label['Location']['locationname'] =
"Location";
$sys_sophia_label['Phone']['accountname']
= "Account";
$sys_sophia_label['Phone']['locationname']
= "Location";
$sys_sophia_label['Phone']['phonename']
= "Phone No.";
$sys_sophia_label['Inmate System']['accountname'] =
"Inmate System";
$sys_sophia_label['Inmate Facility']['accountname'] = "Inmate
System";
$sys_sophia_label['Inmate Facility']['locationname'] = "Inmate
Facility";
$sys_sophia_label['CPE Station']['accountname'] = "Inmate
System";
$sys_sophia_label['CPE Station']['locationname'] =
"Inmate Facility";
$sys_sophia_label['CPE Station']['phonename'] = "CPE
Station";
$sys_sophia_label['Billed Party']['accountname'] =
"Inmate System";

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация