You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2006/08/21 22:54:20 UTC
DO NOT REPLY [Bug 40292] New: - use up all memory after reloading
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40292>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=40292
Summary: use up all memory after reloading
Product: Apache httpd-2
Version: 2.0.55
Platform: PC
OS/Version: Linux
Status: NEW
Severity: critical
Priority: P2
Component: worker
AssignedTo: bugs@httpd.apache.org
ReportedBy: oliver.peng@skywave.com
Operation system: Debian linux
Reproducing steps
1 Create a site config file test in /etc/apache2/sites-available by using
following command:
echo Listen 1234 > test
2 Enable site test and reload
3 Disable site test and reload
After this reloading, apache will use up all memory and finally be killed by
linux kernel.
There are 2G memory in my server!
There is another server with the same apache2 version but using apache2-mpm-
prefork model doesn't have this problem.
This problem won't happen if I use /etc/init.d/apache2 restart.
Thanks.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 40292] - use up all memory after reloading
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40292>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=40292
sf@sfritsch.de changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |RESOLVED
Resolution| |DUPLICATE
------- Additional Comments From sf@sfritsch.de 2007-12-02 13:48 -------
This was a duplicate of
http://issues.apache.org/bugzilla/show_bug.cgi?id=37680
*** This bug has been marked as a duplicate of 37680 ***
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 40292] - use up all memory after reloading
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40292>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=40292
------- Additional Comments From oliver.peng@skywave.com 2006-08-22 15:21 -------
Sorry I am not familiar gentoo or slackware. So can you give me some idea on
how to deploy a site config file with only one line : Listen 1234 in standard
process.
"/etc/apache2/sites-available" refer to the directory to put the site config
file. There is another directory "/etc/apache2/sites-enabled" to put the link
files pointed to the site config files in "/etc/apache2/sites-available". Just
like the relationship between /etc/rc.5 and /etc/init.d. Only the config file
with link file in "/etc/apache2/sites-enabled" will be loaded in apache2.
"a2ensite" and "a2dissite" commands just add or delete the link file
in "/etc/apache2/sites-enabled" directory. For example, "a2ensite test" will
add a link file in "/etc/apache2/sites-enabled" directory pointed to the test
config file test in "/etc/apache2/sites-available".
Thanks.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 40292] - use up all memory after reloading
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40292>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=40292
------- Additional Comments From rpluem@apache.org 2006-08-22 19:31 -------
Reload is no command accepted by httpd any longer (As far as I remember it was
one with 1.3, but I am not sure). So please provide the details what
/etc/init.d/apache2 reload is actually doing, since /etc/init.d/apache2 seems to
be a Debian written script.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 40292] - use up all memory after reloading
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40292>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=40292
------- Additional Comments From rpluem@apache.org 2006-08-22 20:52 -------
Sorry, but I cannot reproduce this with a graceful restart. Do you have any 3rd
party modules loaded (like e.g. php)? Often Linux distros deliver patched
versions of Apache which makes it impossible to find the error. So I would
propose the following:
1. Report this error to Debian.
2. Download the sources for 2.0.59 / 2.0.55, compile httpd yourself and check if
the problem remains with these self compiled httpd's. If yes please come back
and we might get a clue what happens.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 40292] - use up all memory after reloading
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40292>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=40292
------- Additional Comments From oliver.peng@skywave.com 2006-08-23 13:22 -------
Thanks for your reply.
I will try to report this problem to Debian and have a try to use source
version on Debian.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 40292] - use up all memory after reloading
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40292>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=40292
------- Additional Comments From nick@webthing.com 2006-08-22 14:28 -------
Your instructions are entirely debian-specific. Noone else
has "/etc/apache2/sites-available", "a2ensite", or "a2dissite", so I can't
reproduce your steps on gentoo or slackware, for instance.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 40292] - use up all memory after reloading
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40292>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=40292
nick@webthing.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
------- Additional Comments From nick@webthing.com 2006-08-21 22:27 -------
If reproducing the bug requires distro-specific steps (such as creating
entries in a Debian-only directory), then it's a Debian bug, not an Apache
one. Can you reformulate your steps in terms of standard Apache? And what do
you mean by "reload" that differs from restarting?
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 40292] - use up all memory after reloading
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40292>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=40292
------- Additional Comments From oliver.peng@skywave.com 2006-08-22 19:45 -------
I checked the apache2 script in /etc/init.d and I abstract the reload part
code as follow:
ENV="env -i LANG=C PATH=/usr/local/bin:/usr/bin:/bin"
APACHE2CTL="$ENV /usr/sbin/apache2ctl"
log_begin_msg "Reloading apache 2.0 configuration..."
if $APACHE2CTL graceful $2 ; then
log_end_msg 0
else
log_end_msg 1
fi
So finally I think it just do command:
/usr/sbin/apache2ctl graceful
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 40292] - use up all memory after reloading
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40292>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=40292
------- Additional Comments From oliver.peng@skywave.com 2006-08-22 13:34 -------
There is no special configuration in Debian system.
Steps to Reproduce:
1) Create a site config file test in /etc/apache2/sites-available by using
following command:
cd /etc/apache2/sites-available
echo Listen 1234 > test
2) Enable site test and reload
a2ensite test
/etc/init.d/apache2 reload
3) Disable site test and reload
a2dissite test
/etc/init.d/apache2 reload
After this reloading, apache will begin to use up all memory rapidly and
finally be killed by linux kernel.
It can use up 2G memory in just 5 seconds!
There is another server with the same apache2 version but using apache2-mpm-
prefork model doesn't have this problem.
This problem won't happen if I use "/etc/init.d/apache2 restart".
Thanks.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org