我面临一个简单的红移查询挂起的问题。我正在使用 mule 并将我的代码部署到 cloudhub。相信这与结果集的大小有关。当结果集大小非常小时,可能少于 50 行时,它可以正常工作。但是,除此之外的任何东西似乎都挂起,我偶尔(大约 2 小时的请求后)会在日志中看到此错误。我将连接网址用作:
jdbc:postgresql://xyz?tcpKeepAlive=true&useCursors=true&user=abc&password=123
顺便说一句,在我的本地骡子运行时一切正常。
********************************************************************************
Message : [Amazon](500150) Error setting/closing connection: Connection reset by peer. (java.sql.SQLException). Message payload is of type: ParameterMap
Code : MULE_ERROR-29999
--------------------------------------------------------------------------------
Exception stack is:
1. [Amazon](500150) Error setting/closing connection: Connection reset by peer. (com.amazon.support.exceptions.GeneralException)
com.amazon.jdbc.communications.channels.MessagesSocketChannel:-1 (null)
2. [Amazon](500150) Error setting/closing connection: Connection reset by peer. (java.sql.SQLException)
com.amazon.jdbc.communications.channels.MessagesSocketChannel:-1 (null)
3. [Amazon](500150) Error setting/closing connection: Connection reset by peer. (java.sql.SQLException). Message payload is of type: ParameterMap (org.mule.api.MessagingException)
org.mule.module.db.internal.processor.AbstractDbMessageProcessor:93 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/MessagingException.html)
--------------------------------------------------------------------------------
Root Exception stack trace:
com.amazon.support.exceptions.GeneralException: [Amazon](500150) Error setting/closing connection: Connection reset by peer.
at com.amazon.jdbc.communications.channels.MessagesSocketChannel.readMessages(Unknown Source)
at com.amazon.jdbc.communications.channels.AbstractMessagesSocketChannel.read(Unknown Source)
+ 2 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything)
********************************************************************************