我正在 mule 3.9 中创建一个新流,使用 http 连接器和 gerenic 数据库连接器连接到雪花以运行程序。
代码中没有错误,我可以看到代码正在成功运行,但出现以下错误。
java.lang.OutOfMemoryError:超出 GC 开销限制
我已经更新了 anypoint.ini 文件将内存升级到 10240 仍然没有用
我正在为这个项目使用雪花罐 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
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句