Nahodne zabijeni procesu apache

Martin Stachura martin.stachura at osu.cz
Mon Apr 11 18:02:32 CEST 2022


Dobrý den,

stava se mi, ze na serverech s FreeBSD 12.3 mi system zabiji procesy 
apache a apache je neumi znovu vytvorit. Parkrat se mi stalo, ze system 
postupne zabil vsechny procesy apache (hlavni proces pod root nezabil) a 
tedy apache takovy bezel, ale nebyl zadny proces co by mohl 
vzit/zpracovat pozadavky a web byl nedostupny. V logu pri zapnutem debug 
mi to zadnou poradnou hlasku nevygeneruje. Nestava se mi to pouze na 
jednom serveru, ale na vsech serverech pod FreeBSD s Apache, jenom mi to 
pripadne vypisuje jiny kill kod (10 a 11). Muzete me prosim navest, jak 
muzu debugovat, nalezt pricinu a vyresit tyto problemy. Dekuji.

Log z dmesg:
Apr 11 14:47:58 pat kernel: pid 11480 (httpd), jid 0, uid 80: exited on 
signal 11

Log z apache:

[Mon Apr 11 14:47:58.285006 2022] [core:notice] [pid 37255:tid 
34370969600] AH00052: child pid 11480 exit signal Segmentation fault (11)

Konfigurace:
Server version: Apache/2.4.52 (FreeBSD)
Server built:   unknown
Server's Module Magic Number: 20120211:121
Server loaded:  APR 1.7.0, APR-UTIL 1.6.1
Compiled using: APR 1.7.0, APR-UTIL 1.6.1
Architecture:   64-bit
Server MPM:     event
   threaded:     yes (fixed thread count)
     forked:     yes (variable process count)
Server compiled with....
  -D APR_HAS_SENDFILE
  -D APR_HAS_MMAP
  -D APR_HAVE_IPV6 (IPv4-mapped addresses disabled)
  -D APR_USE_FLOCK_SERIALIZE
  -D APR_USE_PTHREAD_SERIALIZE
  -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
  -D APR_HAS_OTHER_CHILD
  -D AP_HAVE_RELIABLE_PIPED_LOGS
  -D DYNAMIC_MODULE_LIMIT=256
  -D HTTPD_ROOT="/usr/local"
  -D SUEXEC_BIN="/usr/local/bin/suexec"
  -D DEFAULT_PIDLOG="/var/run/httpd.pid"
  -D DEFAULT_SCOREBOARD="/var/run/apache_runtime_status"
  -D DEFAULT_ERRORLOG="/var/log/httpd-error.log"
  -D AP_TYPES_CONFIG_FILE="etc/apache24/mime.types"
  -D SERVER_CONFIG_FILE="etc/apache24/httpd.conf"

<IfModule mpm_event_module>
     StartServers             8
     MinSpareThreads        120
     MaxSpareThreads        420
#    ThreadsPerChild         25
#    MaxRequestWorkers      400
     ThreadsPerChild         35
     MaxRequestWorkers      1050
     MaxConnectionsPerChild   0
     ServerLimit             30
</IfModule>

Loaded Modules:
  core_module (static)
  so_module (static)
  http_module (static)
  authn_core_module (shared)
  authz_host_module (shared)
  authz_core_module (shared)
  authnz_ldap_module (shared)
  socache_shmcb_module (shared)
  mime_module (shared)
  ldap_module (shared)
  log_config_module (shared)
  logio_module (shared)
  headers_module (shared)
  ssl_module (shared)
  mpm_event_module (shared)
  cgi_module (shared)
  unixd_module (shared)
  status_module (shared)
  autoindex_module (shared)
  dir_module (shared)
  info_module (shared)
  vhost_alias_module (shared)
  alias_module (shared)
  rewrite_module (shared)
  log_forensic_module (shared)
  unique_id_module (shared)
  php7_module (shared)


More information about the Users-l mailing list