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 2002/11/19 13:55:01 UTC

DO NOT REPLY [Bug 14676] New: - Using perchild with name based virtual host is unstable

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14676>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14676

Using perchild with name based virtual host is unstable

           Summary: Using perchild with name based virtual host is unstable
           Product: Apache httpd-2.0
           Version: 2.0.43
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: perchild
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: admin@ter-net.com


Linux kernel 2.4.19
Situation:
   httpd kompiled with keys: --with-mpm=perchild --enable-mods-shared=all
 
at the httpd.conf defined (in additional to default):
<IfModule perchild.c>
NumServers           5
StartThreads         10
MinSpareThreads      5
MaxSpareThreads     10
MaxThreadsPerChild  2000
MaxRequestsPerChild 1000
ChildPerUserID 1000 100 2
ChildPerUserID 1001 100 2
</IfModule>

NameVirtualHost *

<VirtualHost *>
    AssignUserId 1000 100
    ServerAdmin webmaster@dummy-host.example.com
    DocumentRoot /var/home/boris/www/
    ServerName boris.hosts
    ErrorLog logs/dummy-host.example.com-error_log
    CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>

<VirtualHost *>
    AssignUserId 1001 100
    ServerAdmin webmaster@dummy-host.example.com
    DocumentRoot /var/home/soloma/www/
    ServerName soloma.hosts
    ErrorLog logs/dummy-host.example.com-error_log
    CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>


After apachectl start appears a number of httpd processes:
$ps aux
root       136  /usr/local/apache2/bin/httpd -k start
nobody     143  /usr/local/apache2/bin/httpd -k start
boris      144  /usr/local/apache2/bin/httpd -k start
boris      145  /usr/local/apache2/bin/httpd -k start
boris      146  /usr/local/apache2/bin/httpd -k start
soloma     147  /usr/local/apache2/bin/httpd -k start
soloma     148  /usr/local/apache2/bin/httpd -k start
boris      149  /usr/local/apache2/bin/httpd -k start
boris      150  /usr/local/apache2/bin/httpd -k start
soloma     151  /usr/local/apache2/bin/httpd -k start
soloma     152  /usr/local/apache2/bin/httpd -k start
soloma     153  /usr/local/apache2/bin/httpd -k start
boris      154  /usr/local/apache2/bin/httpd -k start
boris      155  /usr/local/apache2/bin/httpd -k start
soloma     156  /usr/local/apache2/bin/httpd -k start
soloma     157  /usr/local/apache2/bin/httpd -k start
boris      158  /usr/local/apache2/bin/httpd -k start
boris      159  /usr/local/apache2/bin/httpd -k start
soloma     160  /usr/local/apache2/bin/httpd -k start
soloma     161  /usr/local/apache2/bin/httpd -k start
boris      162  /usr/local/apache2/bin/httpd -k start
boris      163  /usr/local/apache2/bin/httpd -k start
soloma     164  /usr/local/apache2/bin/httpd -k start
soloma     165  /usr/local/apache2/bin/httpd -k start
boris      166  /usr/local/apache2/bin/httpd -k start
soloma     167  /usr/local/apache2/bin/httpd -k start

(boris has uid 1000, soloma 1001).
 
After that virtual hosts soloma.hosts and boris.hosts works unstable:
Some times (but rarely) both hosts work;
Some times work only one host, second host not response to client and nothing
writes to the logs.

If I remove one host from httpd.conf, the second host work properly.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org