aspose file tools*
The moose likes BEA/Weblogic and the fly likes Weblogic-Hibernate Datasource: for every 10 min it takes 2 sec extra time to run the query Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Weblogic-Hibernate Datasource: for every 10 min it takes 2 sec extra time to run the query" Watch "Weblogic-Hibernate Datasource: for every 10 min it takes 2 sec extra time to run the query" New topic
Author

Weblogic-Hibernate Datasource: for every 10 min it takes 2 sec extra time to run the query

prince roy
Greenhorn

Joined: Mar 12, 2014
Posts: 3
Hi,

I am using Weblogic server and Hibernate as the framework. For every 10 min gap if i don't hit any request(idle) my application takes 2 sec extra time to run the query. I am using Weblogic datasource to run the query.
I am using default properties for the data soruce. Can any one help me to fix this issue?
Abhinav Sonkar
Greenhorn

Joined: Nov 20, 2013
Posts: 16
What is the Initial Capacity set for the data source? It should be non-zero value (ideally 1 or 2 depending on the concurrent load of requests).
prince roy
Greenhorn

Joined: Mar 12, 2014
Posts: 3
initial capacity is 1
Abhinav Sonkar
Greenhorn

Joined: Nov 20, 2013
Posts: 16
Increase it to 10 and check if you are still getting the issue?
prince roy
Greenhorn

Joined: Mar 12, 2014
Posts: 3
Thanks for the good info. this resolved my problem.
 
wood burning stoves
 
subject: Weblogic-Hibernate Datasource: for every 10 min it takes 2 sec extra time to run the query