[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#215836: apache uses lot's of CPU and Memory




I still have the problem with mod_jk disabled completely and all JkMount directives removed.

Is there some way I can debug the process that is playing up? I attached to it with gdb /usr/sbin/apache 18038 and each time I stop it I get:

0x40205ce4 in _IO_file_underflow () from /lib/libc.so.6
(gdb) cont
Continuing.

Program received signal SIGINT, Interrupt.
[Switching to Thread 16384 (LWP 18038)]
0x40205ce4 in _IO_file_underflow () from /lib/libc.so.6
(gdb)

When I continue the process, the problem is back within 15 seconds or so. Is there a symbol table I can use for debugging this binary, or will I need to recompile?

(gdb) bt
#0  0x40205ce4 in _IO_file_underflow () from /lib/libc.so.6
#1  0x40205f65 in _IO_file_underflow () from /lib/libc.so.6
#2  0x40207aad in _IO_default_uflow () from /lib/libc.so.6
#3  0x402078ee in __uflow () from /lib/libc.so.6
#4  0x401fc328 in _IO_getline_info () from /lib/libc.so.6
#5  0x401fc223 in _IO_getline () from /lib/libc.so.6
#6  0x40204b4b in fgets_unlocked () from /lib/libc.so.6
#7  0x486bd008 in ?? ()
#8  0x0fbb8fff in ?? ()
#9  0x0000000a in ?? ()
#10 0x00000001 in ?? ()
(gdb)


My httpd.conf has about 20 virtualhosts and almost everything else is the defaults.

There is nothing unusual about any of the virtualhost definitions. All my sites use php. I also have squirrelmail, but the problem still occurs even when no one has been using squirrelmail. Eg, I just killed all the processes now, restarted, and the problem was back within 15 minutes.

Here is my /etc/apache/modules.conf:
LoadModule config_log_module /usr/lib/apache/1.3/mod_log_config.so
LoadModule mime_magic_module /usr/lib/apache/1.3/mod_mime_magic.so
LoadModule mime_module /usr/lib/apache/1.3/mod_mime.so
LoadModule negotiation_module /usr/lib/apache/1.3/mod_negotiation.so
LoadModule status_module /usr/lib/apache/1.3/mod_status.so
LoadModule autoindex_module /usr/lib/apache/1.3/mod_autoindex.so
LoadModule dir_module /usr/lib/apache/1.3/mod_dir.so
LoadModule cgi_module /usr/lib/apache/1.3/mod_cgi.so
LoadModule action_module /usr/lib/apache/1.3/mod_actions.so
LoadModule userdir_module /usr/lib/apache/1.3/mod_userdir.so
LoadModule alias_module /usr/lib/apache/1.3/mod_alias.so
LoadModule rewrite_module /usr/lib/apache/1.3/mod_rewrite.so
LoadModule access_module /usr/lib/apache/1.3/mod_access.so
LoadModule auth_module /usr/lib/apache/1.3/mod_auth.so
LoadModule expires_module /usr/lib/apache/1.3/mod_expires.so
LoadModule unique_id_module /usr/lib/apache/1.3/mod_unique_id.so
LoadModule setenvif_module /usr/lib/apache/1.3/mod_setenvif.so
LoadModule php4_module /usr/lib/apache/1.3/libphp4.so


Fabio Massimo Di Nitto wrote:

Hi Daniel,
	can you try to disable mod_jk and see if the problem is still
there??

thanks
fabio

On Wed, 15 Oct 2003, Daniel Pocock wrote:

Package: apache
Version: 1.3.28-4
Severity: normal


Output from top:

5375 www-data  16   0  254m 254m 3852 R  4.0 68.4   0:43.79 apache

There is a runaway apache process.  I do /etc/init.d/apache restart and
it comes back again within minutes.

I also notice dmesg giving messages like the following:
Out of Memory: Killed process 4519 (java).
Out of Memory: Killed process 5382 (apache).

I am using mod_jk

I have just replaced my server recently and now I run apache within
user-mode-linux, I don't know if that makes any difference.

I have put the following in /etc/apache/httpd.conf:
LogLevel debug

but I don't seem to get any extra debugging output in my error.log
files, so I'm not sure how to start diagnosing this problem further


-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux th3 2.4.22-5um #1 Fri Sep 19 21:36:03 EDT 2003 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages apache depends on:
ii  apache-common                 1.3.28-4   Support files for all Apache webse
ii  debconf                       1.3.14     Debian configuration management sy
ii  dpkg                          1.10.15    Package maintenance system for Deb
ii  libc6                         2.3.2-8    GNU C Library: Shared libraries an
ii  libdb4.1                      4.1.25-6   Berkeley v4.1 Database Libraries [
ii  libexpat1                     1.95.6-6   XML parsing C library - runtime li
ii  libmagic1                     4.04-1     File type determination library us
ii  logrotate                     3.6.5-2    Log rotation utility
ii  mime-support                  3.23-1     MIME files 'mime.types' & 'mailcap
ii  perl [perl5]                  5.8.1-2    Larry Wall's Practical Extraction

-- debconf information:
 apache/server-admin: webmaster@trendhosting.net
* apache/enable-suexec: false
 apache/server-port: 80
 apache/server-name: localhost
 apache/init: true
 apache/document-root: /home/www









Reply to: