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

Robbie Gemmell commented on QPID-3559:
--------------------------------------

I think it might be preferable to use an instance variable for the 
SimpleDateFormat object and just synchronize its access, or something else to 
similar effect, rather than use a new instance per method call. I know its not 
a big object but it could generate a significant amount of garbage due to being 
used per-message, and the JMX interface already generates quite a lot :)
                
> SimpleDateFormat used in thread unsafe manner in JMX interface
> --------------------------------------------------------------
>
>                 Key: QPID-3559
>                 URL: https://issues.apache.org/jira/browse/QPID-3559
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Broker
>    Affects Versions: 0.10, 0.11, 0.12, 0.13
>            Reporter: Keith Wall
>            Assignee: Robbie Gemmell
>            Priority: Minor
>             Fix For: 0.15
>
>
> AMQQueueMBean uses a static SimpleDateFormat instance which is thread-unsafe. 
>  The user may see corruption of JMS Expiration dates or JMS Timestamps 
> reported via the JMX interface.
> This problem only affects the MBean, JMS messaging clients wont be affected.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to