You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Fraser Adams (Created) (JIRA)" <ji...@apache.org> on 2011/12/21 09:05:30 UTC
[jira] [Created] (QPID-3706) Connections from JMS take noticeably
longer than from C++
Connections from JMS take noticeably longer than from C++
---------------------------------------------------------
Key: QPID-3706
URL: https://issues.apache.org/jira/browse/QPID-3706
Project: Qpid
Issue Type: Bug
Components: Java Client
Affects Versions: 0.12
Environment: All Java
Reporter: Fraser Adams
Priority: Minor
Connections from JMS take noticeably longer than from C++
I know I'm not imagining it because I've just done the following:
long _startTime = System.currentTimeMillis();
System.out.println("Create Connection");
Context jndi = new InitialContext(props);
ConnectionFactory connectionFactory =
(ConnectionFactory)jndi.lookup("ConnectionFactory");
connection = connectionFactory.createConnection();
long elapsed = (long)Math.round(System.currentTimeMillis() - _startTime);
System.out.println("Creating connection took " + elapsed);
And it's consistently telling me it's taking between ~ 920 and 990
milliseconds
So that backs up my gut feeling that "it seems a bit slow"
I moved the "_startTime" bit to just before "connection =
connectionFactory.createConnection();" and it was still registering >
900ms so it looks like the problem is somewhere in createConnection().
See also
http://qpid.2158936.n2.nabble.com/Connections-from-JMS-take-noticeably-longer-than-from-C-td7030370.html
Connecting from C++ client using qpid::messaging is extremely quick (it's not noticeable and I suspect is only taking a few milliseconds).
--
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:dev-subscribe@qpid.apache.org