rameshfaj Posted June 8, 2008 Share Posted June 8, 2008 Exception Occured while Connecting : com.mysql.jdbc.CommunicationsException: The driver was unable to create a connection due to an inability to establish the client portion of a socket. This is usually caused by a limit on the number of sockets imposed by the operating system. This limit is usually configurable. For Unix-based platforms, see the manual page for the 'ulimit' command. Kernel or system reconfiguration may also be required. For Windows-based platforms, see Microsoft Knowledge Base Article 196271 (Q196271). What is the solution to this problem?Can anyone help me? Quote Link to comment Share on other sites More sharing options...
448191 Posted June 8, 2008 Share Posted June 8, 2008 This has nothing to with MySQL. Do as the message suggests and look at the OS docs. Or possibly JDBC is at fault, throw the error message in Google. Quote Link to comment Share on other sites More sharing options...
rameshfaj Posted June 8, 2008 Author Share Posted June 8, 2008 Ok then how can I manage this problem: Exception Occured while Connecting : com.mysql.jdbc.exceptions.MySQLNonTransientConnectionException: Data source rejected establishment of connection, message from server: "Too many connections" Exception Occured getLoggedInUsers: java.lang.NullPointerException Quote Link to comment Share on other sites More sharing options...
448191 Posted June 8, 2008 Share Posted June 8, 2008 What do YOU think the problem is? Too many new connections to the database server perhaps? Really.... Quote Link to comment Share on other sites More sharing options...
rameshfaj Posted June 8, 2008 Author Share Posted June 8, 2008 Might be the database server is allowing only limited connections to connect to it at a time.Then so how to manage this,Any idea? Quote Link to comment Share on other sites More sharing options...
448191 Posted June 8, 2008 Share Posted June 8, 2008 Really, you should make some effort to solve this. I found this in 30 seconds: http://dev.mysql.com/doc/refman/5.0/en/too-many-connections.html My guess would be: a) Something is wrong with your OS b) Something is wrong with your code, that makes it reconnect until the pool is dead Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.