用了连接池,异常如下:
message from server: "Can't create a new thread (errno 12); if you are not out of available memory, you can consult the manual for a possible OS-dependent bug"

解决方案 »

  1.   


    可能是你的线程开得太多,用show   processlist查看一下,如果是連接太多吧 在   
      my.ini里修改max_connect=200,
      

  2.   

    改了,max_connections=1000,还是出现一样的异常。
      

  3.   

    好象不是内存问题,连接池最多同时创建150个连接,多了就这样。应该是那里有一个150的限制。不是TOMCAT,TOMCAT的maxThreads我改了。MYSQL的max_connections=1000也改了