Re: CumulativeDecoder using UnderivableBuffer

2008-03-11 Thread (Trustin Lee)
Yes, but I think I need to consider more things like the changes in IoBuffer together for better solution. 2008-03-10 (월), 23:39 -0700, Sangjin Lee 쓰시길: > I might have misunderstood what you're proposing. Are you proposing to get > rid of the UnderivableBuffer, not the CumulativeDecoder? > Than

[jira] Created: (DIRMINA-545) Make ConnectFuture ready right after sessionCreated.

2008-03-11 Thread Trustin Lee (JIRA)
Make ConnectFuture ready right after sessionCreated. Key: DIRMINA-545 URL: https://issues.apache.org/jira/browse/DIRMINA-545 Project: MINA Issue Type: Improvement Components: Cor

[jira] Closed: (DIRMINA-545) Make ConnectFuture ready right after sessionCreated.

2008-03-11 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-545?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Trustin Lee closed DIRMINA-545. --- Resolution: Fixed Done. It was a very simple fix because ConnectFuture.setSession() is called only

[jira] Closed: (DIRMINA-546) Reduce unnecessary system calls when a new session is created.

2008-03-11 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-546?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Trustin Lee closed DIRMINA-546. --- Resolution: Fixed The following test method: @Test public void mina() throws Exception {

[jira] Created: (DIRMINA-546) Reduce unnecessary system calls when a new session is created.

2008-03-11 Thread Trustin Lee (JIRA)
Reduce unnecessary system calls when a new session is created. -- Key: DIRMINA-546 URL: https://issues.apache.org/jira/browse/DIRMINA-546 Project: MINA Issue Type: Improvement

Load Balancing Mina Apllication

2008-03-11 Thread Murat Ozdemir
Dear friends, How can we make load balancing to our Mina based J2SE applications into various servers? Murat OZDEMiR

[jira] Commented: (DIRMINA-546) Reduce unnecessary system calls when a new session is created.

2008-03-11 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12577412#action_12577412 ] Trustin Lee commented on DIRMINA-546: - I also did comparison against simple blocking I

[jira] Created: (DIRMINA-547) Reduce unnecessary thread creation and destruction caused by IdleStatusChecker

2008-03-11 Thread Trustin Lee (JIRA)
Reduce unnecessary thread creation and destruction caused by IdleStatusChecker -- Key: DIRMINA-547 URL: https://issues.apache.org/jira/browse/DIRMINA-547 Project: MINA

[jira] Closed: (DIRMINA-547) Reduce unnecessary thread creation and destruction caused by IdleStatusChecker

2008-03-11 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-547?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Trustin Lee closed DIRMINA-547. --- Resolution: Fixed Done. > Reduce unnecessary thread creation and destruction caused by IdleStatusCh

Re: Session creation overhead (Was: Re: performance of NioDatagramConnector.connect())

2008-03-11 Thread (Trustin Lee)
1a) has been resolved: https://issues.apache.org/jira/browse/DIRMINA-546 Performance has been significantly improved for short-living connections. I didn't resolve '1b)' because these getter calls are essential in most case. For example, they are usually used for logging. 3) also has been reso

[jira] Resolved: (DIRMINA-534) AbstractIoSession's getId()

2008-03-11 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-534?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Trustin Lee resolved DIRMINA-534. - Resolution: Won't Fix Fix Version/s: (was: 2.0.0-M2) Assignee: Trustin Lee >

Re: svn commit: r635812 - in /mina/asyncweb/trunk: common/pom.xml fileservice/pom.xml pom.xml server/pom.xml

2008-03-11 Thread Julien Vermillard
Hi, A good idea would be getting rid of the "concurrency" dependency. It's used only for the ThreadPoolFilter, which is not needed for using with MINA because MINA already do that. The two options are : 1 - short one : delete it, nobody use it, we all plug mina behind Asyncweb, 2 - longer one :

[jira] Created: (DIRMINA-548) subclass of CumulativeDecoder throws an UnsupportedOperationException if IoBuffer.slice() is used

2008-03-11 Thread Sangjin Lee (JIRA)
subclass of CumulativeDecoder throws an UnsupportedOperationException if IoBuffer.slice() is used - Key: DIRMINA-548 URL: https://issues.apache.org/jira/browse/DIRMINA

Re: svn commit: r635812 - in /mina/asyncweb/trunk: common/pom.xml fileservice/pom.xml pom.xml server/pom.xml

2008-03-11 Thread Alex Karasulu
Excellent thanks for this. BTW eventually I'd like to start discussing the various extension points for the container. Like bundles for services and filters. Alex On Tue, Mar 11, 2008 at 2:25 AM, <[EMAIL PROTECTED]> wrote: > Author: jvermillard > Date: Mon Mar 10 23:25:03 2008 > New Revision:

Re: Session creation overhead (Was: Re: performance of NioDatagramConnector.connect())

2008-03-11 Thread Mark Webb
Trustin, Could you provide more information on the way in which you test and profile MINA. I would like to set up a test environment, but am curious as to how others set theirs up. As for the profiler, I use YourKit and have been really happy with it. The only comment I have is for #2. Could w

[jira] Updated: (DIRMINA-415) Proxy support

2008-03-11 Thread James Furness (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-415?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] James Furness updated DIRMINA-415: -- Attachment: mina-connector-proxy-1.1.0.zip Updated to better support IoC containers. Fixed som

[jira] Updated: (DIRMINA-415) Proxy support

2008-03-11 Thread James Furness (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-415?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] James Furness updated DIRMINA-415: -- Attachment: (was: mina-connector-proxy-1.0.0.zip) > Proxy support > - > >

Re: How to transfer a big message

2008-03-11 Thread Mark Webb
I referenced ConnectFuture b/c it shows the building of the connection and the session.write(...). On Mon, Mar 10, 2008 at 10:34 PM, 이희승 (Trustin Lee) <[EMAIL PROTECTED]> wrote: > Uh.. you probably wanted to mention WriteFuture? > > > http://mina.apache.org/report/trunk/apidocs/org/apache/mina

executor filter chain behavior

2008-03-11 Thread Matt Mehalso
All - We are having some strange behavior with our MINA 1.0.9-based server during load test. I may be misinterpreting the purpose of an executor in the filter chain - please let me know if I have an incorrect understanding of its usage. Our server is a pretty simple asynchronous request/response

Re: executor filter chain behavior

2008-03-11 Thread Matt Mehalso
I see now that this is the expected behavior in Mina 1.x. We can't use Mina 2.0/UnorderedExecutorFilter as we cannot use Java 1.5 in our environment. Has anyone published a custom version of an unordered ExecutorFilter for Java 1.4? Otherwise I guess we'll just write our own. Thanks, Matt On Tu

[jira] Updated: (DIRMINA-499) Bindings for Scala

