tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kamalmeet Singh" <>
Subject Tomcat stops responding
Date Mon, 28 Nov 2005 12:12:18 GMT


I am facing a problem with tomcat 5.5. After working smoothly for sometime(3-4 days), the
server stopped working and resumed only after a Tomcat restart. It stopped connecting to database.
The same behavior was observed twice.


The exception thrown was:


java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.

            at Source)

            at Source)

            at Source)

            at<init>(Unknown Source)

            at Source)

            at Source)

            at Source)

            at Source)

            at org.apache.tomcat.dbcp.dbcp.DriverConnectionFactory.createConnection(

            at org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory.makeObject(

            at org.apache.tomcat.dbcp.pool.impl.GenericObjectPool.borrowObject(

            at org.apache.tomcat.dbcp.dbcp.AbandonedObjectPool.borrowObject(

            at org.apache.tomcat.dbcp.dbcp.PoolingDataSource.getConnection(



I am using settings  in my ROOT.xml


<Resource name="jdbc/dbase" auth="Container" type="javax.sql.DataSource" username="user"
password="pass" driverClassName="" url="jdbc:microsoft:sqlserver://localhost:1433;databaseName=dbase"
 maxActive="5000" maxIdle="10000" maxWait="100" removeAbandoned="true" removeAbandonedTimeout="2"/>



Additional info: In both cases the common thing was, that in SQL server under management/process
info I could see more than 3500 processes connected to the database from tomcat, but in sleeping
mode. (not sure this has anything to do with problem).

also, I am  using Tomcat as Apache module using mod_jk 


I cannot make out anything of this, why suddenly server stops connecting to database. Any
ideas about the problem?






  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message