Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 163162 - /etc/init.d/apache2 restart does not give ample time to shutdown children before restarting
Summary: /etc/init.d/apache2 restart does not give ample time to shutdown children bef...
Status: RESOLVED DUPLICATE of bug 110556
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High minor (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-22 04:12 UTC by Michael Lee Yohe
Modified: 2007-01-22 07:24 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Lee Yohe 2007-01-22 04:12:44 UTC
Name        : apache
Version     : 2.0.58
Release     : 2                                   Slot: 2
Install date: Tue Sep 12 12:33:59 2006      Build Host: your
Group       : net-www                          License: Apache-2.0
Size        : 3013804
Packager    : kloeri
URL         : http://httpd.apache.org/
Summary     : The Apache Web Server

USE flags: apache2 mpm-worker ssl threads

I have Apache 2 providing web application services (using PHP) and the processes get large due to the amount of data that the scripts maintain.  This apparently causing the Apache's processes to take their merry time in shutting down.

The problem is this (paraphrase):

# /etc/init.d/apache2 restart
 * Stopping apache2 ...                                                   [ ok ]
(apache is already running)
 * Starting apache2 ...                                                   [ !! ]

This could be implemented as a simple fix to /etc/conf.d/apache by specifying a DELAY_FOR_RESTART=5, where the script would sleep 5 seconds before trying to restart the service.  Otherwise, a zap, then start is necessary.  It doesn't happen all the time (when the processes aren't so large), but on this AMD64 system, Apache processes can grow to about 400M RSS with about six or so hanging around in memory.

Reproducible: Sometimes

Steps to Reproduce:
1. see description
2.
3.

Actual Results:  
see description

Expected Results:  
see description

Portage 2.1.1-r2 (default-linux/amd64/2006.0, gcc-4.1.1, glibc-2.4-r4, 2.6.18-gentoo-r2-EM64T x86_64)
=================================================================
System uname: 2.6.18-gentoo-r2-EM64T x86_64 Intel(R) Xeon(TM) CPU 2.80GHz
Gentoo Base System version 1.12.6
Last Sync: Sun, 21 Jan 2007 11:20:01 +0000
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=nocona -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg ccache confcache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="amd64 7zip acpi adns alsa_cards_ali5451 alsa_cards_als4000 alsa_cards_atiixp alsa_cards_atiixp-modem alsa_cards_bt87x alsa_cards_ca0106 alsa_cards_cmipci alsa_cards_emu10k1x alsa_cards_ens1370 alsa_cards_ens1371 alsa_cards_es1938 alsa_cards_es1968 alsa_cards_fm801 alsa_cards_hda-intel alsa_cards_intel8x0 alsa_cards_intel8x0m alsa_cards_maestro3 alsa_cards_trident alsa_cards_usb-audio alsa_cards_via82xx alsa_cards_via82xx-modem alsa_cards_ymfpci alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol apache2 apm async automount bash-completion berkdb bzip2 ccache cdr clamav clearpasswd cli cracklib crypt css curl dio dlloader dri dvd dvdr eds elibc_glibc emboss encode expat foomaticdb ftp fuse gd gif glibc-omitfp gpm hash hddtemp high-ints iconv idea imagemagick imap innodb inode input_devices_evdev input_devices_keyboard input_devices_mouse ipfilter jfs john kernel_linux lcd_devices_bayrad lcd_devices_cfontz lcd_devices_cfontz633 lcd_devices_glk lcd_devices_hd44780 lcd_devices_lb216 lcd_devices_lcdm001 lcd_devices_mtxorb lcd_devices_ncurses lcd_devices_text logrotate logwatch lzo lzw lzw-tiff mbox mhash milter mime mmap mpm-worker multiuser mysql ncurses nfs nls nptl nptlonly ntfs office pam pam_chroot pcntl pcre perl perlsuid php pop3d posix procmail python qt3 qt4 readline reflection reiser4 reiserfs rpc samba sasl scp sendmail sensord session sftp sharedmem smp sockets spamassassin spell spl sse-filters ssl suidcheck syslog szip tcpd threads tiff tomsfastmath unzip urandom usb userland_GNU video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fbdev video_cards_glint video_cards_i128 video_cards_i810 video_cards_mga video_cards_neomagic video_cards_nv video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo xfs xmlrpc xsl xtended zip zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-01-22 07:24:55 UTC

*** This bug has been marked as a duplicate of bug 110556 ***