1

いくつかのパフォーマンス チューニングを試し、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>-->

4

1 に答える 1

3

使用している EAP のバージョンのファイル構造は、構成ガイドに記載されているものとは異なります。JBoss AS 6 の設定ガイドを使用して JBoss EAP 6 を設定していますか? もしそうなら、これがあなたのフラストレーションの原因です。あなたが持っている指示は、EAP 5 ファイル構造のように見えるものです。EAP 6 のドキュメントはこちらにあります

スタンドアロン モードで実行している場合、設定は ${JBOSS_HOME}/standalone/configuration/standalone.xml にあります。

于 2013-08-01T21:54:45.390 に答える