[undertow-dev] Undertow worker threads

Tomaz Cerar tcerar at redhat.com
Thu Jun 13 04:53:08 EDT 2013


Afaik we have replaced task-max-threads for io-threads as per dissucstion I
had with David.

Probably David can tell bit more.

Francsco, what are you after? Limiting the number of concurrent requests or
just threads processing requests?

As in undertow few threads can process lots of requests concurrently we do
not have 1:1 mapping on thread:request as jbossweb/tomcat did.

--
tomaz

> -----Original Message-----
> From: undertow-dev-bounces at lists.jboss.org [mailto:undertow-dev-
> bounces at lists.jboss.org] On Behalf Of Stuart Douglas
> Sent: Thursday, June 13, 2013 1:30 AM
> To: FRANCESCO MARCHIONI
> Cc: undertow-dev at lists.jboss.org
> Subject: Re: [undertow-dev] Undertow worker threads
> 
> You are after task-max-threads (we probably need a better name for this).
> 
> io-threads are just used for accepting and parsing HTTP requests, once the
> request is parsed it is handed off to the task threads to actually run the
> servlet request.
> 
> Stuart
> 
> FRANCESCO MARCHIONI wrote:
> > Dear Undertow devs,
> >
> > I'm running some test on the new undertow subsystem: in particular I
> 'm
> > trying to control the maximum threads available for serving http
> > requests (old Tomcat maxThread parameter).
> >
> > Is it correct to define the max threads allowed via the io-threads
> > attribute of the worker element as follows ?
> >
> > <subsystem xmlns="urn:jboss:domain:undertow:1.0">
> >
> > <http-listener name="default" socket-binding="http" worker="custom"
> />
> >
> > . . .
> >
> > </subsystem>
> >
> > <subsystem xmlns="urn:jboss:domain:io:1.0">
> >
> > <worker name="custom" io-threads="100" />
> >
> > <buffer-pool name="default" buffer-size="16384"
> > buffers-per-slice="128"/>
> >
> > </subsystem>
> >
> > Or should rather use the task-max-threads attribute instead ?
> >
> > Thanks!
> >
> > Francesco
> >
> > _______________________________________________
> > undertow-dev mailing list
> > undertow-dev at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/undertow-dev
> _______________________________________________
> undertow-dev mailing list
> undertow-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/undertow-dev



More information about the undertow-dev mailing list