Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » How to define a server with a Threadpool in jetty.xml
How to define a server with a Threadpool in jetty.xml [message #1829993] Wed, 15 July 2020 11:33 Go to next message
Netta Steinberg is currently offline Netta SteinbergFriend
Messages: 2
Registered: July 2020
Junior Member
Hi all,
We are upgrading our Jetty version to 9.4.29.v20200521.
In out jetty.xml file we had the following definition:
<Configure id="Server" class="org.eclipse.jetty.server.Server">
<Set name="ThreadPool">
<New class="org.eclipse.jetty.util.thread.QueuedThreadPool">
<Set name="minThreads">10</Set>
<Set name="maxThreads">100</Set>
<Set name="detailedDump">false</Set>
</New>
</Set>
...

The setThreadPool is no longer a part of the API, so I thought I'll try to use server that get a ThreadPool as an argument in its constructor, which is available, according to the API https://www.eclipse.org/jetty/javadoc/9.4.29.v20200521/org/eclipse/jetty/server/Server.html#%3Cinit%3E(org.eclipse.jetty.util.thread.ThreadPool)
The problem is that the configure element can't have an <Arg> element - https://www.eclipse.org/jetty/documentation/current/reference-section.html#jetty-xml-configure

What can I do?
How can I "set" a threadpool in this case?

Thanks in advance.
Re: How to define a server with a Threadpool in jetty.xml [message #1829995 is a reply to message #1829993] Wed, 15 July 2020 13:02 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 31342
Registered: July 2009
Senior Member
It's probably better to ask on their jetty-users@eclipse.org mailing list:

https://www.eclipse.org/jetty/mailinglists.html


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: How to define a server with a Threadpool in jetty.xml [message #1829996 is a reply to message #1829995] Wed, 15 July 2020 13:04 Go to previous message
Netta Steinberg is currently offline Netta SteinbergFriend
Messages: 2
Registered: July 2020
Junior Member
Thanks.
Previous Topic:Run button and Run Configurations>Run
Next Topic:Exporting Plugin missing build property values
Goto Forum:
  


Current Time: Tue Aug 04 00:46:06 GMT 2020

Powered by FUDForum. Page generated in 0.03154 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top