mulesoft/jira-connector — Issue #11: Possible memory Leak
Author: dougbass
Created: 2011-10-28 19:10:53+00:00
State: open

After running mule for a while and processing maybe 100 messages, I get the following exception:

[10-28 12:06:44] WARN JiraConnector [[esfjira-1.0-SNAPSHOT].jiraService.stage1.02]: An exception was thrown while invoking login: java.lang.OutOfMemoryError: PermGen space
ERROR 2011-10-28 12:06:44,075 [[esfjira-1.0-SNAPSHOT].jiraService.stage1.02] org.mule.processor.AsyncWorkListener: Work caused exception on 'workCompleted'. Work being executed was: org.mule.processor.SedaStageInterceptingMessageProcessor$SedaStageWorker@7ddc8095
Exception in thread "[esfjira-1.0-SNAPSHOT].jiraService.stage1.02" org.mule.api.MuleRuntimeException: An exception occurred while invoking message processor "DefaultMessageProcessorChain '(inner iterating chain) of 'jiraService' processor chain'
[
DefaultJavaComponent{jiraService.commponent.176227620},
CustomFieldRenameTransformer{this=1c7883df, name='CustomFieldRenameTransformer', ignoreBadInput=false, returnClass=SimpleDataType{type=java.lang.Object, mimeType='*/*'}, sourceTypes=[]},
IssueTypeTransformer{this=2c19b413, name='IssueTypeTransformer', ignoreBadInput=false, returnClass=SimpleDataType{type=java.lang.Object, mimeType='*/*'}, sourceTypes=[]},
IssuePriorityTransformer{this=4b7d6203, name='IssuePriorityTransformer', ignoreBadInput=false, returnClass=SimpleDataType{type=java.lang.Object, mimeType='*/*'}, sourceTypes=[]},
org.mule.api.processor.LoggerMessageProcessor@7fea15f2,
org.mule.module.jira.config.CreateIssueMessageProcessor@61470479,
org.mule.routing.requestreply.ReplyToPropertyRequestReplyReplier
]" for asynchronously.
at org.mule.processor.AsyncWorkListener.handleWorkException(AsyncWorkListener.java:74)
at org.mule.processor.AsyncWorkListener.workCompleted(AsyncWorkListener.java:50)
at org.mule.work.WorkerContext.run(WorkerContext.java:369)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
ERROR 2011-10-28 12:07:36,681 [[esfjira-1.0-SNAPSHOT].jiraService.stage1.01] org.mule.processor.AsyncWorkListener: Work caused exception on 'workCompleted'. Work being executed was: org.mule.processor.LaxSedaStageInterceptingMessageProcessor
Exception in thread "[esfjira-1.0-SNAPSHOT].jiraService.stage1.01" org.mule.api.MuleRuntimeException: An exception occurred while invoking message processor "DefaultMessageProcessorChain '(inner iterating chain) of 'jiraService' processor chain'
[
DefaultJavaComponent{jiraService.commponent.176227620},
CustomFieldRenameTransformer{this=1c7883df, name='CustomFieldRenameTransformer', ignoreBadInput=false, returnClass=SimpleDataType{type=java.lang.Object, mimeType='*/*'}, sourceTypes=[]},
IssueTypeTransformer{this=2c19b413, name='IssueTypeTransformer', ignoreBadInput=false, returnClass=SimpleDataType{type=java.lang.Object, mimeType='*/*'}, sourceTypes=[]},
IssuePriorityTransformer{this=4b7d6203, name='IssuePriorityTransformer', ignoreBadInput=false, returnClass=SimpleDataType{type=java.lang.Object, mimeType='*/*'}, sourceTypes=[]},
org.mule.api.processor.LoggerMessageProcessor@7fea15f2,
org.mule.module.jira.config.CreateIssueMessageProcessor@61470479,
org.mule.routing.requestreply.ReplyToPropertyRequestReplyReplier
]" for asynchronously.
at org.mule.processor.AsyncWorkListener.handleWorkException(AsyncWorkListener.java:74)
at org.mule.processor.AsyncWorkListener.workCompleted(AsyncWorkListener.java:50)
at org.mule.work.WorkerContext.run(WorkerContext.java:369)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.OutOfMemoryError: PermGen space
[10-28 12:07:37] WARN HttpMessageReceiver [[esfjira-1.0-SNAPSHOT].connector.http.mule.default.receiver.03]: No receiver found with secondary lookup on connector: connector.http.mule.default with URI key: http://localhost:8082/favicon.ico
[10-28 12:07:37] WARN HttpMessageReceiver [[esfjira-1.0-SNAPSHOT].connector.http.mule.default.receiver.03]: Receivers on connector are: {
http://localhost:8081/jira/create=HttpMessageReceiver{this=6df59ac1, receiverKey=http://localhost:8081/jira/create, endpoint=http://localhost:8081/jira/create}
http://localhost:8082/jira=HttpMessageReceiver{this=64704189, receiverKey=http://localhost:8082/jira, endpoint=http://localhost:8082/jira}

This could be due to a memory leak? How should we debug this? Would thread dumps help?