Skip to content

OmniFish-EE/glassfish-grizzly-virtual-threads-pool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Virtual threads GlassFish thread pool

An implementation of a GlassFish thread pool that schedules tasks on virtual threads instead of platform threads.

Build

mvn install

(requires Java 21+ to build)

Usage

  1. After building, install target/grizzly-virtual-threads-pool.jar into an existing GlassFish domain as a library. Either copy it to glassfish/domains/domain1/lib or install it via the asadmin add-library command
  2. Run GlassFish 7 on Java 21
  3. Edit http-thread-pool thread pool and set the Class Name to: org.glassfish.grizzlyintegration.virtualthreads.VirtualThreadsExecutorService

image

Notes

When the above steps are performed with an older Java version than 21, all will work, but the thread pool will fall back to the default mechanism, which uses platform threads.

About

Virtual threads pool for GlassFish thread pools

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages