java.lang.OutOfMemoryError: GC overhead limit exceeded error while connection between mule and snowflake

java.lang.OutOfMemoryError: GC overhead limit exceeded error while connection between mule and snowflake

我正在使用 http 连接器和通用数据库连接器在 mule 3.9 中创建一个新流,以将雪花连接到 运行 一个过程。

代码中没有错误,我可以看到代码 运行ning 成功,但我正在 以下错误。

java.lang.OutOfMemoryError:超出 GC 开销限制

我已经更新了 anypoint.ini 文件,将内存升级到 10240 仍然没有用

我正在为这个项目使用 snowflake jar 3.13.3

<?xml version="1.0" encoding="UTF-8"?>

<mule xmlns:db="http://www.mulesoft.org/schema/mule/db" xmlns:json="http://www.mulesoft.org/schema/mule/json" xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns:cdata-snowflake="http://www.mulesoft.org/schema/mule/cdata-snowflake" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
    xmlns:spring="http://www.springframework.org/schema/beans" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/db http://www.mulesoft.org/schema/mule/db/current/mule-db.xsd
http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd
http://www.mulesoft.org/schema/mule/json http://www.mulesoft.org/schema/mule/json/current/mule-json.xsd
http://www.mulesoft.org/schema/mule/cdata-snowflake http://www.mulesoft.org/schema/mule/cdata-snowflake/current/mule-cdata-snowflake.xsd">
    <http:listener-config name="HTTP_Listener_Configuration" host="localhost" port="8081" doc:name="HTTP Listener Configuration"/>
    <flow name="testFlow">
        <http:listener config-ref="HTTP_Listener_Configuration" path="/test" allowedMethods="GET" doc:name="HTTP"/>
        <db:stored-procedure config-ref="Generic_Database_Configuration" doc:name="Database">
            <db:parameterized-query><![CDATA[call E2e_Change_User('nudayaku' ,'tan')]]></db:parameterized-query>
        </db:stored-procedure>
        <json:object-to-json-transformer doc:name="Object to JSON"/>
    </flow>
</mule>

我试过参数化查询和动态方式,但都导致超时错误。

我有 运行 来自 snowflake 的相同程序,我在几秒钟内得到了输出。

有人能帮我解决这个问题吗

感谢输入

谢谢, 希德

这是 Mule 3.9.0 到 Mule 3.9.4 中的已知问题。解决方案是升级到 Mule 3.9.5。

来源:https://help.mulesoft.com/s/article/Store-procedure-calls-fail-in-mule-3-x-for-snowflake-database