activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Tully (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AMQ-1115) Memory Leak: OutOfMemoryException throws if TopicSubscriber.receive(timeout) is used to pull JMS messages
Date Mon, 08 Sep 2008 14:55:57 GMT

     [ https://issues.apache.org/activemq/browse/AMQ-1115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Gary Tully updated AMQ-1115:
----------------------------

    Fix Version/s: 5.3.0
                       (was: 5.2.0)

> Memory Leak: OutOfMemoryException throws if TopicSubscriber.receive(timeout) is used
to pull JMS messages
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: AMQ-1115
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1115
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: JMS client
>    Affects Versions: 4.1.0
>         Environment: Windows XP Professional, JDK 1.5
>            Reporter: Sam Zhou
>             Fix For: 5.3.0
>
>         Attachments: ActiveMq Tester.zip
>
>
> Attached sources can generate OutOfMemoryException when ActiveMQ pulls messages by using
TopicSubscriber.receive(timeout), on the other hand, if I use callback TopicSubscriber.onMessage(),
all the messages are received without any problem. Please see README.TXT for detail usage
of the program.
> Assume I set prefetch=50, publisherCount=10, subscriberCount=10, each publisher publishs
500 messages, and each message size is 100kb,
> If I use callback (option -msgcallback given in command line), e.g., TopicSubscriber.onMessage(),
all 50,000 messages are received without error. 
> if I don't use callback (option -msgcallback not given in command line), e.g., TopicSubscriber.receive(timeout),
after receiving about a thousand of messages, OutOfMemory error occurs, and the program starts
to throw Exception.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message