473,398 Members | 2,812 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

keystone php3 eating memory on my new box using php 4.3.9 apache then errors

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...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...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...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...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...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...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...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...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...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...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...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...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

Aug 18 '06 #1
2 1658
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...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...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...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...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...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...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...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...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...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...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...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...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.
js*******@attglobal.net
==================
Aug 18 '06 #2

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...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...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...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...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...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...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...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...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...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...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...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...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.
js*******@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";

Aug 18 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

31
by: lawrence | last post by:
I'm not sure how this is normally done, on a large site, perhaps one running Phorum. Occassionally a thread will have hundreds of entries, perhaps a meg or two worth of data. You won't necessarily...
1
by: Ravi & Paami | last post by:
After I tried upgrading my php version from 3 to 4, all my code which passes parameters between web pages have stopped working. Not sure what the problem is. Have tried defining the parameters in...
2
by: pancho | last post by:
Greetings, I need help configuring/building PHP3 with MySQL as a DSO on a Solaris 8 box - this module is needed to host some existing sites I will be migrating Note. I built PHP4 from source and...
1
by: Leonidas | last post by:
I have a web portal made with PHP and DB2 running and i use Apache Web Server. DB2 8.1, PHP 5 and Apache 2.0.50 on Windows XP. After some usage the system's memory increases dramatically and i...
2
by: me.linuxadmin | last post by:
hi all ive got php-4.3.9-3 on my fedora3....tried installing phptimesheet-1.2.4.tar.gz on my system..extracted the folder to document root of apache2..all the files of the timesheet have php3...
1
by: google | last post by:
Hello all- Apologies to everyone for what's probably a very inchoate and uninformed question, but I've been thrust into the position about having to learn more about PHP very quickly. (I'm also...
1
by: gavino | last post by:
if you can tell me why this php3 app is failing on php 4,3,9 (21:13:31) gavinhopeful: can someone take a peek at this code? http://hashphp.org/pastebin.php?format=plain&pid=8178 (21:13:42)...
2
by: Extremest | last post by:
I have a picture site. I save the original and a thumbnail of every picture. Now if they click on a thumbnail then they go to the viewer page where they then see an intermediate picture. I have...
15
by: Lawrence Krubner | last post by:
Does anything about this script look expensive, in terms of resources or execution time? This script dies after processing about 20 or 25 numbers, yet it leaves no errors in the error logs. This is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.