aspose file tools*
The moose likes BEA/Weblogic and the fly likes Max Connection Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Max Connection Problem" Watch "Max Connection Problem" New topic
Author

Max Connection Problem

Chetan Parekh
Ranch Hand

Joined: Sep 16, 2004
Posts: 3636
We are running Weblogic 6.1 with SP2.

We have set max connection size to 300.When ever 301st user is trying to connect the application, Weblogic server give internal error and hang.

Is there any solution to stop this?

Reg,
Chetan


My blood is tested +ve for Java.
Carol Enderlin
drifter
Ranch Hand

Joined: Oct 10, 2000
Posts: 1364
What kind of connections are you asking about? Application threads? Database Connections?

What are they doing? How long does a request take?
Chetan Parekh
Ranch Hand

Joined: Sep 16, 2004
Posts: 3636
I am talking about Database Connection.

A Connection last for 10 second max.
Carol Enderlin
drifter
Ranch Hand

Joined: Oct 10, 2000
Posts: 1364
Are you using connection pool and datasource?

Are you closing your ResultSets, Statements and Connections?

You could post some code snippets.
Chetan Parekh
Ranch Hand

Joined: Sep 16, 2004
Posts: 3636
I am geting Connection from the using DataSouce by following code...

InitialContext objInitialContext = new InitialContext();
DataSource objDataSource = (DataSource)objInitialContext.lookup(datasource);
System.out.println("Inside DBManager.getConnection() ");
return objDataSource.getConnection();

I am using following code to close the Connection

if(conn != null){
conn.close();
conn = null;
}

I want to know here, by doing Connection.close(), does the Connection object returns to the ConnectionPool?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Max Connection Problem
 
Similar Threads
not logged on?
weblogic server crash
Increasing WebLogic Startup Time
Connection Pooling in Hibernate
increase database connection