[ https://issues.apache.org/jira/browse/AMQ-7317?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16949922#comment-16949922 ]
Jean-Baptiste Onofré commented on AMQ-7317: ------------------------------------------- Can you share your http connector settings, especially the keep alive ? By the way, the jetty connector can now by tune providing a {{jetty.xml}}. Previously, the http connector setting was "hardcoded" and didn't scale well with large number of connections. How many http connections do you have on the broker ? > HTTP/HTTPS Connector session commit times are long > -------------------------------------------------- > > Key: AMQ-7317 > URL: https://issues.apache.org/jira/browse/AMQ-7317 > Project: ActiveMQ > Issue Type: Improvement > Components: Connector > Affects Versions: 5.15.6, 5.15.9 > Reporter: Paul Rousset > Priority: Major > Attachments: sampleCode.txt > > > Session commit times for a consumer are very long when using an HTTP or HTTPS > connector... Is there any way to improve this? > For example, output with the HTTP connector: > {quote}*connection created in 642ms* > *session created in 27ms* > *Taft : got message in 64ms* > *message acknowledged in 0ms* > *consumer closed in 0ms* > *session committed in {color:#FF0000}2691ms{color}* > *session closed in 2ms* > *session created in 5ms* > *Cleveland : got message in 40ms* > *message acknowledged in 0ms* > *consumer closed in 0ms* > *session committed in {color:#FF0000}2377ms{color}* > *session closed in 3ms* > *session created in 5ms* > *Truman : got message in 174ms* > *message acknowledged in 0ms* > *consumer closed in 0ms* > *session committed in {color:#FF0000}2308ms{color}* > *session closed in 3ms* > *session created in 5ms* > *Quincy : got message in 40ms* > *message acknowledged in 0ms* > *consumer closed in 0ms* > *session committed in {color:#FF0000}2304ms{color}* > *session closed in 3ms* > *...* > {quote} > As opposed to (same code, with just a change of protocol/PROVIDER_URL to TCP) > : > {quote}*connection created in 195ms* > *session created in 20ms* > *Kennedy : got message in 50ms* > *message acknowledged in 0ms* > *consumer closed in 0ms* > *session committed in {color:#FF0000}7ms{color}* > *session closed in 0ms* > *session created in 1ms* > *Roosevelt : got message in 27ms* > *message acknowledged in 0ms* > *consumer closed in 0ms* > *session committed in {color:#FF0000}6ms{color}* > *session closed in 0ms* > *session created in 0ms* > *McKinley : got message in 56ms* > *message acknowledged in 0ms* > *consumer closed in 0ms* > *session committed in {color:#FF0000}59ms{color}* > *session closed in 1ms* > *session created in 1ms* > *Pierce : got message in 15ms* > *message acknowledged in 0ms* > *consumer closed in 0ms* > *session committed in {color:#FF0000}60ms{color}* > *session closed in 0ms* > *...* > {quote} > > Attached is a sample of the Java code. > -- This message was sent by Atlassian Jira (v8.3.4#803005)