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

ASF subversion and git services commented on AMQNET-629:
--------------------------------------------------------

Commit 32e331f2655a5b976ea8c57988a3c1f9bc4f360c in activemq-nms-amqp's branch 
refs/heads/master from Michael André Pearce
[ https://gitbox.apache.org/repos/asf?p=activemq-nms-amqp.git;h=32e331f ]

Merge pull request #50 from HavretGC/refactoring-meta-classes

AMQNET-629: Rework Meta classes

> 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 Porebski
>            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)

Reply via email to