完成操作后确保关闭Statement和ResultSet。

解决方案 »

  1.   

    完成操作后确保关闭Statement和ResultSet。----This is very important in db app develpment, if not closed db resource will not be recollected and finally will face your error make db dead.or you could change the db setting to make the max-connection number higher than before
      

  2.   

    or pay attention to the db lock just like "select for update" this will lock the table or row, may also cause some fatal issue