karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Achim Nierbeck <bcanh...@googlemail.com>
Subject Re: Using config admin to configure jetty (or tomcat?)
Date Wed, 19 Aug 2015 20:07:05 GMT
Hi Benson,

I'm not sure I follow, but on the karaf manual page is no such
configuration.
With Pax-Web Jetty it's possible to have also the std. jetty.xml
configurations.

since PAXWEB-868 it's also possible to use configurations via config admin.

regards, Achim


2015-08-19 21:58 GMT+02:00 Benson Margulies <benson@basistech.com>:

> So, there's
> https://karaf.apache.org/manual/latest/users-guide/webcontainer.html,
> which shows a jetty.xml with an 'acceptors' parameter, not a min and
> max threads. Is that page obsolete, or more up to date than the page
> that led me towards:
>
> <Configure id="Server" class="org.eclipse.jetty.server.Server">
>     <!-- How many threads do we want? How do we want to control load
> on an instance? -->
>     <Get name="ThreadPool">
>         <Set name="minThreads" type="int">10</Set>
>         <Set name="maxThreads" type="int">200</Set>
>         <Set name="idleTimeout" type="int">60000</Set>
>         <Set name="detailedDump">false</Set>
>     </Get>
> </Configure>
>
>
> On Tue, Aug 18, 2015 at 3:06 PM, Achim Nierbeck <bcanhome@googlemail.com>
> wrote:
> > no, it will work for both servers, it's just undertow that works
> > differently.
> >
> > regards, Achim
> >
> > 2015-08-18 21:03 GMT+02:00 Benson Margulies <benson@basistech.com>:
> >>
> >> OK, so if I pull in tomcat, I can configure the thread pool size with
> >> config admin, but if I stick to Jetty, I am stuck to XML.
> >>
> >>
> >> On Tue, Aug 18, 2015 at 2:52 PM, Achim Nierbeck <
> bcanhome@googlemail.com>
> >> wrote:
> >> > Hi Benson,
> >> >
> >> > in the manual [1] you can see the configurable properties.
> >> > And we also had some improvement for configuring threads for the http
> >> > service with 6 an 4.2 [2].
> >> >
> >> > regards, Achim
> >> >
> >> > [1] -
> >> >
> >> >
> http://ops4j.github.io/pax/web/SNAPSHOT/index.html#Configuration-ConfigurationviaOSGiConfigurationAdminService
> >> > [2] - https://ops4j1.jira.com/browse/PAXWEB-868
> >> >
> >> > 2015-08-18 19:06 GMT+02:00 Benson Margulies <benson@basistech.com>:
> >> >>
> >> >> I am wishing to use config admin, rather than messing around with
> >> >> entire XML files in the file system or in bundles, to configure the
> >> >> number of worker threads for the HTTP service. Is there a way?
> >> >
> >> >
> >> >
> >> >
> >> > --
> >> >
> >> > Apache Member
> >> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> >> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> Committer
> >> > &
> >> > Project Lead
> >> > blog <http://notizblog.nierbeck.de/>
> >> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
> >> >
> >> > Software Architect / Project Manager / Scrum Master
> >> >
> >
> >
> >
> >
> > --
> >
> > Apache Member
> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer
> &
> > Project Lead
> > blog <http://notizblog.nierbeck.de/>
> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
> >
> > Software Architect / Project Manager / Scrum Master
> >
>



-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master

Mime
View raw message