qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (QPID-6207) Broker retains hard references to persistent messages of uncommitted transactions
Date Tue, 04 Nov 2014 15:53:34 GMT

    [ https://issues.apache.org/jira/browse/QPID-6207?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14196269#comment-14196269
] 

ASF subversion and git services commented on QPID-6207:
-------------------------------------------------------

Commit 1636617 from [~godfrer] in branch 'qpid/trunk'
[ https://svn.apache.org/r1636617 ]

QPID-6207 : [Java Broker] Flow uncommitted messages to disk if combined size greater than
threshold

> Broker retains hard references to persistent messages of uncommitted transactions
> ---------------------------------------------------------------------------------
>
>                 Key: QPID-6207
>                 URL: https://issues.apache.org/jira/browse/QPID-6207
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Broker
>    Affects Versions: 0.30, 0.31
>            Reporter: Keith Wall
>
> If I run a simple JMS client transactionally publishing large persistent messages to
a queue without committing the transaction, the Broker quickly fails with an OOM.   This is
regression wrt 0.28 which does not manifest the same issue.
> I am testing with the 0-9 protocol.
> {code:java}
>        try (InputStream resourceAsStream = this.getClass().getResourceAsStream("hello.properties"))
>         {
>             Properties properties = new Properties();
>             properties.load(resourceAsStream);
>             Context context = new InitialContext(properties);
>             ConnectionFactory connectionFactory = (ConnectionFactory) context.lookup("qpidConnectionfactory");
>             Connection connection = connectionFactory.createConnection();
>             connection.start();
>             Session session = connection.createSession(true, Session.SESSION_TRANSACTED);
>             Destination destination = (Destination) context.lookup("myqueue");
>             session.createConsumer(destination).close();
>             MessageProducer messageProducer = session.createProducer(destination);
>             int count=0;
>             while(true)
>             {
>                 BytesMessage message = session.createBytesMessage();
>                 message.writeBytes(new byte[1024 * 1024]);
>                 messageProducer.send(message);
>                 count++;
>                 System.out.println("sent " + count);
>                 // dont commit sessiomn
>             }
>         }
>         catch (Exception exp) 
>         {
>             exp.printStackTrace();
>         }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Mime
View raw message