Re: The server stop response. dead lock?

2007-01-23 Thread Trustin Lee
http://mina.apache.org/reporting-a-bug.html On 1/23/07, sishen <[EMAIL PROTECTED]> wrote: In my application, i use mina 1.1 version. Now i do some perfermance test. Below is my test case. loop (50) { client send message to server. (500 client one time). sleep 1s. } And in the ex

Re: ByteBuffer Initial capacity limitation

2007-01-23 Thread Trustin Lee
On 1/23/07, afa654321 <[EMAIL PROTECTED]> wrote: Is there any limitation on the inital capacity of "org.apache.mina.common.ByteBuffer" The following line of code fails with the below-mentioned exceptoin: int capacity = 214748; org.apache.mina.common.ByteBuffer byteBuffer = org.apache.min

Fwd: The server stop response. dead lock?

2007-01-23 Thread sishen
-- Forwarded message -- From: sishen <[EMAIL PROTECTED]> Date: Jan 23, 2007 6:44 PM Subject: The server stop response. dead lock? To: mina-dev@directory.apache.org In my application, i use mina 1.1 version. Now i do some perfermance test. Below is my test case. loop (50) {

[jira] Commented: (DIRMINA-261) ioSession.close().join() when SO_LINGERING set

2007-01-23 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-261?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12466923 ] Trustin Lee commented on DIRMINA-261: - I contacted Sun to report this behavior. They gave me the URL of the fol

[jira] Resolved: (DIRMINA-337) SwingChatClient example throws NPE

2007-01-23 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Trustin Lee resolved DIRMINA-337. - Resolution: Fixed Assignee: Trustin Lee Your patch has been applied to the trunk. Thanks!

Re: Is there someone trying the AsynchronousFileIO?

2007-01-23 Thread Mike Heath
I'll try to look into this. It will be a couple of weeks before I really start to dig deep into the POSIX AIO stuff. I'm hoping to do some performance comparisons between Linux and Solaris which may be interesting. My goal is to be able to build more scalable network servers with MINA. I will d

Re: Program does not exit possible due to open resources

2007-01-23 Thread Trustin Lee
On 1/23/07, Akbar Munir <[EMAIL PROTECTED]> wrote: Thanks. It works. I believe this would also reduce the time that my connection thread would wait for the session to be established? No, it wouldn't. It is a timeout only applied when there's no connection attempts to manage. Though I have n

Re: IoFilter per session?

2007-01-23 Thread Niklas Therning
Newcomb, Michael-P57487 wrote: > When you install filters on the SocketAcceptor, those are all shared > between sessions created by that acceptor. Can you install filters on a > per-IoSession basis (eg. filters unique to that one session)? > > Certainly! In IoHandler.sessionCreated() you can do

IoFilter per session?

2007-01-23 Thread Newcomb, Michael-P57487
When you install filters on the SocketAcceptor, those are all shared between sessions created by that acceptor. Can you install filters on a per-IoSession basis (eg. filters unique to that one session)? Thanks, Michael

[jira] Updated: (DIRMINA-337) SwingChatClient example throws NPE

2007-01-23 Thread Maarten Bosteels (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Maarten Bosteels updated DIRMINA-337: - Attachment: patch.txt trivial fix > SwingChatClient example throws NPE > --

[jira] Created: (DIRMINA-337) SwingChatClient example throws NPE

2007-01-23 Thread Maarten Bosteels (JIRA)
SwingChatClient example throws NPE -- Key: DIRMINA-337 URL: https://issues.apache.org/jira/browse/DIRMINA-337 Project: MINA Issue Type: Bug Affects Versions: 2.0.0-M1 Reporter: Maarten Bosteels

Re: Program does not exit possible due to open resources

2007-01-23 Thread Akbar Munir
Thanks. It works. I believe this would also reduce the time that my connection thread would wait for the session to be established? Though I have not looked in to the code, but I was curious as to why the timeout timer can not be killed if it has determined that the connection can not be establis

The server stop response. dead lock?

2007-01-23 Thread sishen
In my application, i use mina 1.1 version. Now i do some perfermance test. Below is my test case. loop (50) { client send message to server. (500 client one time). sleep 1s. } And in the executing, the server stop response. It just hang. However, sometimes it passed the test. I sn

Re: Terminate client package problem

2007-01-23 Thread Eugene Labunsky
Sure, I'll try prepare it soon ... Thank you. 23.01.07, Niklas Therning <[EMAIL PROTECTED]> написал(а): Eugene Labunsky wrote: > Hello, > > I have problem with client package - when link beetwen the client & > server (both based on MINA 1.0.1) closed client package exit with code 0. > Sure in t

Re: Is there someone trying the AsynchronousFileIO?

2007-01-23 Thread yueyu lin
I have to stop the experiment. The most surprise is that I use pure C/pthread to implement the similar test, the performance is even bad than the java version. I read some material, it was said that the Linux thread and AIO performance are not so good. I don't know if it can explain the performanc