No buffer space available (maximum connections reached?): JVM_Bind; nested exception is: java.net.SocketException: No buffer space available (maximum connections reached?): JVM_Bind javax.mail.MessagingException: No buffer space available (maximum connections reached?): JVM_Bind; nested exception is: java.net.SocketException: No buffer space available (maximum connections reached?): JVM_Bind at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:461) at javax.mail.Service.connect(Service.java:236) at javax.mail.Service.connect(Service.java:137) at com.lc.mywork.mail.mail.service.support.MailAccountServiceImpl.getStore(MailAccountServiceImpl.java:289) at com.lc.mywork.mail.mail.service.support.MailAccountServiceImpl.getStore(MailAccountServiceImpl.java:278) at com.lc.mywork.mail.mail.service.support.MailFolderService.queryImapMailResource(MailFolderService.java:579) at com.lc.mywork.mail.mail.service.support.MailFolderService.queryMailResources(MailFolderService.java:363) at com.lc.mywork.mail.mail.cmd.MailFolderQueryCmd.query(MailFolderQueryCmd.java:133) at 这是javamail中报出来一个错误,用的是IMAP协议,邮件服务器是MDaemon,在打开收件箱的时候出现这样的错误,并不是每一次,基本在每天第一次打开收件箱的时候会看到这样的错误,然后需要重新启动硬件服务器,就会没有问题.由于他们来了一个新的服务器,所以硬件服务器就换了,把旧服务器上的数据库备份过来,应用拷贝过来(原来的是没有问题的),出现这种情况.................小弟不才,怀疑是内存的问题,但又找不到原因...........冰天雪地跪求哪位神仙有见过这种情况的给指点下...........下面贴代码

解决方案 »

  1.   

    No buffer space available (maximum connections reached?):
    最大值是不是设置得过于小了?
    maximum connections reached?):这句话不会是LZ自己的加的吧~
      

  2.   


    No buffer space available (maximum connections reached?):
    最大值是不是设置得过于小了?
    maximum connections reached?):这句话不会是LZ自己的加的吧~========================================================
    可能是连接数超了,发现你比我还不懂装懂啊。厉害。你凭着什么说这句话是楼主加的。