Discussion:
[jboss-user] [Performance Tuning] - Increase the "Maximum number of threads created"
pepe canvas
2012-05-17 14:44:06 UTC
Permalink
pepe canvas [https://community.jboss.org/people/pcanvas] created the discussion

"Increase the "Maximum number of threads created""

To view the discussion, visit: https://community.jboss.org/message/736251#736251

--------------------------------------------------------------
Hi everybody,

I am running *jboss-as-7.1.0.CR1b* on Linux and when I try to benckmark the performance creating 200 (http requests) connections at the same time I get this exception:

INFO  [org.apache.tomcat.util.net.AprEndpoint] (http--0.0.0.0-8080-Acceptor) Maximum number of threads (128) created for connector with address /0.0.0.0 and port 8080

I am getting stuck trying to solve it searching about it on google and changing parameters in different configuration files, but no luck.

Could you help me?
Thanks in advance !
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/736251#736251]

Start a new discussion in Performance Tuning at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2078]
Filippe Spolti
2012-11-05 18:21:48 UTC
Permalink
Filippe Spolti [https://community.jboss.org/people/spolti] created the discussion

"Re: Increase the "Maximum number of threads created""

To view the discussion, visit: https://community.jboss.org/message/774873#774873

--------------------------------------------------------------
Hi bro.

Include the maxthred parameter in the jbossweb.sar/server.xml (jboss 5+)

like bellow:
|   | <!-- A HTTP/1.1 Connector on port 8080 --> |
|   | <Connector protocol="HTTP/1.1" port="8080" address="${jboss.bind.address}" |
|            | connectionTimeout="20000" redirectPort="8443" *maxThreads="300"* /> |


Rgards!
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/774873#774873]

Start a new discussion in Performance Tuning at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2078]
erasmo2 marciano2
2012-11-06 09:30:24 UTC
Permalink
erasmo2 marciano2 [https://community.jboss.org/people/erasmomarciano] created the discussion

"Re: Increase the "Maximum number of threads created""

To view the discussion, visit: https://community.jboss.org/message/774991#774991

--------------------------------------------------------------
In Jboss 7.x there ins't more jbossweb.sar/server.xml.

You have do this modify in the file standalone.xml or in the file the yoour start (-server-config=)



| | <!-- A HTTP/1.1 Connector on port 8080 --> |
| | <Connector protocol="HTTP/1.1" port="8080" address="${jboss.bind.address}" |
|           | connectionTimeout="20000" redirectPort="8443" *maxThreads="300"* /> |
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/774991#774991]

Start a new discussion in Performance Tuning at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2078]
jaz v
2013-04-17 20:24:15 UTC
Permalink
jaz v [https://community.jboss.org/people/leysmi] created the discussion

"Re: Increase the "Maximum number of threads created""

To view the discussion, visit: https://community.jboss.org/message/808923#808923

--------------------------------------------------------------
If  i place this in my standalone.xml I get an error when starting the server.  Does this need to go under a particular place in standalone.xml? under a subsystem perhaps?  I really just want to increase the connectionTimeout from, what i believe is the defaul,t 60 seconds to 120 seconds.  Would you happen know how to do this?

| | <!-- A HTTP/1.1 Connector on port 8080 --> |
| | <Connector protocol="HTTP/1.1" port="8080" address="${jboss.bind.address}" |
|           | connectionTimeout="20000" redirectPort="8443" *maxThreads="300"* /> |
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/808923#808923]

Start a new discussion in Performance Tuning at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2078]
Radoslav Husar
2013-04-26 11:29:57 UTC
Permalink
Radoslav Husar [https://community.jboss.org/people/rhusar] created the discussion

"Re: Increase the "Maximum number of threads created""

To view the discussion, visit: https://community.jboss.org/message/810538#810538

--------------------------------------------------------------
What you posted is pre-AS 7 configuration which uses native configuration format (ie. of JBoss Web / Tomcat). See https://community.jboss.org/message/775021#775021#775021 https://community.jboss.org/message/775021#775021 for how to do this on AS7.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/810538#810538]

Start a new discussion in Performance Tuning at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2078]
Wolf-Dieter Fink
2012-11-06 10:38:22 UTC
Permalink
Wolf-Dieter Fink [https://community.jboss.org/people/wdfink] created the discussion

"Re: Increase the "Maximum number of threads created""

To view the discussion, visit: https://community.jboss.org/message/775013#775013

--------------------------------------------------------------
The configuration is the <subsystem xmlns="urn:jboss:domain:web:1.2" ...
but I did not found properties for connectionTimeout, maxThreads or thread-pools within the schema (docs/schema/jboss-as-web*)
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/775013#775013]

Start a new discussion in Performance Tuning at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2078]
erasmo2 marciano2
2012-11-07 10:04:05 UTC
Permalink
erasmo2 marciano2 [https://community.jboss.org/people/erasmomarciano] created the discussion

"Re: Increase the "Maximum number of threads created""

To view the discussion, visit: https://community.jboss.org/message/775298#775298

--------------------------------------------------------------
Sorry

You can configure also this tag

01.<subsystem xmlns="urn:jboss:domain:threads:1.0">
02.<bounded-queue-thread-pool name="http-executor"
03.blocking="true">
04.<core-threads count="10" per-cpu="20" />
05.<queue-length count="10" per-cpu="20" />
06.<max-threads count="10" per-cpu="20" />
07.<keepalive-time time="10" unit="seconds" />
08.</bounded-queue-thread-pool>
09.</subsystem


If you are  increasing the thread count too much, you will:
•    Consume a good chunk of memory
•    Your system will spend too much time-context switching
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/775298#775298]

Start a new discussion in Performance Tuning at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2078]
Kathy Zhu
2013-01-11 09:34:16 UTC
Permalink
Kathy Zhu [https://community.jboss.org/people/kazoo] created the discussion

"Re: Increase the "Maximum number of threads created""

To view the discussion, visit: https://community.jboss.org/message/790359#790359

--------------------------------------------------------------
My setting is as below:

<connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http" *max-connections="200*">
<subsystem xmlns="urn:jboss:domain:threads:1.1"/>

What is the max threads allocated for the http connector?
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/790359#790359]

Start a new discussion in Performance Tuning at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2078]
Radoslav Husar
2013-01-24 18:14:42 UTC
Permalink
This post might be inappropriate. Click to display it.
Radoslav Husar
2012-11-06 10:49:49 UTC
Permalink
Radoslav Husar [https://community.jboss.org/people/rhusar] created the discussion

"Re: Increase the "Maximum number of threads created""

To view the discussion, visit: https://community.jboss.org/message/775021#775021

--------------------------------------------------------------
            <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http" max-connections="10000"/>
However the complete way with more options is to add an executor which is a little more work.

Rado
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/775021#775021]

Start a new discussion in Performance Tuning at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2078]
Loading...