divya chekuri
divya chekuri

Reputation: 337

jboss 7, how to set thread pool size for http connector

In jboss7, how to set the thread pool size for the http and https connectors. I am using standalone.xml for setting changes. Can anyone help me.

Thanks in Advance.

Upvotes: 1

Views: 29652

Answers (4)

bimal srivastava
bimal srivastava

Reputation: 41

You can configure it like this using maxThreads parameter:

<subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" native="false" >

<connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http" maxThreads="300" />

API documentation from jBoss site:

maxThread:(int) The max number of active threads in this pool, default is 200

Upvotes: 0

user613114
user613114

Reputation: 2821

Define new thread factory and thread pool executor in your standalone xml. Refer to following site for more details: https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/6.3/html/Administration_and_Configuration_Guide/sect-Connector_Configuration.html

I had similar issue, Refer to my SO question and answer.

Upvotes: 0

rbaxter
rbaxter

Reputation: 41

You can add the max-connections attribute in standalone.xml like this:

[connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http" max-connections="1000"/]

Upvotes: 4

Related Questions