Hello, we are developing a servlet that connects to a database, and for
teh second night in a row have gotten this exception
(java.net.SocketException : too many open files). Both nights it
happened within the first few connections to the servlet (i'm not sure
of the exact number it wasn't me trying to connect).
The first night system backups were going on at the time, and these were
changed from 8pm to midnight so they wouldn't conflict, yet the
exception still occured last night at 9pm.
Yesterday i used jmeter to connect to teh servlet several thousand times
and couldn't generate the exception and i have looked through the code
and it appears we are closing any files we have open. If anyone has any
ideas i would appreciate them very much. Attached is a stack trace from
our logs.
4/7/99 8:57:16 PM EDT Unable to create connection
java.sql.SQLException: JZ006: Caught IOException:
java.net.SocketException: Too many open filesJZ006: Caught IOException:
java.net.SocketException: Too many open files
java.sql.SQLException: JZ006: Caught IOException:
java.net.SocketException: Too many open files
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.sql.SQLException.<init>(Compiled Code)
at com.sybase.jdbc.ErrorMessage.raiseError(Compiled Code)
at com.sybase.tds.Tds.login(Compiled Code)
at com.sybase.jdbc.SybConnection.<init>(Compiled Code)
at com.sybase.jdbc.SybDriver.connect(Compiled Code)
at java.sql.DriverManager.getConnection(Compiled Code)
at java.sql.DriverManager.getConnection(Compiled Code)
at org.mitre.f065.uret_dra.r1.JDBCGlobalBroker.getConnection(Compiled
Code)
at org.mitre.f065.uret_dra.r1.DbMgr.<init>(Compiled Code)
at org.mitre.f065.uret_dra.r1.Reports.startUpDb(Compiled Code)
at org.mitre.f065.uret_dra.r1.DetailedAcReport.process(Compiled Code)
at org.mitre.f065.uret_dra.r1.test_DAR_servlet.doGet(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at org.apache.jserv.JServConnection.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)
----------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]