我在尝试一些性能调优并遵循Jboss性能调优指南。所以我阅读第3章,并且我想转向缓存连接管理器。但有人提到它的配置在server.xml中。我无法在任何地方找到server.xml。我在Windows 7上使用jboss-eap-6.1。所以我的问题在哪里,我会找到server.xml或如何关闭缓存连接管理器?我们在哪里可以找到Jboss EAP 6中的Server.xml?
这里是tunning指南文本:
的配置是在文件的server.xml目录JBOSS_EAP_DIST /的jboss-AS /服务器//部署/ jbossweb.sar。请注意,最小配置不包括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,评论的最后三行,按照下面的例子:
<!-- 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的-beans.xml文件在JBOSS_EAP_DIST/JBoss的-as/server // deploy/jbossweb.sar/META-INF目录。请注意,最小配置不包括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:服务= CachedConnectionManager - ? JBoss的:服务=事务管理< /依赖> - >