Memory leak when using JMS queue browser, resulting in OutOfMemoryError

(Doc ID 1362424.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle Weblogic Server - Version 10.3 and later
Information in this document applies to any platform.
***Checked for relevance on 18-Mar-2013***

Symptoms

When using JMS queue browser over an extended period to monitoring messages on JMS queue, the following OutOfMemoryError is observed in server log -

####<Jul 21, 2011 1:03:07 PM CEST> <Warning> <DeploymentService> <jms1> <MS_jms1> <[ACTIVE] ExecuteThread: '23' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1311246187106> <BEA-290064> <Deployment service servlet encountered an Exception while handling the deployment service message for request id "-1" from server "ADMIN". Exception is: "java.lang.OutOfMemoryError: Java heap space


The queue browser code snippets are as below -

public void close() throws JMSException {
   qsession.close();
   queueBrowser.close();
   qcon.close();
}



Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms