You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Marnie McCormack (JIRA)" <qp...@incubator.apache.org> on 2007/01/16 18:01:29 UTC

[jira] Created: (QPID-301) Tune performance when reading message content from client

Tune performance when reading message content from client
---------------------------------------------------------

                 Key: QPID-301
                 URL: https://issues.apache.org/jira/browse/QPID-301
             Project: Qpid
          Issue Type: Improvement
          Components: Java Client
    Affects Versions: M1
            Reporter: Marnie McCormack
             Fix For: M2


The following code:

public void onMessage(Message message)
    {
        sLog.info("message received");
                
        if (message instanceof JMSBytesMessage)
        {
            String correlationId = "unknown";

            try
            {
                JMSBytesMessage requestMessage = (JMSBytesMessage) message;

                // Read and deserialise message
                String requestMessageString = requestMessage.toBodyString();
                correlationId = requestMessage.getJMSCorrelationID();

takes 5ms to execute on an opteron Linux server, with a 100K message. User expected sub ms performance from this test. Auto acknowledge mode.

Note that bytes message sent from C++ client publisher.


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

        

[jira] Resolved: (QPID-301) Tune performance when reading message content from client

Posted by "Robert Greig (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-301?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Greig resolved QPID-301.
-------------------------------

       Resolution: Invalid
    Fix Version/s:     (was: M3)

Turning a 100k bytes message into a string is not going to a particularly cheap operation.

No idea why the user thinks that should be a "sub ms" operation.

Closing as invalid since it's not really a qpid issue - we provide access to the raw bytes so if someone can do better than the Sun string converter (which is very likely if all their data is ASCII for example) they can go ahead.

> Tune performance when reading message content from client
> ---------------------------------------------------------
>
>                 Key: QPID-301
>                 URL: https://issues.apache.org/jira/browse/QPID-301
>             Project: Qpid
>          Issue Type: Improvement
>          Components: Java Client
>    Affects Versions: M1
>            Reporter: Marnie McCormack
>
> The following code:
> public void onMessage(Message message)
>     {
>         sLog.info("message received");
>                 
>         if (message instanceof JMSBytesMessage)
>         {
>             String correlationId = "unknown";
>             try
>             {
>                 JMSBytesMessage requestMessage = (JMSBytesMessage) message;
>                 // Read and deserialise message
>                 String requestMessageString = requestMessage.toBodyString();
>                 correlationId = requestMessage.getJMSCorrelationID();
> takes 5ms to execute on an opteron Linux server, with a 100K message. User expected sub ms performance from this test. Auto acknowledge mode.
> Note that bytes message sent from C++ client publisher.

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


[jira] Updated: (QPID-301) Tune performance when reading message content from client

Posted by "Marnie McCormack (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-301?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marnie McCormack updated QPID-301:
----------------------------------

    Fix Version/s:     (was: M2)
                   M3

Moving unresolved JIRAs from M2 to M3, in preparation for M2 release

> Tune performance when reading message content from client
> ---------------------------------------------------------
>
>                 Key: QPID-301
>                 URL: https://issues.apache.org/jira/browse/QPID-301
>             Project: Qpid
>          Issue Type: Improvement
>          Components: Java Client
>    Affects Versions: M1
>            Reporter: Marnie McCormack
>             Fix For: M3
>
>
> The following code:
> public void onMessage(Message message)
>     {
>         sLog.info("message received");
>                 
>         if (message instanceof JMSBytesMessage)
>         {
>             String correlationId = "unknown";
>             try
>             {
>                 JMSBytesMessage requestMessage = (JMSBytesMessage) message;
>                 // Read and deserialise message
>                 String requestMessageString = requestMessage.toBodyString();
>                 correlationId = requestMessage.getJMSCorrelationID();
> takes 5ms to execute on an opteron Linux server, with a 100K message. User expected sub ms performance from this test. Auto acknowledge mode.
> Note that bytes message sent from C++ client publisher.

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