Re: MINA UDP Server performance

2013-03-26 Thread Jeff MAURY
Even if you running on a single processor, as you are writing into file, I would recommand to use a pool of threads to write onto files. You current setting prevents MINA from reading the socket while writing the previous packet to the file. Jeff On Tue, Mar 26, 2013 at 2:59 AM, pongjy123

Re: MINA UDP Server performance

2013-03-26 Thread Emmanuel Lécharny
Le 3/26/13 2:59 AM, pongjy123 a écrit : with no packet loss,Mina UDP server receives packet can reach 10/s? Only receive packets and sequential write files, do not do anything else. 1/s cannot be achieved in my test environment, DatagramSessionConfig dcfg =

Re: MINA UDP Server performance

2013-03-26 Thread Emmanuel Lécharny
Le 3/26/13 9:44 AM, Jeff MAURY a écrit : Even if you running on a single processor, as you are writing into file, I would recommand to use a pool of threads to write onto files. You current setting prevents MINA from reading the socket while writing the previous packet to the file. I forgot

Re: [MINA 3] codec api

2013-03-26 Thread Julien Vermillard
Finally I found a bit of time for a new try : https://git-wip-us.apache.org/repos/asf?p=mina.git;a=tree;f=codec/src/main/java/org/apache/mina/codec;h=bdd9419b66f3368bd693ff597e30f955fae2d5f9;hb=1a4ad866eb25e509a8eb4b5d52e4660152cc5ded The encoder, decoder are immutable and a state is passer fior

[jira] [Created] (DIRMINA-941) DefaultIoFilterChain (or any other class) should not catch Throwable without re-throwing

2013-03-26 Thread Chris Janicki (JIRA)
Chris Janicki created DIRMINA-941: - Summary: DefaultIoFilterChain (or any other class) should not catch Throwable without re-throwing Key: DIRMINA-941 URL: https://issues.apache.org/jira/browse/DIRMINA-941

Re:Re: MINA UDP Server performance

2013-03-26 Thread pongjy123
thanks,I will try another solution, A thread is responsible for receiving UDP messages, one thread is responsible for writing documents, through the queue communication between threads. At 2013-03-26 16:44:00,Jeff MAURY jeffma...@jeffmaury.com wrote: Even if you running on a single processor,