jboss as 7 jvmメモリの調整
3121 ワード
最近市场部は力をあげて、私达のウェブサイトのアクセス量は比较的に大きい成长があって、予设のjvmが小さいため、ウェブサイトのアクセス速度が遅いことを招いて、今jbossにメモリをプラスして更に活発に行きましょう
Googleでは、この方面に関する資料はめったにありません.ここで皆さんに見せてあげましょう.公式ドキュメントで見つけたものです.
すでに2種類に分かれている
1.Managed Domain
クラスタモードの設定です
In a managed domain the JVM settings can be declared at different scopes: For a specific server group, for a host or for a particular server. If not declared, the settings are inherited from the parent scope. This allows you to customize or extend the JVM settings within every layer.
Let's take a look at the JVM declaration for a server group:
(Seedomain/configuration/domain.xml)
In this example the server group "main-server-group"declares a heap size of 64m and a maximum heap size of 512m. Any server that belongs to this group will inherit these settings. You can change these settings for the group as a whole, or a specific server or host:
(See domain/configuration/host.xml)
In this case, server-two, belongs to the main-server-group and inherits the JVM settings named default, but declares a lower maximum heap size.
2.Standalone Server
スタンドアロンでの設定です
For a standalone sever you have to pass in the JVM settings either as command line arguments when executing the $JBOSS_HOME/bin/standalone.sh script, or by declaring them in $JBOSS_HOME/bin/standalone.conf. (For Windows users, the script to execute is %JBOSS_HOME%/bin/standalone.bat while the JVM settings can be declared in %JBOSS_HOME%/bin/standalone.conf.bat.)
公式には詳しく書かれていて、簡単です.
Googleでは、この方面に関する資料はめったにありません.ここで皆さんに見せてあげましょう.公式ドキュメントで見つけたものです.
すでに2種類に分かれている
1.Managed Domain
クラスタモードの設定です
In a managed domain the JVM settings can be declared at different scopes: For a specific server group, for a host or for a particular server. If not declared, the settings are inherited from the parent scope. This allows you to customize or extend the JVM settings within every layer.
Let's take a look at the JVM declaration for a server group:
(Seedomain/configuration/domain.xml)
In this example the server group "main-server-group"declares a heap size of 64m and a maximum heap size of 512m. Any server that belongs to this group will inherit these settings. You can change these settings for the group as a whole, or a specific server or host:
(See domain/configuration/host.xml)
In this case, server-two, belongs to the main-server-group and inherits the JVM settings named default, but declares a lower maximum heap size.
[domain@localhost:9999 /] /host=local/server-config=server-two/jvm=default:read-resource
{
"outcome" => "success",
"result" => {
"heap-size" => "64m",
"max-heap-size" => "256m",
}
}
2.Standalone Server
スタンドアロンでの設定です
For a standalone sever you have to pass in the JVM settings either as command line arguments when executing the $JBOSS_HOME/bin/standalone.sh script, or by declaring them in $JBOSS_HOME/bin/standalone.conf. (For Windows users, the script to execute is %JBOSS_HOME%/bin/standalone.bat while the JVM settings can be declared in %JBOSS_HOME%/bin/standalone.conf.bat.)
公式には詳しく書かれていて、簡単です.