All Downloads are FREE. Search and download functionalities are using the official Maven repository.

en.help.ref-threadpools.html Maven / Gradle / Ivy

The newest version!

Thread Pools

Use the Thread Pools page to configure thread pools.

Use thread pools to limit a service to a specific number of concurrent threads.

When you first install the GlassFish Server, two thread pools exist by default. The thread pool named http-thread-pool is configured for use by network listeners, while thread-pool-1 is configured for use by the ORB for RMI/IIOP requests. You may need to create a thread pool with different settings for use by particular kinds of applications and for particular hardware systems, or to tune the default thread pools for your needs.

The Java Virtual Machine (JVM) can support many threads of execution at once. To help performance, theGlassFish Server maintains one or more thread pools. It is possible to assign specific thread pools to specific services.

One thread pool can serve multiple services. Request threads handle user requests. When the server receives a request, it assigns the request to a free thread from the thread pool. The thread executes the client's requests and returns results. For example, if the request needs to use a system resource that is currently busy, the thread waits until that resource is free before allowing the request to use that resource.

Specify the minimum and maximum number of threads that are reserved for requests. The thread pool is dynamically adjusted between these two values. The minimum thread pool size that is specified signals the server to allocate at least that many threads in reserve for requests. That number is increased up to the maximum thread pool size that is specified.

Increasing the number of threads available to a process allows the process to respond to more requests simultaneously.

For each thread pool, the following information is provided.

Thread Pool ID

The name of the thread pool.

Max Thread Pool Size

The maximum number of threads in the thread pool.

Min Thread Pool Size

The minimum number of threads in the thread pool. These threads are created when the thread pool is instantiated.

Max Queue Size

The maximum number of messages that can be queued until threads are available to process them.

Idle Thread Timeout

The amount of time in seconds after which idle threads are removed from the pool.

The Thread Pools table also contains the following options.

New

Button to create a new thread pool.

Delete

Button to delete one or more selected thread pools.

Related Tasks
Related asadmin Commands
Copyright © 2005, 2011, Oracle and/or its affiliates. All rights reserved. Legal Notices




© 2015 - 2024 Weber Informatics LLC | Privacy Policy