Re: [Fwd: Re: High latency in Mina ?]

2007-03-30 Thread Emmanuel Lecharny
James Im a écrit : Ok, so you seems to have missed a 'go fast' parameter. In my opinion, it is not your fault. It is mina that is not being user friendly. MINA should take care of these details itself. This optimization wisdom should be capture into mina so that everyone is not forced to be an

Re: [Fwd: Re: High latency in Mina ?]

2007-03-30 Thread Emmanuel Lecharny
Alex Karasulu a écrit : Emmanuel, I have done some more test, on the 'big server' ( 8 CPUs), changing the SocketAcceptor initialization with something like what you suggested : tcpAcceptor = new SocketAcceptor( Runtime.getRuntime().availableProcessors(), threadPoolExecutor )

Re: [Fwd: Re: High latency in Mina ?]

2007-03-30 Thread Emmanuel Lecharny
Greg Duffy a écrit : Emmanuel, Awesome! That seems to have helped quite a bit. More than a bit :) Have you thought about using a profiler during the load test? I think MINA has a YourKit Open Source license. Are we allowed to use that? It would be good to find out exactly where the hot s

Contribution question and TrafficMask

2007-03-30 Thread Greg Duffy
I'm almost done with a first stab at a new datagram transport. It's about 1500 LoC. Should I just open a JIRA and attach it as I've done with patches before, or is there a different process for something of this size? Maybe a sandbox or something? Let me know the best way to get started. Also, I

Re: [Fwd: Re: High latency in Mina ?]

2007-03-30 Thread Greg Duffy
That is correct, this is a relevant fix for improved performance on most server machines, especially with multi-core quickly becoming ubiquitous. It wouldn't be hard to change the default constructor. Perhaps you could open a JIRA issue to request this, or submit a small patch, as MINA developers

[jira] Commented: (DIRMINA-318) sessionIdle event is not fired for datagram sessions.

2007-03-30 Thread Greg Duffy (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12485700 ] Greg Duffy commented on DIRMINA-318: Just FYI, I'm working on implementing this in the new datagram transport.

Re: [Fwd: Re: High latency in Mina ?]

2007-03-30 Thread James Im
Ok, so you seems to have missed a 'go fast' parameter. In my opinion, it is not your fault. It is mina that is not being user friendly. MINA should take care of these details itself. This optimization wisdom should be capture into mina so that everyone is not forced to be an expert to have a fas

Re: [Fwd: Re: High latency in Mina ?]

