问题描述
亲爱的团队,
我已经提出了较早的问题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进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。
评论
相关阅读
【纯干货】Oracle 19C RU 19.27 发布,如何快速升级和安装?
Lucifer三思而后行
805次阅读
2025-04-18 14:18:38
Oracle数据库一键巡检并生成HTML结果,免费脚本速来下载!
陈举超
605次阅读
2025-04-20 10:07:02
【ORACLE】你以为的真的是你以为的么?--ORA-38104: Columns referenced in the ON Clause cannot be updated
DarkAthena
552次阅读
2025-04-22 00:13:51
【活动】分享你的压箱底干货文档,三篇解锁进阶奖励!
墨天轮编辑部
542次阅读
2025-04-17 17:02:24
【ORACLE】记录一些ORACLE的merge into语句的BUG
DarkAthena
512次阅读
2025-04-22 00:20:37
一页概览:Oracle GoldenGate
甲骨文云技术
506次阅读
2025-04-30 12:17:56
火焰图--分析复杂SQL执行计划的利器
听见风的声音
476次阅读
2025-04-17 09:30:30
OR+DBLINK的关联SQL优化思路
布衣
387次阅读
2025-05-05 19:28:36
Oracle数据库Hint大全,31个使用案例,速来下载!
陈举超
372次阅读
2025-04-16 21:25:19
Oracle19C低版本一天遭遇两BUG(ORA-04031/ORA-00600)
潇湘秦
339次阅读
2025-04-16 17:05:16