重新启动应用程序服务器时出现错误。

通常,当我们重新启动应用服务器时,它将自行创建连接。

但是它抛出错误以下。

2013-11-05 04:06:00,029 WARN  [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] (pool-11-thread-1) Throwable while attempting to get a new connection: null
org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (java.sql.SQLException: null,  message from server: "Host 'jade2.ftdi.com' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'")

Observed below log also:
2013-11-05 04:07:18,074 INFO  [STDOUT] (pool-11-thread-1) DEBUG 2013-11-05 04:07:18,074 [pool-11-thread-1] com.ftd.core.datasource.model.DataSourceHealthMonitor: doDBServerMaintenance path to db server maintenance files jboss.server.data.dir
2013-11-05 04:07:18,074 ERROR [STDERR] (Thread-12) java.lang.OutOfMemoryError: Java heap space
2013-11-05 04:07:20,844 INFO  [STDOUT] (http-0.0.0.0-8713-2) ERROR 2013-11-05 04:07:16,673 [http-0.0.0.0-8713-2] com.ftd.core.datasource.exceptionhandlers.NormalExecutionHandler: Caught TransactionException.org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is com.ftd.core.datasource.exceptions.ConnectionException: nested exception is com.ftd.core.datasource.exceptions.DataSourceException: All Databases are down!!!


发生此错误后,我们的DBA发出了刷新主机;在数据库方面,但仍然没有运气,我们遇到了相同的错误。如何解决

最佳答案

java.lang.OutOfMemoryError:Java堆空间

也许您应该尝试增加VM的堆大小

10-06 13:03