2007-03-30 Thread Alex Karasulu
Emmanuel, I have done some more test, on the 'big server' ( 8 CPUs), changing the SocketAcceptor initialization with something like what you suggested : tcpAcceptor = new SocketAcceptor( Runtime.getRuntime().availableProcessors(), threadPoolExecutor ); (we already have this th

Re: [Fwd: Re: High latency in Mina ?]

2007-03-30 Thread Greg Duffy
Emmanuel, Awesome! That seems to have helped quite a bit. Have you thought about using a profiler during the load test? I think MINA has a YourKit Open Source license. Are we allowed to use that? It would be good to find out exactly where the hot spots are and figure out whether something in MINA

[Fwd: Re: High latency in Mina ?]

2007-03-30 Thread Emmanuel Lecharny
Oops, I just forgot the reply all... --- Begin Message --- Greg, I have done some more test, on the 'big server' ( 8 CPUs), changing the SocketAcceptor initialization with something like what you suggested : tcpAcceptor = new SocketAcceptor( Runtime.getRuntime().availableProc

Re: High latency in Mina ?

2007-03-30 Thread Emmanuel Lecharny
Csaba Endre Simon a écrit : Hi Emmanuel, Hi Csaba, I'm a little bit puzzled but some of the results I get. First of all, we are using MINA-1.0.1, with different JVM (JRockit, IBM, Sun) on different platforms (Linux, Mac OSx). The published results are on Linux? What kernel are you usin

Re: High latency in Mina ?

2007-03-30 Thread Csaba Endre Simon
Hi Emmanuel, I'm a little bit puzzled but some of the results I get. First of all, we are using MINA-1.0.1, with different JVM (JRockit, IBM, Sun) on different platforms (Linux, Mac OSx). The published results are on Linux? What kernel are you using? I also made some tests with MINA and on th

Re: High latency in Mina ?

2007-03-30 Thread Greg Duffy
This may be too obvious, but do you increase the number of processor threads on your multi-core machines? E.g., new SocketAcceptor(Runtime.getRuntime().availableProcessors(), new NewThreadExecutor()); -Greg On 3/30/07, Emmanuel Lecharny <[EMAIL PROTECTED]> wrote: Hi, Gaston, I forgot to tell

Re: High latency in Mina ?

2007-03-30 Thread Emmanuel Lecharny
Hi, Gaston, I forgot to tell that even if I use a faster server than the one where I ran the tests (the tests were conducted on a dual core intel based iMac), I get almost the very same resulst : no more than 2000 req/s (I also tested it on a 8 dual core CPU server). It looks like MINA itself ca

RE: High latency in Mina ?

2007-03-30 Thread Gaston Dombiak
Hey Emmanuel, I'm not sure I understand your point or if there is a problem. :) I would say that it is fine and even expected to find that most of your CPU time is spent in MINA (or I/O work) if your application is super fast (e.g. does not do much) and all you do is send and receive data to th

High latency in Mina ?

2007-03-30 Thread Emmanuel Lecharny
Hi guys, I'm currently doing some performance tests on Apache Directory Server, and I'm a little bit puzzled but some of the results I get. First of all, we are using MINA-1.0.1, with different JVM (JRockit, IBM, Sun) on different platforms (Linux, Mac OSx). The tests is quite simple : I have so

memory keeps increasing

2007-03-30 Thread mat
I observed my mina server memory keeps increasing if there is incoming packets, is it normal? My codec extends AbstractMessageDecoder and one session on decoder instance. Thanks.

Re: Tutorial List: Any more to come?

2007-03-30 Thread Mark Webb
will do that this weekend. I already have an account (elihusmails). Thank you. On 3/30/07, Maarten Bosteels <[EMAIL PROTECTED]> wrote: On 3/30/07, Mark Webb <[EMAIL PROTECTED]> wrote: > I started working on the JMX tutorial last night. I would like to be able > to: > 1) get access to the wik

Re: Tutorial List: Any more to come?

2007-03-30 Thread Maarten Bosteels
On 3/30/07, Mark Webb <[EMAIL PROTECTED]> wrote: I started working on the JMX tutorial last night. I would like to be able to: 1) get access to the wiki 2) learn how to edit to the wiki http://www.nabble.com/The-first-step-to-contribute-documentation-tf2697564.html#a7523270 Mark, you should a

Re: Tutorial List: Any more to come?

2007-03-30 Thread Mark Webb
I started working on the JMX tutorial last night. I would like to be able to: 1) get access to the wiki 2) learn how to edit to the wiki Where can I get information on these 2 items. On 3/30/07, Rodrigo Madera <[EMAIL PROTECTED]> wrote: We really really really need the documentation. If you

Re: Tutorial List: Any more to come?

2007-03-30 Thread Rodrigo Madera
We really really really need the documentation. If you want to, make an HTML or Word document and I'll sent it to the Wiki. Please don't get unmotivated because of technical concerns. Even in notepad if you will!! But please write it!! =o) Thanks! Rodrigo Madera On 3/30/07, Mark Webb <[EMAIL

Re: Tutorial List: Any more to come?

2007-03-30 Thread Mark Webb
Maybe I just don't know how to edit the wiki. I can log in to the wiki, but not sure how to add/update a new page. On 3/29/07, Trustin Lee <[EMAIL PROTECTED]> wrote: On 3/30/07, Mark Webb <[EMAIL PROTECTED]> wrote: > I would like to help out, what format would you like the tutorials in (HTML,

Re: MINA performance

2007-03-30 Thread Emmanuel Lecharny
Timur, FYI, the attached parts have been removed by the mailer. Could you just post them somwhere so we can read them ? The best solution would be to create a JIRA issue, and to attach those files into it. This is an interesting test you have done. Thanks a lot ! Emmanuel On 3/30/07, Timur I S

MINA performance

2007-03-30 Thread Timur I Shipilov
Hi, I spent some time investigating mina performance. I've written two simple multiplexing servers that collect 16 bytes from one connection and send it to all other. One was using mina and another was using NIO directly. Comparison program collects avarage lag in message delivery depending on