0

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

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

但它抛出了错误。

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 发出了刷新主机;在数据库方面,但没有运气,我们仍然得到同样的错误。如何修复它

4

1 回答 1

1

java.lang.OutOfMemoryError:Java 堆空间

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

于 2013-11-06T05:15:26.807 回答