17.5. Virtual Threads Support


Infinispan supports virtual threads, which can significantly improve application responsiveness and scalability under high concurrency. By default, they are enabled if you are running on JDK 21 or higher.

警告

On systems with JDK versions prior to 24 and low CPU counts (2 or less), Data Grid might experience thread pinning issues when using virtual threads. Thread pinning is a situation where virtual threads are unexpectedly bound to a limited number of OS threads, potentially leading to performance degradation or system freezes.

To work around this problem, virtual threads can be disabled as described in the procedure below, or the virtual thread scheduler parallelism may be increased with the Java option -Djdk.virtualThreadScheduler.parallelism=<value>. A common starting point for <value> on low-CPU systems is 4.

17.5.1. Disable Virtual Threads

Disables the virtual threads pool.

  1. Set the -Dorg.infinispan.threads.virtual=false option in the JAVA_OPTS environment variable before starting the Data Grid server.

    Alternatively, you can append this option directly to the command used to start the Data Grid server:

    bin/server.sh -Dorg.infinispan.threads.virtual=false
  2. Verify by checking the server logs. The following log entry should not be present:

    Virtual threads support enabled
Red Hat logoGithubredditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

Red Hat ドキュメントについて

Legal Notice

Theme

© 2026 Red Hat
トップに戻る