いくつかのパフォーマンス チューニングを試し、Jboss パフォーマンス チューニング ガイドに従っています。第 3 章を読んだので、Cached Connection Manager を無効にしたいと思います。しかし、その構成はserver.xmlにあると述べられています。server.xml がどこにも見つかりません。Windows 7 で jboss-eap-6.1 を使用しています。
チューニングガイドのテキストは次のとおりです。
設定は、ディレクトリ JBOSS_EAP_DIST/jboss-as/server//deploy/jbossweb.sar のファイル server.xml にあります。最小構成には JBoss Web が含まれていないことに注意してください。以下は、CachedConnectionManager が有効になっている server.xml からの抜粋です。
<!-- Check for unclosed connections and transaction terminated checks in servlets/jsps. Important: The dependency on the CachedConnectionManager in META-INF/jboss-service.xml must be uncommented, too -->
<Valve className="org.jboss.web.tomcat.service.jca.CachedConnectionValve" cachedConnectionManagerObjectName="jboss.jca:service=CachedConnectionManager" transactionManagerObjectName="jboss:service=TransactionManager" />
CachedConnectionManager を無効にするには、次の例のように最後の 3 行をコメント化します。
<!-- Check for unclosed connections and transaction terminated checks in servlets/jsps. Important: The dependency on the CachedConnectionManager in META-INF/jboss-service.xml must be uncommented, too
<Valve className="org.jboss.web.tomcat.service.jca.CachedConnectionValve" cachedConnectionManagerObjectName="jboss.jca:service=CachedConnectionManager" transactionManagerObjectName="jboss:service=TransactionManager" /> -->
別の設定ファイルも編集する必要があります: JBOSS_EAP_DIST/jboss-as/server//deploy/jbossweb.sar/META-INF ディレクトリの jboss-beans.xml です。最小構成には JBoss Web が含まれていないことに注意してください。このファイルは、JBoss Web との統合のためにマイクロコンテナによって使用され、依存コンポーネント間の接続を指定します。この場合、CachedConnectionManager のバルブはトランザクション マネージャーに依存します。したがって、バルブを適切に取り除くには、この構成ファイルから依存情報を削除する必要があります。関連情報はファイルの先頭にあり、次のようになります。
<!-- Only needed if the org.jboss.web.tomcat.service.jca.CachedConnectionValve is enabled in the tomcat server.xml file. -?
<depends>jboss.jca:service=CachedConnectionManager</depends>
<!-- Transaction manager for unfinished transaction checking in the CachedConnectionValve -->
<depends>jboss:service=TransactionManager</depends>
次の例のように、これらの行にコメントを付けます。 jboss.jca:service=CachedConnectionManager -? jboss:service=TransactionManager</depends>-->