ページの先頭行へ戻る
Interstage Application Server V13.0.0 GlassFish 設計・構築・運用ガイド
FUJITSU Software

10.1.12 スレッドプール

10.1.12.1 create-threadpoolサブコマンド

形式

create-threadpool [--target target] [--maxthreadpoolsize max_thread_pool_size] [--minthreadpoolsize min_thread_pool_size] [--idletimeout idle_thread_timeout_in_seconds] threadpool_id

機能説明

スレッドプールを作成します。
スレッドプールは、IIOPリクエストとリソースアダプタの処理実行に使用できます。複数のEJBアプリケーションとリソースアダプタは、スレッドプールを共有できます。

asadminコマンドの利用方法・注意事項については、「10.1 asadmin」も参照してください。

また共通オプションについては、「10.1.2 asadminコマンドの共通オプション」を参照してください。

オプション

オプション名

簡略名

説明

--target

なし

以下のいずれかを指定します。省略値は「server」です。

  • 設定名

  • GlassFish Serverクラスター名

  • DASのインスタンス名(server)

--maxthreadpoolsize

なし

スレッドプールサイズの最大値を指定します。(注)
省略値は「5」です。

--minthreadpoolsize

なし

スレッドプールサイズの最小値を指定します。
省略値は「2」です。

--idletimeout

なし

プール内のスレッドがアイドル状態のままでいられる最長時間(単位:秒)を指定します。
省略値は「900」(秒)です。

) 想定されるスレッド多重度の合計数以上の値を指定してください。

オペランド

オペランド名

省略

説明

threadpool_id

不可

スレッドプールのIDを指定します。

戻り値

0: 正常終了
1: 異常終了

注意事項

使用例

以下のように実行します。

C:\Interstage\glassfish5\glassfish\bin\asadmin create-threadpool --target Cluster001 --maxthreadpoolsize 100 --minthreadpoolsize 20 --idletimeout 600 priority-A
Command create-threadpool executed successfully.

/opt/FJSViaps/glassfish5/glassfish/bin/asadmin create-threadpool --target Cluster001 --maxthreadpoolsize 100 --minthreadpoolsize 20 --idletimeout 600 priority-A
Command create-threadpool executed successfully.

10.1.12.2 delete-threadpoolサブコマンド

形式

delete-threadpool [--target target] threadpool_id

機能説明

スレッドプールを削除します。

asadminコマンドの利用方法・注意事項については、「10.1 asadmin」も参照してください。

また共通オプションについては、「10.1.2 asadminコマンドの共通オプション」を参照してください。

オプション

オプション名

簡略名

説明

--target

なし

以下のいずれかを指定します。省略値は「server」です。

  • 設定名

  • GlassFish Serverクラスター名

  • DASのインスタンス名(server)

オペランド

オペランド名

省略

説明

threadpool_id

不可

スレッドプールのIDを指定します。

戻り値

0: 正常終了
1: 異常終了

注意事項

使用例

以下のように実行します。

C:\Interstage\glassfish5\glassfish\bin\asadmin delete-threadpool --target Cluster001 priority-A
Command delete-threadpool executed successfully.

/opt/FJSViaps/glassfish5/glassfish/bin/asadmin delete-threadpool --target Cluster001 priority-A
Command delete-threadpool executed successfully.

10.1.12.3 list-threadpoolsサブコマンド

形式

list-threadpools target

機能説明

スレッドプールの一覧を表示します。

asadminコマンドの利用方法・注意事項については、「10.1 asadmin」も参照してください。

また共通オプションについては、「10.1.2 asadminコマンドの共通オプション」を参照してください。

オペランド

オペランド名

省略

説明

target

不可

以下のいずれかを指定します。

  • 設定名

  • GlassFish Serverクラスター名

  • GlassFish Serverインスタンス名

  • DASのインスタンス名(server)

戻り値

0: 正常終了
1: 異常終了

使用例

以下のように実行します。

C:\Interstage\glassfish5\glassfish\bin\asadmin list-threadpools Cluster001
http-thread-pool
thread-pool-1
priority-A
Command list-threadpools executed successfully.

/opt/FJSViaps/glassfish5/glassfish/bin/asadmin list-threadpools Cluster001
http-thread-pool
thread-pool-1
priority-A
Command list-threadpools executed successfully.