Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F286910D49 for ; Tue, 27 May 2014 11:34:42 +0000 (UTC) Received: (qmail 61365 invoked by uid 500); 27 May 2014 11:34:40 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 61335 invoked by uid 500); 27 May 2014 11:34:40 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 61327 invoked by uid 99); 27 May 2014 11:34:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 May 2014 11:34:40 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of vadim.blumkin@gmail.com designates 209.85.192.51 as permitted sender) Received: from [209.85.192.51] (HELO mail-qg0-f51.google.com) (209.85.192.51) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 May 2014 11:34:36 +0000 Received: by mail-qg0-f51.google.com with SMTP id q107so13680359qgd.10 for ; Tue, 27 May 2014 04:34:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=HT6G5mbGsRT9lPcaAGiNAYLzJDMKacRD90DFp44kNIQ=; b=daRS9L6oELb+ot/dev+oF7rAW5X3aCzD8/UNvNPZta7NzbcOK3/tV+8sXJHF5eAl6K Vb74qaTHYmqq3yy+UEZZiEiNXY2hrQjeUdW+yMJsAUMdCAOhOwdfshhAQ6y4vjaTdNr9 YYPOnbJ/tHAf78SBlaHGrelSfrC1q/BzIpPssCawtnA6tfWqgtm8y4v79xlm3Uk+yJJv dEz8os4RsCF6zR0LtnqBjcwv+M2M2O+qkRJqOqhOI/bZ7ftEhbZ6npmhFB8X2fWzJt6d AyNQLqGjlGKBIV+uff7eD9T5zkm2YOBcO0pef+Yo+Xgwwe08iSdivrWXBbVP2gA1sTKf yh7A== MIME-Version: 1.0 X-Received: by 10.140.44.34 with SMTP id f31mr39141353qga.73.1401190452746; Tue, 27 May 2014 04:34:12 -0700 (PDT) Received: by 10.140.93.228 with HTTP; Tue, 27 May 2014 04:34:12 -0700 (PDT) Date: Tue, 27 May 2014 14:34:12 +0300 Message-ID: From: Vadim Blumkin To: users@httpd.apache.org Content-Type: multipart/alternative; boundary=001a1139fdda32f09904fa6013ee X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] httpd apache- How to deal with large number of threads(multiple connections) --001a1139fdda32f09904fa6013ee Content-Type: text/plain; charset=UTF-8 Hello all, First of all , this is my first question in this forum ,so if I am doing something wrong ,please let me know . As part of my job, I started using Apache 2.4.9 version on Windows Platforms and one of our requirement is to support Signal-R and WebSockets multiple connections. Please correct me if I am wrong , but when using WS or SignalR, Apache Server opens a new thread per single connection , means If I have 3000 clients connected to Apache , I need to create 3000 threads in the configuration files: LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so ThreadLimit 6000 ThreadsPerChild 3000 My question is : what should be the correct configuration if my server need to support , for example, 6000 clients connected simultaneously? Because , when I am setting ThreadsPerChild=6000 , the *httpd* process crashed immediately . Error that I am getting from apache log: [mpm_winnt:crit] [pid 13932:tid 520] (OS 8)Unrecognized Win32 error code 8: AH00355: Child: CreateThread failed. Unable to create all worker threads. Created 2992 of the 6000 threads requested with the ThreadsPerChild confiuration directive. Is it possible to support such number of threads ? Or is it possible to increase the number of threads as needed during the run time ? Some more technical information: Apache Version :2.4.9 (32 bit) OS: Windows Server 2008R2 (64 bit) Using mpm_winnt module. I very appreciate any help and feedback . Thanks and regards, Vadim --001a1139fdda32f09904fa6013ee Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Hello all,

=C2=A0

First of all , this is my first question in this for= um ,so if I am doing something wrong ,please let me know .

=C2=A0

As part of my job, I started using Apache 2.4.9 vers= ion on Windows Platforms and one of our requirement is to support Signal-R and Web= Sockets multiple connections.

=C2=A0

Please correct me if I am wrong , but when using WS = or SignalR, Apache Server opens a new thread per single connection , means If = I have 3000 clients connected to Apache , I need to create 3000 threads in th= e configuration files:

=C2=A0

LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so

ThreadLimit 6000

ThreadsPerChild 3000

=C2=A0

My question is : what should be the correct configur= ation if my server need to support , for example, 6000 clients connected simultaneou= sly? Because , when I am setting ThreadsPerChild=3D6000 , the httpd proce= ss crashed immediately .

=C2=A0

Error that I am getting from apache log:

[mpm_winnt:crit] [pid 1393= 2:tid 520] (OS 8)Unrecognized Win32 error code 8: AH00355: Child: CreateThread failed. Unable to create all worker threads. Created 2992 of the 6000 threads reque= sted with the ThreadsPerChild confiuration directive.

=C2=A0

Is it possible to support such number of threads ? O= r is it possible to increase the number of threads as needed during the run time ?<= /p>

=C2=A0

Some more technical information:

=C2=A0

Apache Version :2.4.9 (32 bit)

OS: Windows Server 2008R2 (64 bit)

Using mpm_winnt module.

=C2=A0

I=C2=A0 very appreciate any help and feedback .

=C2=A0

Thanks and regards,

Vadim

--001a1139fdda32f09904fa6013ee--