当前位置:编程学习 > 网站相关 >>

救助 J2CA0045E调用资源jdbc/tran的方法 CreateOrWaitForConnction时连接不可用

谁遇到这种情况啊 或者是比较了解的 帮帮忙吧
我提供了一个接口给别人用。在接口中完成一系列操作。
环境是websphere6.0 (java) 。调用一段时间后 服务死了。
提示J2CA0045E 调用资源 jdbc/tran的方法 CreateOrWaitForConnction时连接不可用。
我查看了一下项目没有连接没关闭的啊。看网上说把连接池的最大限制改的大一点儿 。结果
直接挂了。还是还需要其他的什么配置么?? 研究了好久没找到方法。上网搜的好多是英文的,看不太懂。
大家有了解的还希望救救小妹。要急死了 - - 55.  
                       谢谢
--------------------编程问答-------------------- --------------------编程问答-------------------- --------------------编程问答-------------------- --------------------编程问答-------------------- 前几天我们的服务器也遇到了这个问题。因为应用是我们做的,WAS是IBM管理,数据库是另一家公司管理,导致扯皮。为此特地查了一下,顺手贴一下……看发帖时间,貌似太晚了。


以下是在IBM网站上找到的错误说明,见如下地址:
https://www-304.ibm.com/support/docview.wss?uid=swg21323294
 
翻译了一下:(翻译如有问题请指正)
 
High-workload processing causes the error messages WTRN0006W, J2CA0045E, or CWWBB0638E while connecting to the Business Process Choreographer Explorer database
 
在连接业务流程编排器数据库时,高负荷处理引发错误信息WTRN0006W, J2CA0045E或者CWWBB0638E 
 
 
Cause
This problem likely has two of the following causes: 

The connection pool is incorrectly configured 
The database settings for the maximum number of connections is incorrect or is lower than the settings of the connection pool in WebSphere Application Server 
The embedded Derby database is used for processing the high-workload scenario, or the network deployment Derby server is improperly configured
 
    引发原因:
     这个问题由如下的两个原因导致:
        1、连接池配置错误
        2、数据库设置或者数据库最大连接数设置错误,或者数据库最大连接数小于WAS数据库连接池的最大连接数
        3、嵌入式Derby数据库被用于高负荷的场景,或者网络调度的Derby服务器配置错误
 
 
Resolving the problem
To resolve the problem, perform the following tasks: 

Check the connection pool parameters (maximum connections and purging policy) and change them if necessary. For information, refer to the topic Tuning the JDBC data source of a messaging engine 
The database administrator can check the settings of limits and thread quantity on the database server and can change them to suit the load capacities 
The embedded Derby database environment (common in testing and development environments) supports only one thread see derby.drda.maxThreads, and, therefore no concurrent access. Tune this option and derby.drda.minThreads on the network deployment Derby server to fit the load capacities of the connected application clients
 
    解决方法:
解决这个问题,遵循以下几个步骤操作:
        1、检查连接池参数(最大连接和释放策略),如果不对就修改这些参数。 
        2、数据库管理员可检查数据库的限制策略和线程数量以适应高负荷
   3、嵌入式Derby数据库只支持单进程,因此不能并发访问。调整网络调度Derby服务器配置中的derby.drda.maxThreads 和 derby.drda.minThreads 来适应较多的用户连接
补充:企业软件 ,  WebSphere
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,