无法打开连接
我开发了一个负载很大(请求)的应用程序。 我在我的应用程序中使用了以下技术:
- Jpa/Hibernate 作为持久层
- Spring 和 Spring Dao
- C3p0 作为连接池
我的问题是:我运行我的应用程序,当请求数量增加时,抛出异常 持久层“无法打开连接” 我增加了 oracle max session 但我的问题没有解决 我独立于 C3p0 文档并测试了它的选项,但我的问题没有解决。
感谢您的关注
I develop an applivation with very load(request).
I used following technologies in my appliation:
- Jpa/Hibernate as persistense layer
- Spring and Spring Dao
- C3p0 as connection pooling
my problem is : I run my application , when number of request increase, throw exception in
persistense layer that"Cannt open connection"
I increase oracle max session but my problem not solve
I indept in C3p0 document and test its options but my problem not solve.
Thank you for your attention
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您增加了 Oracle 上的最大会话数,但没有增加连接池的最大大小。例外情况是告诉您您的池已耗尽。要么找到保持连接打开的原因并尽快释放它们,要么增加池中最大活动连接的数量。
You increased max sessions on Oracle, but you didn't increase the max size of your connection pool. The exception is telling you that your pool is exhausted. Either find what's holding connections open and get them released sooner, or increase the number of max active connections in the pool.
您是否可以发布您的数据源的 Spring 配置。我期望类似的东西:
配置了另一个bean,其中数据源通过引用传递:
这是你所拥有的吗?
您使用什么版本的 Oracle?
Is it possible for you to post the Spring configuration for your DataSource. I would expect something like:
With another bean configured where the dataSource is passed by reference:
Is this what you have?
What version of Oracle are you using?