You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Krzysztof Porębski (Jira)" <ji...@apache.org> on 2020/03/15 09:02:00 UTC
[jira] [Assigned] (AMQNET-629) Possible overflow when too many
sessions created
[ https://issues.apache.org/jira/browse/AMQNET-629?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Krzysztof Porębski reassigned AMQNET-629:
-----------------------------------------
Assignee: Krzysztof Porębski
> Possible overflow when too many sessions created
> ------------------------------------------------
>
> Key: AMQNET-629
> URL: https://issues.apache.org/jira/browse/AMQNET-629
> Project: ActiveMQ .Net
> Issue Type: Bug
> Components: AMQP
> Affects Versions: 1.8.0
> Reporter: Krzysztof Porębski
> Assignee: Krzysztof Porębski
> Priority: Major
> Fix For: AMQP-1.8.1
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> We are using NMS AMQP with Spring Messaging. Under heavy load with not sufficient session caching (1) we observed the following error:
> System.OverflowException: Value was either too large or too small for a UInt16.
> at System.Convert.ToUInt16(UInt64 value)
> at Apache.NMS.AMQP.Meta.SessionInfo..ctor(Id sessionId)
> at Apache.NMS.AMQP.NmsSession..ctor(NmsConnection connection, Id sessionId, AcknowledgementMode acknowledgementMode)
> at Apache.NMS.AMQP.NmsConnection.CreateSession(AcknowledgementMode acknowledgementMode)
> at Spring.Messaging.Nms.Connections.CachingConnectionFactory.GetSession(IConnection con, AcknowledgementMode mode)
> at Spring.Messaging.Nms.Connections.CloseSupressingConnection.CreateSession(AcknowledgementMode acknowledgementMode)
> at Spring.Messaging.Nms.Core.NmsTemplate.Execute(ISessionCallback action, Boolean startConnection)
> It seems that only 65535 sessions can be created.
> https://github.com/apache/activemq-nms-amqp/blob/61693727e475b5b0e1265905dc97a841f47b2417/src/NMS.AMQP/Meta/SessionInfo.cs#L31-L32
--
This message was sent by Atlassian Jira
(v8.3.4#803005)