You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Alexander Lazic <al...@none.at> on 2005/05/31 20:17:21 UTC

[users@httpd] Preferred MUTEX Settings for Apache 2.0 && Sol10-x86

Hi,

we have the following error with ~1000 concurrent Connection:

---
[Tue May 31 18:59:28 2005] [warn] (45)Deadlock situation \
detected/avoided: Failed to acquire global mutex lock

[Tue May 31 18:59:28 2005] [error] (45)Deadlock situation \
detected/avoided: Cannot open SSLSessionCache DBM file \
`/web/portal/logs/portal_scache' for writing (store)
---

Please can you tell me what the preferred mutex setup for sol10-x86 is,
thanks.

My Setup:

--- httpd configure
./configure --prefix=/web/apache --with-mpm=worker --enable-so \
--enable-rewrite --disable-userdir --disable-imap --disable-cgi \
--disable-cgid --disable-asis --enable-http --enable-ssl \
--enable-headers --enable-expires --enable-deflate \
--disable-charset-lite --enable-rule=SHARED_CORE CFLAGS='-DSHARED_CORE \
-DUSE_SSL' CPPFLAGS='-DSHARED_CORE -DUSE_SSL' --with-ssl=/usr/local/ssl \
---

--- openssl configure
./Configure solaris-x86-gcc
Configuring for solaris-x86-gcc
IsWindows=0
CC            =gcc
CFLAG         =-DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -O3 -fomit-frame-pointer -m486 -Wa
ll -DL_ENDIAN -DOPENSSL_NO_INLINE_ASM -DSHA1_ASM -DMD5_ASM -DRMD160_ASM
EX_LIBS       =-lsocket -lnsl -ldl

-
/usr/local/ssl/bin/openssl version -a
OpenSSL 0.9.7g 11 Apr 2005
built on: Fri May 27 15:39:08 CEST 2005
platform: solaris-x86-gcc
options:  bn(64,32) md2(int) rc4(idx,int) des(ptr,risc1,16,long) idea(int) blowfish(idx) 
compiler: gcc -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -O3 -fomit-frame-pointer -m486 -Wall -DL_ENDIAN -DOPENSSL_NO_INLINE_ASM -DSHA1_ASM -DMD5_ASM -DRMD160_ASM
OPENSSLDIR: "/usr/local/ssl"
---

---
httpd -V
Server version: Apache/2.0.54
Server built:   May 27 2005 15:46:28
Server's Module Magic Number: 20020903:9
Architecture:   32-bit
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/worker"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_FCNTL_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D SHARED_CORE
 -D HTTPD_ROOT="/web/apache"
 -D SUEXEC_BIN="/web/apache/bin/suexec"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"
---

Some parts from httpd.conf
---
.
.
<IfModule worker.c>
  StartServers         5
  ThreadLimit         200
  MaxClients          1152
  MinSpareThreads     200
  MaxSpareThreads     400
  ThreadsPerChild     192
  MaxRequestsPerChild  10000
</IfModule>
.
.
<IfModule mod_ssl.c>
  SSLSessionCache dbm:/web/portal/logs/portal_scache
  SSLPassPhraseDialog  builtin
  SSLSessionCacheTimeout  300
  SSLMutex  file:/web/portal/logs/portal_ssl_mutex
  SSLRandomSeed startup builtin
  SSLRandomSeed connect builtin
</IfModule>
.
.
---

---
/usr/sfw/bin/gcc --version
gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
---

uname -a
SunOS unknown 5.10 Generic i86pc i386 i86pc

Is an Sun-Opteron

al ;-)

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Preferred MUTEX Settings for Apache 2.0 && Sol10-x86

Posted by Alexander Lazic <al...@none.at>.
Hi,

On Die 31.05.2005 20:17, Alexander Lazic wrote:
>
>we have the following error with ~1000 concurrent Connection:
>
>[Tue May 31 18:59:28 2005] [warn] (45)Deadlock situation \
>detected/avoided: Failed to acquire global mutex lock
>
>[Tue May 31 18:59:28 2005] [error] (45)Deadlock situation \
>detected/avoided: Cannot open SSLSessionCache DBM file \
>`/web/portal/logs/portal_scache' for writing (store)
>
>Please can you tell me what the preferred mutex setup for sol10-x86 is,
>thanks.

I have know a answer to my own question:

# Errors AcceptMutex fcntl
# No Errors AcceptMutex pthread
# No Errors AcceptMutex flock
# No Errors AcceptMutex posixsem
# No Errors AcceptMutex sysvsem

Can anybody make another default for solaris10-x86, Thanx.

al ;-)

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org