How To Change GlassFish Default Thread Pool Configuration
(Doc ID 2301223.1)
Last updated on APRIL 26, 2023
Applies to:
Oracle GlassFish Server - Version 3.1.2 to 3.1.2 [Release 3.1]Information in this document applies to any platform.
Goal
When a GlassFish domain is created only the DAS configuration (server-config) is generated. Are you referring to creation of new configurations as opposed to domains? If so, modify the template "default-config" which has the following defined:
<network-listeners>
<network-listener port="${HTTP_LISTENER_PORT}" protocol="http-listener-1" transport="tcp" name="http-listener-1" thread-pool="http-thread-pool"></network-listener>
<network-listener port="${HTTP_SSL_LISTENER_PORT}" protocol="http-listener-2" transport="tcp" name="http-listener-2" thread-pool="http-thread-pool"></network-listener>
<network-listener port="${ASADMIN_LISTENER_PORT}" protocol="pu-protocol" transport="tcp" name="admin-listener" thread-pool="admin-thread-pool"></network-listener>
</network-listeners>
<thread-pools>
<thread-pool name="http-thread-pool"></thread-pool>
<thread-pool max-thread-pool-size="200" name="thread-pool-1"></thread-pool>
<thread-pool name="admin-thread-pool" max-thread-pool-size="50" max-queue-size="256"></thread-pool>
</thread-pools>
For example, change http-listener-1 and http-listener-2 to use thread-pool-1 such as:
<network-listener port="${HTTP_LISTENER_PORT}" protocol="http-listener-1" transport="tcp" name="http-listener-1" thread-pool="thread-pool-1"></network-listener>
<network-listener port="${HTTP_SSL_LISTENER_PORT}" protocol="http-listener-2" transport="tcp" name="http-listener-2" thread-pool="thread-pool-1"></network-listener>
Every new config that gets created will then use these new settings.
Solution
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Goal |
Solution |
References |