There is a typo in LoggingFilter, where messageSent print IDLE, fixed it,
and here are the logs

[29 Jul 2013 18:21:30,829] [main] INFO
 org.apache.mina.monitoring.NioTcpEchoServerWithMonitoring  - starting echo
server
[29 Jul 2013 18:21:30,934] [main] INFO
 org.apache.mina.transport.nio.NioTcpServer  - binding address
0.0.0.0/0.0.0.0:51002
[29 Jul 2013 18:21:34,116] [SelectorWorker Server-I/O-1] INFO
 LoggingFilter1  - OPENED
[29 Jul 2013 18:21:34,117] [SelectorWorker Server-I/O-1] INFO
 org.apache.mina.monitoring.NioTcpEchoServerWithMonitoring  - session
(0x00000000: org.apache.mina.transport.nio.NioTcpServer, server,
/0:0:0:0:0:0:0:1:56956 => /0:0:0:0:0:0:0:1:51002) open
[29 Jul 2013 18:21:34,117] [SelectorWorker Server-I/O-1] INFO
 org.apache.mina.monitoring.NioTcpEchoServerWithMonitoring  - session
opened (0x00000000: org.apache.mina.transport.nio.NioTcpServer, server,
/0:0:0:0:0:0:0:1:56956 => /0:0:0:0:0:0:0:1:51002)
[29 Jul 2013 18:21:34,120] [SelectorWorker Server-I/O-1] INFO
 LoggingFilter1  - WRITTING: WriteRequest[No future, Original message :
'ByteBuffer[len=8,str='welcome
']', Encoded message : 'ByteBuffer[len=8,bytes='0x77 0x65 0x6C 0x63 0x6F
0x6D 0x65 0x0A']']
[29 Jul 2013 18:21:34,121] [SelectorWorker Server-I/O-1] INFO
 org.apache.mina.monitoring.NioTcpEchoServerWithMonitoring  - message
java.nio.HeapByteBuffer[pos=8 lim=8 cap=8] sent
[29 Jul 2013 18:21:34,121] [SelectorWorker Server-I/O-1] INFO
 LoggingFilter1  - SENT
