com.mysql.jdbc.CommunicationsException: The driver was unabl

來源:互聯網
上載者:User

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.

由拋出的異常可以推斷出:是用戶端不斷的查詢資料庫所導致的;

解決方案:檢查資料庫表查詢的方法,查看是否有方法不斷的調用工具類並建立串連查詢資料庫嗎,導致了串連數量過多 ;



相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.