我在尝试运行应用程序时遇到了permgen空间问题。该应用程序有几个选择数据库调用,然后尝试使用Salesforce连接器连接到salesforce系统。但是,一旦我到达连接到salesforce的点,我总是从第一次部署中得到以下异常。我是否可以在cloudhub上进行分析或调试问题或为其提供更多内存?BTW我正在使用一个1.5GB内存的工作者。
********************************************************************************
Message : PermGen space (java.lang.OutOfMemoryError). Message payload is of type: LinkedHashMap
Code : MULE_ERROR-29999
--------------------------------------------------------------------------------
Exception stack is:
1. PermGen space (java.lang.OutOfMemoryError)
java.lang.ClassLoader:-2 (null)
2. PermGen space (java.lang.OutOfMemoryError). Message payload is of type: LinkedHashMap (org.mule.api.MessagingException)
org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor:32 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/MessagingException.html)
--------------------------------------------------------------------------------
Root Exception stack trace:
java.lang.OutOfMemoryError: PermGen space
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
+ 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything)
********************************************************************************
答案 0 :(得分:2)
如果您正在使用Mule 3.6.1工作程序,这是一个已知的问题,很快就会解决。不幸的是,Mule 3.6.1 CH工人的permgen设置很低。您是否可以尝试降级到Mule 3.6.0并查看问题是否仍然存在?
HTH,
贾斯汀
答案 1 :(得分:0)
增加cloudhub中的worker,然后再试一次。示例:如果您使用的是0.1 v核心,请尝试增加到0.2v核心。