首页 > 数据库技术 > 详细

com.mysql.jdbc.CommunicationsException: The driver was unable to create a connection......

时间:2014-02-11 01:30:56      阅读:688      评论:0      收藏:0      [点我收藏+]
mysql异常:

 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.

由抛出的异常可以推断出:是客户端不断的查询数据库所导致的;

解决方法:检查数据库表查询的方法,查看是否有方法不断的调用工具类并创建连接查询数据库吗,导致了连接数量过多 



com.mysql.jdbc.CommunicationsException: The driver was unable to create a connection......

原文:http://blog.csdn.net/zhjw009/article/details/19048585

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!