2008-03-11 Thread Rich Dougherty (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-499?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rich Dougherty updated DIRMINA-499: --- Attachment: bindings-for-scala.3.patch Updated patch to latest revision on trunk (635930) an

[jira] Commented: (DIRMINA-514) Session closing problem on Mac OS X

2008-03-11 Thread Rich Dougherty (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12577636#action_12577636 ] Rich Dougherty commented on DIRMINA-514: A "me too" for this bug. I see this pro

[GSoC] MINA performance tuning platform

2008-03-11 Thread Alex Karasulu
Hi students and potential MINA mentors, I had a couple conversations with a few peeps that wished they had a month or two to write a slick new framework for load testing MINA based applications while using MINA itself to write the framework. My experiences with MINA and various crappy tools out t

Re: executor filter chain behavior

2008-03-11 Thread (Trustin Lee)
You can still implement your own ExecutorFilter with MINA 1.x. It sould be pretty easy. Another option is to use byte code manipulation tool such as retrotranslator. 2008-03-11 (화), 15:04 -0400, Matt Mehalso 쓰시길: > I see now that this is the expected behavior in Mina 1.x. We can't use Mina > 2.

Re: How to transfer a big message

2008-03-11 Thread (Trustin Lee)
Oh I see. :) 2008-03-11 (화), 14:11 -0400, Mark Webb 쓰시길: > I referenced ConnectFuture b/c it shows the building of the connection > and the session.write(...). > > > > On Mon, Mar 10, 2008 at 10:34 PM, 이희승 (Trustin Lee) <[EMAIL PROTECTED]> wrote: > > Uh.. you probably wanted to mention WriteFut

Re: [OT] Asynchronous database drivers

2008-03-11 Thread (Trustin Lee)
I think this is a great idea considering every bottleneck we find out eventually is often a backend such as database. I'd like to ping my colleagues who are trying to store web documents into MySQL database. Cheers, 2008-02-04 (월), 12:12 -0700, Mike Heath 쓰시길: > This past weekend I made a releas

[jira] Resolved: (DIRMINA-529) use isPrimitive() instead of comparing the string to a list of primitives

2008-03-11 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-529?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Trustin Lee resolved DIRMINA-529. - Resolution: Fixed Assignee: Trustin Lee Thanks for the patch. It has been applied to the

[jira] Commented: (DIRMINA-529) use isPrimitive() instead of comparing the string to a list of primitives

2008-03-11 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-529?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12577680#action_12577680 ] Trustin Lee commented on DIRMINA-529: - I'm not sure that isPrimitive() is slower than

Re: Session creation overhead (Was: Re: performance of NioDatagramConnector.connect())

2008-03-11 Thread (Trustin Lee)
I just wrote a very simple JUnit test case that measures the amount of time taken to connect and disconnect from MINA server. It takes only a few minutes to write it, and the improvement was obvious (about 2~3 times faster) I used YourKit profiler to track this problem, and I compared MINA with s

[jira] Commented: (DIRMINA-258) Example of an XML server and Client.

2008-03-11 Thread Mark Webb (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-258?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12577686#action_12577686 ] Mark Webb commented on DIRMINA-258: --- I have the code compiling and running with the 2.0

[jira] Created: (DIRMINA-549) Inconsistency in managed session set under heavy load

2008-03-11 Thread Trustin Lee (JIRA)
Inconsistency in managed session set under heavy load - Key: DIRMINA-549 URL: https://issues.apache.org/jira/browse/DIRMINA-549 Project: MINA Issue Type: Bug Components: Core

[jira] Resolved: (DIRMINA-549) Inconsistency in managed session set under heavy load

2008-03-11 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Trustin Lee resolved DIRMINA-549. - Resolution: Fixed Fixed by moving more code blocks under the synchronized (managedSessions) bloc

Re: sessionClosed is not called sometimes in heavy stress test contions.

2008-03-11 Thread (Trustin Lee)
Your analysis is correct, and I've just checked in the fix. However, I don't think your issue is related with MINA 2, because it uses a different way to manage a session set. Please check if my fix fixes your problem and close the following issue: https://issues.apache.org/jira/browse/DIRMINA-54

[jira] Updated: (DIRMINA-531) IoHandler.sessionClosed not called

2008-03-11 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-531?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Trustin Lee updated DIRMINA-531: Attachment: JUTestSessionCloseRegression.java I tried to reproduce the problem you described, but

[jira] Issue Comment Edited: (DIRMINA-531) IoHandler.sessionClosed not called

2008-03-11 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-531?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12577704#action_12577704 ] trustin edited comment on DIRMINA-531 at 3/11/08 9:52 PM: -- I

[jira] Commented: (DIRMINA-535) Session creation/opened callbacks are not called at logical times

2008-03-11 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12577711#action_12577711 ] Trustin Lee commented on DIRMINA-535: - The difference between sessionCreated and sessi

[jira] Resolved: (DIRMINA-539) NioDatagramConnector doesn't takes the TrafficClass value set to his DatagramSessionConfig

2008-03-11 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-539?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Trustin Lee resolved DIRMINA-539. - Resolution: Fixed Fix Version/s: 2.0.0-M2 Assignee: Trustin Lee It should be fix

[jira] Resolved: (DIRMINA-515) DatagramConnectorTest breaks in XP SP2

2008-03-11 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-515?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Trustin Lee resolved DIRMINA-515. - Resolution: Fixed Assignee: Trustin Lee It has been fixed. I ran the test in Windows Vist

[jira] Updated: (DIRMINA-536) TextLineDecoder throws an IndexOutOfBoundsException

2008-03-11 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-536?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Trustin Lee updated DIRMINA-536: Fix Version/s: 1.1.7 1.0.10 Assignee: Trustin Lee > TextLineDecoder th

[jira] Resolved: (DIRMINA-536) TextLineDecoder throws an IndexOutOfBoundsException

2008-03-11 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-536?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Trustin Lee resolved DIRMINA-536. - Resolution: Fixed Fixed as you suggested. Please close this issue if it resolves your problem.