问题描述
亲爱的团队,
我已经提出了较早的问题https://asktom.oracle.com/pls/apex/asktom.search?tag=apex-202-ords-and-apache-tomcat-windows-2016-getting-it-ready-for-production它得到了非常彻底的回答和解释。就在我们推出这个的时候,我得到了错误
503服务不可用
由于以下错误,名为: | apex | rt | 的连接池配置不正确: 获取连接时发生异常: oracle.ucp.UniversalConnectionPoolException: 通用连接池中的所有连接都在使用中
我之前担心的是,当安装程序在负载下进行测试时,我如何配置它以进行生产。到目前为止,我已经更新了Apache Tomcat server.xml文件,使其具有1000个线程,默认情况下它是10,但有时仍然出现错误。
在进一步阅读时,我遇到了ORDS配置文件,并查找如下JDBC参数:
50
1
300
我已经在default.xml文件中制作了这些条目。
我的问题是,是否足以在默认xml级别添加这些参数,或者我也必须将它们放在apex_rt或apex_pu文件中。此外,是否需要重新启动ords服务。
我将感谢在这方面的帮助。
操作系统是2016 Windows数据中心,30 GB RAM,8核,Oracle 12C,Apex 20.2,ORDS 19.3,Apache Tomcat 9.0
致以最诚挚的问候,
朱奈德。
致以最诚挚的问候,
我已经提出了较早的问题https://asktom.oracle.com/pls/apex/asktom.search?tag=apex-202-ords-and-apache-tomcat-windows-2016-getting-it-ready-for-production它得到了非常彻底的回答和解释。就在我们推出这个的时候,我得到了错误
503服务不可用
由于以下错误,名为: | apex | rt | 的连接池配置不正确: 获取连接时发生异常: oracle.ucp.UniversalConnectionPoolException: 通用连接池中的所有连接都在使用中
我之前担心的是,当安装程序在负载下进行测试时,我如何配置它以进行生产。到目前为止,我已经更新了Apache Tomcat server.xml文件,使其具有1000个线程,默认情况下它是10,但有时仍然出现错误。
在进一步阅读时,我遇到了ORDS配置文件,并查找如下JDBC参数:
我已经在default.xml文件中制作了这些条目。
我的问题是,是否足以在默认xml级别添加这些参数,或者我也必须将它们放在apex_rt或apex_pu文件中。此外,是否需要重新启动ords服务。
我将感谢在这方面的帮助。
操作系统是2016 Windows数据中心,30 GB RAM,8核,Oracle 12C,Apex 20.2,ORDS 19.3,Apache Tomcat 9.0
致以最诚挚的问候,
朱奈德。
致以最诚挚的问候,
专家解答
更改defaults.xml将照顾所有池,例如我添加:
然后启动ords
5 1000 12 4
然后启动ords
2021-03-17T01:38:00.902Z INFO Configuration properties for: |apex|| database.api.enabled=true db.hostname=localhost db.port=1519 db.servicename=pdb1 feature.sdw=true jdbc.InitialLimit=5 jdbc.MaxConnectionReuseCount=1000 jdbc.MaxLimit=12 jdbc.MinLimit=4 jdbc.auth.enabled=true jdbc.maxRows=1000 restEnabledSql.active=true security.requestValidationFunction=wwv_flow_epg_include_modules.authorize security.validationFunctionType=plsql security.verifySSL=false db.password=****** db.username=APEX_PUBLIC_USER resource.templates.enabled=true 2021-03-17T01:38:01.276Z INFO Configuration properties for: |apex|al| database.api.enabled=true db.hostname=localhost db.port=1519 db.servicename=pdb1 feature.sdw=true jdbc.InitialLimit=5 jdbc.MaxConnectionReuseCount=1000 jdbc.MaxLimit=12 jdbc.MinLimit=4 jdbc.auth.enabled=true jdbc.maxRows=1000 restEnabledSql.active=true security.requestValidationFunction=wwv_flow_epg_include_modules.authorize security.validationFunctionType=plsql security.verifySSL=false db.password=****** db.username=APEX_LISTENER resource.templates.enabled=true 2021-03-17T01:38:01.401Z INFO Configuration properties for: |apex|pu| database.api.enabled=true db.hostname=localhost db.port=1519 db.servicename=pdb1 feature.sdw=true jdbc.InitialLimit=5 jdbc.MaxConnectionReuseCount=1000 jdbc.MaxLimit=12 jdbc.MinLimit=4 jdbc.auth.enabled=true jdbc.maxRows=1000 restEnabledSql.active=true security.requestValidationFunction=wwv_flow_epg_include_modules.authorize security.validationFunctionType=plsql security.verifySSL=false db.password=****** db.username=ORDS_PUBLIC_USER resource.templates.enabled=true 2021-03-17T01:38:01.530Z INFO Configuration properties for: |apex|rt| database.api.enabled=true db.hostname=localhost db.port=1519 db.servicename=pdb1 feature.sdw=true jdbc.InitialLimit=5 jdbc.MaxConnectionReuseCount=1000 jdbc.MaxLimit=12 jdbc.MinLimit=4 jdbc.auth.enabled=true jdbc.maxRows=1000 restEnabledSql.active=true security.requestValidationFunction=wwv_flow_epg_include_modules.authorize security.validationFunctionType=plsql security.verifySSL=false db.password=****** db.username=APEX_REST_PUBLIC_USER resource.templates.enabled=true 2021-03-17T01:38:02.591Z INFO Oracle REST Data Services initialized Oracle REST Data Services version : 20.3.0.r3011819 Oracle REST Data Services server info: jetty/9.4.30.v20200611
文章转载自ASKTOM,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




