[JIRA] Resolved: (MQ-319) 'purge dst' needs optimization under low memory in broker

  • From: "amyk (JIRA)" <jira-no-reply@...>
  • To: issues@...
  • Subject: [JIRA] Resolved: (MQ-319) 'purge dst' needs optimization under low memory in broker
  • Date: Thu, 4 Jul 2013 03:38:14 +0000 (UTC)
  • Auto-submitted: auto-generated


     [ 
https://java.net/jira/browse/MQ-319?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

amyk resolved MQ-319.
---------------------

    Fix Version/s: 5.0.1 (RI-Bug-Fix)
       Resolution: Fixed

If broker is low in memory, avoid making set of all message keys in 
destination which is the cause of OOM as shown in Description, instead try to 
remove 1 message a time until broker memory state becomes GREEN

> 'purge dst' needs optimization under low memory in broker
> ---------------------------------------------------------
>
>                 Key: MQ-319
>                 URL: https://java.net/jira/browse/MQ-319
>             Project: mq
>          Issue Type: Improvement
>          Components: broker-core
>    Affects Versions: 4.1, 4.2, 4.3, 4.4, 4.4u1, 4.4u2, 4.5, 4.5.1, 4.5.2, 
> 5.0
>            Reporter: amyk
>            Assignee: amyk
>             Fix For: 5.0.1 (RI-Bug-Fix)
>
>
> When a broker is low in memory, purging a destination that has a lot of 
> messages can easily cause the purge operation in broker trigger a 
> OutOfMemoryError
> #|2013-06-30T14:13:14.289-0400|SEVERE|5.0|imq.log.Logger|_ThreadID=21;_ThreadName=Thread-admin[0];|ERROR
>  [B3107]: Attempt to free memory failed, taking more drastic measures :
> java.lang.OutOfMemoryError: Java heap space
>         at java.util.HashMap.createEntry(HashMap.java:869)
>         at java.util.HashMap.addEntry(HashMap.java:856)
>         at java.util.HashMap.put(HashMap.java:484)
>         at java.util.HashSet.add(HashSet.java:217)
>         at java.util.AbstractCollection.addAll(AbstractCollection.java:334)
>         at java.util.HashSet.<init>(HashSet.java:117)
>         at 
> com.sun.messaging.jmq.jmsserver.core.Destination.purgeDestination(Destination.java:2304)
>         at 
> com.sun.messaging.jmq.jmsserver.core.Queue.purgeDestination(Queue.java:1207)
>         at 
> com.sun.messaging.jmq.jmsserver.core.Destination.purgeDestination(Destination.java:2290)
>         at 
> com.sun.messaging.jmq.jmsserver.data.handlers.admin.PurgeDestinationHandler.handle(PurgeDestinationHandler.java:142)
>         at 
> com.sun.messaging.jmq.jmsserver.data.handlers.admin.AdminDataHandler.handle(AdminDataHandler.java:258)
>         at 
> com.sun.messaging.jmq.jmsserver.data.PacketRouter.handleMessage(PacketRouter.java:199)
>         at 
> com.sun.messaging.jmq.jmsserver.service.imq.IMQIPConnection.readData(IMQIPConnection.java:1320)
>         at 
> com.sun.messaging.jmq.jmsserver.service.imq.IMQIPConnection.process(IMQIPConnection.java:553)
>         at 
> com.sun.messaging.jmq.jmsserver.service.imq.OperationRunnable.process(OperationRunnable.java:176)
>         at 
> com.sun.messaging.jmq.jmsserver.pool.BasicRunnable.run(BasicRunnable.java:499)
>         at java.lang.Thread.run(Thread.java:722)
> |#]

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://java.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[JIRA] Created: (MQ-319) 'purge dst' needs optimization under low memory in broker

amyk (JIRA) 07/04/2013

[JIRA] Resolved: (MQ-319) 'purge dst' needs optimization under low memory in broker

amyk (JIRA) 07/04/2013
Terms of Use; Privacy Policy; Copyright ©2013-2017 (revision 20160708.bf2ac18)
 
 
Close
loading
Please Confirm
Close