dcsimg
"JAVA EXCEPTION" : java.net.SocketException
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   ramya_krishna
Posted On:   Thursday, January 10, 2002 04:27 AM

I am using Tomcat as Web server and MYSQL as backend to develop an intranet site. When the JSP places more than 4 or 5 requests to MySQL, it throws the following error:

"Cannot connect to MySQL server on localhost:3306. Is there a MySQL server running on the machine/port you are trying to connect to? (java.net.SocketException)"


What is the root cause of the problem?Is there any way how to solve the above?

Re: "JAVA EXCEPTION" : java.net.SocketException

Posted By:   Christopher_Schultz  
Posted On:   Thursday, January 10, 2002 05:06 AM

It sounds like MySQL is dying. What version are you using? What JDBC driver? What JDK/Tomcat version?



Are you building the URL to the database in a consistent way? Are you closing your connections/resultsets/statements when you are done with them?



-chris
About | Sitemap | Contact