Bad numbers in getReadMessagesThroughput and getWrittenMessagesThroughput from acceptor using DemuxingIoHandler ---------------------------------------------------------------------------------------------------------------
Key: DIRMINA-501 URL: https://issues.apache.org/jira/browse/DIRMINA-501 Project: MINA Issue Type: Bug Components: Core Affects Versions: 2.0.0-M1 Environment: AIX/Windows with JDK5/JDK6 Reporter: Frederic Bregier Priority: Minor I ran an simple example that do the following : - One server is configured using DemuxingIoHandler and ObjectSerializationCodecFactory It will print every 100 messages from one particular client the statistics available from the acceptor. - One client generates 30 threads and each are configured using ObjectSerializationCodecFactory. Each thread will send 1000 simple messages and one particular thread will print statistics available from the connector. Bytes (Read or Write) and Message Write seem OK. But Message Read are always 0 on server and should not. This is not critical bug but I did not find the reason until now. So I will join my code example in order to allow one to reproduce the problem. Here are some example of output: Server is Running Acceptor Active since: Fri Dec 21 19:02:07 CET 2007 Cumulative Sessions: 30 Maximum Concurrent Sessions: 30 Current Active Sessions: 30 Bytes read by Second: 0.0 Messages read by Second: 0.0 Cumulative Read Messages: 0 Bytes written by Second: 0.0 Messages written by Second: 0.0 Cumulative Written Messages: 0 Acceptor Active since: Fri Dec 21 19:02:07 CET 2007 Cumulative Sessions: 30 Maximum Concurrent Sessions: 30 Current Active Sessions: 30 Bytes read by Second: 25678.52870813397 Messages read by Second: 0.0 Cumulative Read Messages: 0 Bytes written by Second: 0.0 Messages written by Second: 0.0 Cumulative Written Messages: 0 Acceptor Active since: Fri Dec 21 19:02:07 CET 2007 Cumulative Sessions: 30 Maximum Concurrent Sessions: 30 Current Active Sessions: 30 Bytes read by Second: 59211.86440677966 Messages read by Second: 0.0 Cumulative Read Messages: 0 Bytes written by Second: 0.0 Messages written by Second: 0.0 Cumulative Written Messages: 0 Acceptor Active since: Fri Dec 21 19:02:07 CET 2007 Cumulative Sessions: 30 Maximum Concurrent Sessions: 30 Current Active Sessions: 30 Bytes read by Second: 62399.271844660194 Messages read by Second: 0.0 Cumulative Read Messages: 0 Bytes written by Second: 0.0 Messages written by Second: 0.0 Cumulative Written Messages: 0 Acceptor Active since: Fri Dec 21 19:02:07 CET 2007 Cumulative Sessions: 30 Maximum Concurrent Sessions: 30 Current Active Sessions: 30 Bytes read by Second: 62923.377403846156 Messages read by Second: 0.0 Cumulative Read Messages: 0 Bytes written by Second: 0.0 Messages written by Second: 0.0 Cumulative Written Messages: 0 Acceptor Active since: Fri Dec 21 19:02:07 CET 2007 Cumulative Sessions: 30 Maximum Concurrent Sessions: 30 Current Active Sessions: 30 Bytes read by Second: 66384.01498595068 Messages read by Second: 0.0 Cumulative Read Messages: 0 Bytes written by Second: 0.0 Messages written by Second: 0.0 Cumulative Written Messages: 0 Acceptor Active since: Fri Dec 21 19:02:07 CET 2007 Cumulative Sessions: 30 Maximum Concurrent Sessions: 30 Current Active Sessions: 30 Bytes read by Second: 65675.67567567568 Messages read by Second: 0.0 Cumulative Read Messages: 0 Bytes written by Second: 0.0 Messages written by Second: 0.0 Cumulative Written Messages: 0 Acceptor Active since: Fri Dec 21 19:02:07 CET 2007 Cumulative Sessions: 30 Maximum Concurrent Sessions: 30 Current Active Sessions: 30 Bytes read by Second: 62191.40625 Messages read by Second: 0.0 Cumulative Read Messages: 0 Bytes written by Second: 0.0 Messages written by Second: 0.0 Cumulative Written Messages: 0 Acceptor Active since: Fri Dec 21 19:02:07 CET 2007 Cumulative Sessions: 30 Maximum Concurrent Sessions: 30 Current Active Sessions: 30 Bytes read by Second: 65749.09420289854 Messages read by Second: 0.0 Cumulative Read Messages: 0 Bytes written by Second: 0.0 Messages written by Second: 0.0 Cumulative Written Messages: 0 Acceptor Active since: Fri Dec 21 19:02:07 CET 2007 Cumulative Sessions: 30 Maximum Concurrent Sessions: 30 Current Active Sessions: 30 Bytes read by Second: 63222.12065813528 Messages read by Second: 0.0 Cumulative Read Messages: 0 Bytes written by Second: 0.0 Messages written by Second: 0.0 Cumulative Written Messages: 0 Acceptor Active since: Fri Dec 21 19:02:07 CET 2007 Cumulative Sessions: 30 Maximum Concurrent Sessions: 30 Current Active Sessions: 29 Bytes read by Second: 63812.199519230766 Messages read by Second: 0.0 Cumulative Read Messages: 0 Bytes written by Second: 0.0 Messages written by Second: 0.0 Cumulative Written Messages: 0 Server is Stopping Server is Stopped Client is Running Connector Active since: Fri Dec 21 19:02:17 CET 2007 Cumulative Sessions: 1 Maximum Concurrent Sessions: 1 Current Active Sessions: 1 Bytes read by Second: 0.0 Messages read by Second: 0.0 Cumulative Read Messages: 0 Bytes written by Second: 0.0 Messages written by Second: 0.0 Cumulative Written Messages: 0 Connector Active since: Fri Dec 21 19:02:17 CET 2007 Cumulative Sessions: 1 Maximum Concurrent Sessions: 1 Current Active Sessions: 1 Bytes read by Second: 0.0 Messages read by Second: 0.0 Cumulative Read Messages: 0 Bytes written by Second: 1181.7084213703592 Messages written by Second: 13.582855418050105 Cumulative Written Messages: 99 Connector Active since: Fri Dec 21 19:02:17 CET 2007 Cumulative Sessions: 1 Maximum Concurrent Sessions: 1 Current Active Sessions: 1 Bytes read by Second: 0.0 Messages read by Second: 0.0 Cumulative Read Messages: 0 Bytes written by Second: 1975.523444411678 Messages written by Second: 22.707166027720437 Cumulative Written Messages: 199 Connector Active since: Fri Dec 21 19:02:17 CET 2007 Cumulative Sessions: 1 Maximum Concurrent Sessions: 1 Current Active Sessions: 1 Bytes read by Second: 0.0 Messages read by Second: 0.0 Cumulative Read Messages: 0 Bytes written by Second: 2039.0625 Messages written by Second: 23.4375 Cumulative Written Messages: 299 Connector Active since: Fri Dec 21 19:02:17 CET 2007 Cumulative Sessions: 1 Maximum Concurrent Sessions: 1 Current Active Sessions: 1 Bytes read by Second: 0.0 Messages read by Second: 0.0 Cumulative Read Messages: 0 Bytes written by Second: 2117.487980769231 Messages written by Second: 24.338942307692307 Cumulative Written Messages: 399 Connector Active since: Fri Dec 21 19:02:17 CET 2007 Cumulative Sessions: 1 Maximum Concurrent Sessions: 1 Current Active Sessions: 1 Bytes read by Second: 0.0 Messages read by Second: 0.0 Cumulative Read Messages: 0 Bytes written by Second: 2151.468315301391 Messages written by Second: 24.72952086553323 Cumulative Written Messages: 499 Connector Active since: Fri Dec 21 19:02:17 CET 2007 Cumulative Sessions: 1 Maximum Concurrent Sessions: 1 Current Active Sessions: 1 Bytes read by Second: 0.0 Messages read by Second: 0.0 Cumulative Read Messages: 0 Bytes written by Second: 2243.9403356121816 Messages written by Second: 25.79241765071473 Cumulative Written Messages: 599 Connector Active since: Fri Dec 21 19:02:17 CET 2007 Cumulative Sessions: 1 Maximum Concurrent Sessions: 1 Current Active Sessions: 1 Bytes read by Second: 0.0 Messages read by Second: 0.0 Cumulative Read Messages: 0 Bytes written by Second: 2117.487980769231 Messages written by Second: 24.338942307692307 Cumulative Written Messages: 699 Connector Active since: Fri Dec 21 19:02:17 CET 2007 Cumulative Sessions: 1 Maximum Concurrent Sessions: 1 Current Active Sessions: 1 Bytes read by Second: 0.0 Messages read by Second: 0.0 Cumulative Read Messages: 0 Bytes written by Second: 2216.56050955414 Messages written by Second: 25.477707006369428 Cumulative Written Messages: 800 Connector Active since: Fri Dec 21 19:02:17 CET 2007 Cumulative Sessions: 1 Maximum Concurrent Sessions: 1 Current Active Sessions: 1 Bytes read by Second: 0.0 Messages read by Second: 0.0 Cumulative Read Messages: 0 Bytes written by Second: 2077.7709736680954 Messages written by Second: 23.882424984690754 Cumulative Written Messages: 899 Connector Active since: Fri Dec 21 19:02:17 CET 2007 Cumulative Sessions: 1 Maximum Concurrent Sessions: 1 Current Active Sessions: 1 Bytes read by Second: 0.0 Messages read by Second: 0.0 Cumulative Read Messages: 0 Bytes written by Second: 2130.0884955752213 Messages written by Second: 24.48377581120944 Cumulative Written Messages: 999 Rk:1 MsgStop Client is Stopping Client is Stopped -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.