[29 Jul 2013 18:21:35,826] [SelectorWorker Server-I/O-1] INFO
 LoggingFilter1  - RECEIVED: ByteBuffer[len=6,str='test
']
[29 Jul 2013 18:21:35,826] [SelectorWorker Server-I/O-1] INFO
 org.apache.mina.monitoring.NioTcpEchoServerWithMonitoring  - echoing
[29 Jul 2013 18:21:35,826] [SelectorWorker Server-I/O-1] INFO
 LoggingFilter1  - WRITTING: WriteRequest[No future, Original message :
'ByteBuffer[len=6,str='test
']', Encoded message : 'ByteBuffer[len=6,bytes='0x74 0x65 0x73 0x74 0x0D
0x0A']']
[29 Jul 2013 18:21:35,826] [SelectorWorker Server-I/O-1] INFO
 org.apache.mina.monitoring.NioTcpEchoServerWithMonitoring  - message
java.nio.DirectByteBuffer[pos=6 lim=6 cap=65536] sent
[29 Jul 2013 18:21:35,826] [SelectorWorker Server-I/O-1] INFO
 LoggingFilter1  - SENT
[29 Jul 2013 18:21:36,946] [IdleChecker] INFO  LoggingFilter1  - IDLE
[29 Jul 2013 18:21:36,946] [IdleChecker] INFO
 org.apache.mina.monitoring.NioTcpEchoServerWithMonitoring  - session
(0x00000000: org.apache.mina.transport.nio.NioTcpServer, server,
/0:0:0:0:0:0:0:1:56956 => /0:0:0:0:0:0:0:1:51002) idle
[29 Jul 2013 18:21:36,947] [IdleChecker] INFO  LoggingFilter1  - IDLE
[29 Jul 2013 18:21:36,947] [IdleChecker] INFO
 org.apache.mina.monitoring.NioTcpEchoServerWithMonitoring  - session
(0x00000000: org.apache.mina.transport.nio.NioTcpServer, server,
/0:0:0:0:0:0:0:1:56956 => /0:0:0:0:0:0:0:1:51002) idle
[29 Jul 2013 18:21:38,929] [SelectorWorker Server-I/O-1] INFO
 LoggingFilter1  - RECEIVED: ByteBuffer[len=6,str='test
']
[29 Jul 2013 18:21:38,929] [SelectorWorker Server-I/O-1] INFO
 org.apache.mina.monitoring.NioTcpEchoServerWithMonitoring  - echoing
[29 Jul 2013 18:21:38,929] [SelectorWorker Server-I/O-1] INFO
 LoggingFilter1  - WRITTING: WriteRequest[No future, Original message :
'ByteBuffer[len=6,str='test
']', Encoded message : 'ByteBuffer[len=6,bytes='0x74 0x65 0x73 0x74 0x0D
0x0A']']
[29 Jul 2013 18:21:38,929] [SelectorWorker Server-I/O-1] INFO
 org.apache.mina.monitoring.NioTcpEchoServerWithMonitoring  - message
java.nio.DirectByteBuffer[pos=6 lim=6 cap=65536] sent
[29 Jul 2013 18:21:38,930] [SelectorWorker Server-I/O-1] INFO
 LoggingFilter1  - SENT
[29 Jul 2013 18:21:39,949] [IdleChecker] INFO  LoggingFilter1  - IDLE
[29 Jul 2013 18:21:39,950] [IdleChecker] INFO
 org.apache.mina.monitoring.NioTcpEchoServerWithMonitoring  - session
(0x00000000: org.apache.mina.transport.nio.NioTcpServer, server,
/0:0:0:0:0:0:0:1:56956 => /0:0:0:0:0:0:0:1:51002) idle
[29 Jul 2013 18:21:39,950] [IdleChecker] INFO  LoggingFilter1  - IDLE
[29 Jul 2013 18:21:39,950] [IdleChecker] INFO
 org.apache.mina.monitoring.NioTcpEchoServerWithMonitoring  - session
(0x00000000: org.apache.mina.transport.nio.NioTcpServer, server,
/0:0:0:0:0:0:0:1:56956 => /0:0:0:0:0:0:0:1:51002) idle
[29 Jul 2013 18:21:50,713] [SelectorWorker Server-I/O-1] INFO
 LoggingFilter1  - RECEIVED: ByteBuffer[len=6,str='b;ah
']
[29 Jul 2013 18:21:50,713] [SelectorWorker Server-I/O-1] INFO
 org.apache.mina.monitoring.NioTcpEchoServerWithMonitoring  - echoing
[29 Jul 2013 18:21:50,713] [SelectorWorker Server-I/O-1] INFO
 LoggingFilter1  - WRITTING: WriteRequest[No future, Original message :
'ByteBuffer[len=6,str='b;ah
']', Encoded message : 'ByteBuffer[len=6,bytes='0x62 0x3B 0x61 0x68 0x0D
0x0A']']
[29 Jul 2013 18:21:50,713] [SelectorWorker Server-I/O-1] INFO
 org.apache.mina.monitoring.NioTcpEchoServerWithMonitoring  - message
java.nio.DirectByteBuffer[pos=6 lim=6 cap=65536] sent
[29 Jul 2013 18:21:50,714] [SelectorWorker Server-I/O-1] INFO
 LoggingFilter1  - SENT
[29 Jul 2013 18:21:51,960] [IdleChecker] INFO  LoggingFilter1  - IDLE
[29 Jul 2013 18:21:51,960] [IdleChecker] INFO
 org.apache.mina.monitoring.NioTcpEchoServerWithMonitoring  - session
(0x00000000: org.apache.mina.transport.nio.NioTcpServer, server,
/0:0:0:0:0:0:0:1:56956 => /0:0:0:0:0:0:0:1:51002) idle
[29 Jul 2013 18:21:51,960] [IdleChecker] INFO  LoggingFilter1  - IDLE
[29 Jul 2013 18:21:51,960] [IdleChecker] INFO
 org.apache.mina.monitoring.NioTcpEchoServerWithMonitoring  - session
(0x00000000: org.apache.mina.transport.nio.NioTcpServer, server,
/0:0:0:0:0:0:0:1:56956 => /0:0:0:0:0:0:0:1:51002) idle
[29 Jul 2013 18:21:55,941] [main] INFO
 org.apache.mina.transport.nio.NioTcpServer  - unbinding
0.0.0.0/0.0.0.0:51002


On Mon, Jul 29, 2013 at 6:17 PM, Ashish <paliwalash...@gmail.com> wrote:

> Is there a way to configure or disable Session Idle checker?
>
> I used following code (writing an example with monitoring). I need to test
> the Stats, so need a longer timeout.
>
> server.getSessionConfig().setIdleTimeInMillis(IdleStatus.READ_IDLE,
> 60*60*60);
> server.getSessionConfig().setIdleTimeInMillis(IdleStatus.WRITE_IDLE,
> 60*60*60);
>
> but I am getting IDLE event fired
>
> [29 Jul 2013 18:13:40,601] [main] INFO
>  org.apache.mina.monitoring.NioTcpEchoServerWithMonitoring  - starting echo
> server
> [29 Jul 2013 18:13:40,705] [main] INFO
>  org.apache.mina.transport.nio.NioTcpServer  - binding address
> 0.0.0.0/0.0.0.0:51002
> [29 Jul 2013 18:13:43,478] [SelectorWorker Server-I/O-1] INFO
>  LoggingFilter1  - OPENED
> [29 Jul 2013 18:13:43,478] [SelectorWorker Server-I/O-1] INFO
>  org.apache.mina.monitoring.NioTcpEchoServerWithMonitoring  - session
> (0x00000000: org.apache.mina.transport.nio.NioTcpServer, server,
> /0:0:0:0:0:0:0:1:56805 => /0:0:0:0:0:0:0:1:51002) open
> [29 Jul 2013 18:13:43,478] [SelectorWorker Server-I/O-1] INFO
>  org.apache.mina.monitoring.NioTcpEchoServerWithMonitoring  - session
> opened (0x00000000: org.apache.mina.transport.nio.NioTcpServer, server,
> /0:0:0:0:0:0:0:1:56805 => /0:0:0:0:0:0:0:1:51002)
> [29 Jul 2013 18:13:43,481] [SelectorWorker Server-I/O-1] INFO
>  LoggingFilter1  - WRITTING: WriteRequest[No future, Original message :
> 'ByteBuffer[len=8,str='welcome
> ']', Encoded message : 'ByteBuffer[len=8,bytes='0x77 0x65 0x6C 0x63 0x6F
> 0x6D 0x65 0x0A']']
> [29 Jul 2013 18:13:43,482] [SelectorWorker Server-I/O-1] INFO
>  org.apache.mina.monitoring.NioTcpEchoServerWithMonitoring  - message
> java.nio.HeapByteBuffer[pos=8 lim=8 cap=8] sent
> [29 Jul 2013 18:13:43,482] [SelectorWorker Server-I/O-1] INFO
>  LoggingFilter1  - IDLE
> [29 Jul 2013 18:13:44,715] [IdleChecker] INFO  LoggingFilter1  - IDLE
> [29 Jul 2013 18:13:44,715] [IdleChecker] INFO
>  org.apache.mina.monitoring.NioTcpEchoServerWithMonitoring  - session
> (0x00000000: org.apache.mina.transport.nio.NioTcpServer, server,
> /0:0:0:0:0:0:0:1:56805 => /0:0:0:0:0:0:0:1:51002) idle
> [29 Jul 2013 18:13:44,715] [IdleChecker] INFO  LoggingFilter1  - IDLE
> [29 Jul 2013 18:13:44,715] [IdleChecker] INFO
>  org.apache.mina.monitoring.NioTcpEchoServerWithMonitoring  - session
> (0x00000000: org.apache.mina.transport.nio.NioTcpServer, server,
> /0:0:0:0:0:0:0:1:56805 => /0:0:0:0:0:0:0:1:51002) idle
> [29 Jul 2013 18:13:47,597] [SelectorWorker Server-I/O-1] INFO
>  LoggingFilter1  - RECEIVED: ByteBuffer[len=11,str='blah blah
> ']
> [29 Jul 2013 18:13:47,597] [SelectorWorker Server-I/O-1] INFO
>  org.apache.mina.monitoring.NioTcpEchoServerWithMonitoring  - echoing
> [29 Jul 2013 18:13:47,597] [SelectorWorker Server-I/O-1] INFO
>  LoggingFilter1  - WRITTING: WriteRequest[No future, Original message :
> 'ByteBuffer[len=11,str='blah blah
> ']', Encoded message : 'ByteBuffer[len=11,bytes='0x62 0x6C 0x61 0x68 0x20
> 0x62 0x6C 0x61 0x68 0x0D 0x0A']']
> [29 Jul 2013 18:13:47,597] [SelectorWorker Server-I/O-1] INFO
>  org.apache.mina.monitoring.NioTcpEchoServerWithMonitoring  - message
> java.nio.DirectByteBuffer[pos=11 lim=11 cap=65536] sent
> [29 Jul 2013 18:13:47,598] [SelectorWorker Server-I/O-1] INFO
>  LoggingFilter1  - IDLE
> [29 Jul 2013 18:13:48,718] [IdleChecker] INFO  LoggingFilter1  - IDLE
> [29 Jul 2013 18:13:48,719] [IdleChecker] INFO
>  org.apache.mina.monitoring.NioTcpEchoServerWithMonitoring  - session
> (0x00000000: org.apache.mina.transport.nio.NioTcpServer, server,
> /0:0:0:0:0:0:0:1:56805 => /0:0:0:0:0:0:0:1:51002) idle
> [29 Jul 2013 18:13:48,719] [IdleChecker] INFO  LoggingFilter1  - IDLE
> [29 Jul 2013 18:13:48,719] [IdleChecker] INFO
>  org.apache.mina.monitoring.NioTcpEchoServerWithMonitoring  - session
> (0x00000000: org.apache.mina.transport.nio.NioTcpServer, server,
> /0:0:0:0:0:0:0:1:56805 => /0:0:0:0:0:0:0:1:51002) idle
> [29 Jul 2013 18:14:05,712] [main] INFO
>  org.apache.mina.transport.nio.NioTcpServer  - unbinding
> 0.0.0.0/0.0.0.0:51002
>
> Suggestions?
>
> --
> thanks
> ashish
>
> Blog: http://www.ashishpaliwal.com/blog
> My Photo Galleries: http://www.pbase.com/ashishpaliwal
>



-- 
thanks
ashish

Blog: http://www.ashishpaliwal.com/blog
My Photo Galleries: http://www.pbase.com/ashishpaliwal

Reply via email to