JBoss的Apache的配置问题 [英] JBoss Apache Configuration Issues

查看:142
本文介绍了JBoss的Apache的配置问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下Apache配置。我有问题像DB连接无二折腾。我在 standalone.xml

I have the following Apache configuration. I have issue like DB connection goes for toss. I have database JNDI pool entry in my web.xml for the datasource configured in standalone.xml

<resource-ref id="ResourceRef_xxxxxxxxxxx7711">
    <res-ref-name>jdbc/pcbDB</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    <jndi-name>java:/jdbc/pcbDB</jndi-name>
    <res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>

standlone.xml 为数据源配置

<datasource jndi-name="java:/jdbc/pcbDB" pool-name="pcbdb" enabled="true">
                    <connection-url>jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=off)(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=XE)(SERVER=DEDICATED)))</connection-url>
                    <driver>com.oracle</driver>
                    <pool>
                        <min-pool-size>3</min-pool-size>
                        <max-pool-size>5</max-pool-size>
                    </pool>
.....
</datasource>

Apache的配置(默认);

Apache Configuration (defaults);

<IfModule prefork.c>
StartServers       8
MinSpareServers    5
MaxSpareServers   20
ServerLimit      256
MaxClients       256
MaxRequestsPerChild  4000
</IfModule>


<IfModule worker.c>
StartServers         4
MaxClients         300
MinSpareThreads     25
MaxSpareThreads     75
ThreadsPerChild     25
MaxRequestsPerChild  0
</IfModule>

5有一个的.war 模块的并发点击使的java:/ JDBC / pcbDB 做,不是因为访问&LT;最大池大小&GT; 5℃/最大池大小&GT;

5 concurrent click on one .war module makes java:/jdbc/pcbDB makes not accessible because of <max-pool-size>5</max-pool-size>

我会纠正code为相同。

I will be correcting the code for the same.

我担心的是,当这种情况发生,事后Apache需要重新启动。是,那应该怎么....

My concern is when this happens, afterwards Apache needs to be restarted. Is that how it should be....

别的我可以修复的Apache配置。通过修正&LT; IfModule prefork.c&GT; &LT; IfModule worker.c中&GT;

Else I can fix Apache config. by correcting <IfModule prefork.c> and <IfModule worker.c>

请指教......

推荐答案

考虑在这里和放大器张贴的问题;同样在链接

Considering the problems posted here & the same under link

<一个href=\"http://stackoverflow.com/questions/31981164/apache-configuration-issue-with-jboss-bad-request-from-jboss\">Apache与JBoss [从JBoss的错误请求]配置文档版本

我已经重新配置数据源的调查统计和刷新策略

I had reconfigured datasource poll counts and flush-strategy.

            <pool>
                <min-pool-size>11</min-pool-size>
                <max-pool-size>20</max-pool-size>
                <use-strict-min>true</use-strict-min>
                <flush-strategy>FailingConnectionOnly</flush-strategy>
            </pool>

希望&LT;采用严格敏方式&gt; 顺利

这篇关于JBoss的Apache的配置问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