Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FISH-8302 Describe Configuration of Virtual Threads in Concurrency Resources #551

Open
wants to merge 4 commits into
base: main-7
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ asadmin [asadmin-options] create-managed-executor-service [--help]
[--keepaliveseconds keepaliveseconds]
[--threadlifetimeseconds threadlifetimeseconds]
[--taskqueuecapacity taskqueuecapacity]
[--usevirtualthreads={false|true}]
[--description description]
[--property property]
[--target target]
Expand Down Expand Up @@ -74,6 +75,10 @@ Specifies the number of seconds that threads can remain in a thread pool before
The default value is 0, which means that threads are never purged.
`--taskqueuecapacity`::
Specifies the number of submitted tasks that can be stored in the task queue awaiting execution. The default value is 2147483647, which means that the task queue is essentially unbounded and can store any number of submitted tasks.
`--usevirtualthreads`::
If enabled, virtual threads will be used instead of the default thread pool. They provide a quick creation, minimal overhead and fast thread switching, but executed on a limited "carrying threads". Use virtual threads for tasks, which depend on external resources like database, microservices etc. Do not use them for long calculation. Available only on Java 21 and later.
+
The default value is `false`.
`--description`::
Descriptive details about the resource.
`--property`::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ asadmin [asadmin-options] create-managed-scheduled-executor-service [--help]
[--corepoolsize corepoolsize]
[--keepaliveseconds keepaliveseconds]
[--threadlifetimeseconds threadlifetimeseconds]
[--taskqueuecapacity taskqueuecapacity]
[--usevirtualthreads={false|true}]
[--description description]
[--property property]
[--target target]
Expand Down Expand Up @@ -68,6 +68,10 @@ The default value is 60.
Specifies the number of seconds that threads can remain in a thread pool before being purged, regardless of whether the number of threads is greater than `corepoolsize` or whether the threads are idle.
+
The default value is 0, which means that threads are never purged.
`--usevirtualthreads`::
If enabled, virtual threads will be used instead of the default thread pool. They provide a quick creation, minimal overhead and fast thread switching, but executed on a limited "carrying threads". Use virtual threads for tasks, which depend on external resources like database, microservices etc. Do not use them for long calculation. Available only on Java 21 and later.
+
The default value is `false`.
`--description`::
Descriptive details about the resource.
`--property`::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ asadmin [asadmin-options] create-managed-thread-factory [--help]
[--contextinfoenabled={false|true}]
[--contextinfo={Classloader|JNDI|Security|WorkArea}]
[--threadpriority threadpriority]
[--usevirtualthreads={false|true}]
[--description description]
[--property property]
[--target target]
Expand Down Expand Up @@ -50,6 +51,10 @@ All contexts are propagated by default.
Specifies the priority to assign to created threads.
+
The default value is 5.
`--usevirtualthreads`::
If enabled, virtual threads will be used instead of the default thread pool. They provide a quick creation, minimal overhead and fast thread switching, but executed on a limited "carrying threads". Use virtual threads for tasks, which depend on external resources like database, microservices etc. Do not use them for long calculation. Available only on Java 21 and later.
+
The default value is `false`.
`--description`::
Descriptive details about the resource.
`--property`::
Expand Down