MINA not honoring receive buffer size?

2007-10-26 Thread satish viswanatham
Hi, Here is the scenario that I am running into. I am running a TCP server, which should be receive messages of size upto 2k in one chunk. I do the following config that is used in acceptor bind: SocketAcceptorConfig cfg = new SocketAcceptorConfig(); cfg.getSessionConfig().setRe

RE: MINA's scalability

2007-10-26 Thread Gaston Dombiak
Hey Bogdan, You should be just fine using MINA. We are using MINA in Openfire and so far we got up to 170K concurrent connections in a single JVM. Those 170K sockets were sending traffic to the server all the time. In any case, it's up to your processing logic to be as fast as the incoming rate. O

MINA's scalability

2007-10-26 Thread Bogdan Ciprian Pistol
Hello, I would like to use Apache MINA for building a server that should scale well. The server will publish data to lots of clients (around 30 000). The majority of these connections will be active a few hours. The data being sent to the clients is small but at a high frequency (500-1000 millise

[Announce] SubEthaSMTP 2.0 released (now with MINA support)

2007-10-26 Thread Edouard De Oliveira
Hi everyone, We finally came to the release of this new version of the SMTP server that now relies on MINA's high performance NIO layer. Any suggestion's, improvement's ideas or simply experience feedbacks are welcome. Official message : http://www.subethamail.org/se/archive_msg.jsp?msgId=33545

mina-continuations in the sandbox

2007-10-26 Thread Niklas Therning
As previously discussed here (http://www.nabble.com/MINA-%2B-continuations-tf4686670s16868.html) I've been playing around with combining commons-javaflow and MINA. Now, I've added the code to the sandbox. I would be very happy if you would check it out and tell me what you think of it. You need to

Re: Bad Content-Length problem

2007-10-26 Thread Trustin Lee
On 10/26/07, johnnyv_cn <[EMAIL PROTECTED]> wrote: > > Dear all, > I am using MINA in my project to implement a TCP server. The server needs > to hold long-lived connections with clients. The server and clients use > HTTP-like protocol to exchange xml messages. Here is a simlified message > exampl

Re: why client received message in order?

2007-10-26 Thread Trustin Lee
Yes. The number of threads that handle the eventQueue in SessionBuffer per session is at most 1 at the same time. That's how the message order is maintained. HTH, Trustin On 10/26/07, tiandike <[EMAIL PROTECTED]> wrote: > > then the number of thread that handle eventQueue in SessionBuffer for

Bad Content-Length problem

2007-10-26 Thread johnnyv_cn
Dear all, I am using MINA in my project to implement a TCP server. The server needs to hold long-lived connections with clients. The server and clients use HTTP-like protocol to exchange xml messages. Here is a simlified message example: POST / HTTP/1.1 Content-Length: 69 "Content-Length" is

Re: a question about SessionBuffer

2007-10-26 Thread Trustin Lee
On 10/26/07, tiandike <[EMAIL PROTECTED]> wrote: > > I find in ExecutorFilter the request will be wrapped in event and put in > SessionBuffer.eventQueue field . > If my handler handle request slow and client send request faster ,will the > size of eventQueue became huge and lead to OutofMemo

[jira] Resolved: (DIRMINA-432) IoService method for writing Object to all the managed IoSession

2007-10-26 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-432?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Trustin Lee resolved DIRMINA-432. - Resolution: Fixed I added the following: * Set IoService.broadcast(Object message) * CompositeI

Re: why client received message in order?

2007-10-26 Thread tiandike
then the number of thread that handle eventQueue in SessionBuffer for one connector(session?) is at most 1 at the same time? Trustin Lee wrote: > > On 10/25/07, tiandike <[EMAIL PROTECTED]> wrote: >> >> I debug the source code and find it's SessionBuffer to maintain the >> order , > > True.

[jira] Updated: (DIRMINA-432) IoService method for writing Object to all the managed IoSession

2007-10-26 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-432?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Trustin Lee updated DIRMINA-432: Assignee: Trustin Lee (was: Julien Vermillard) Issue Type: New Feature (was:

a question about SessionBuffer

2007-10-26 Thread tiandike
I find in ExecutorFilter the request will be wrapped in event and put in SessionBuffer.eventQueue field . If my handler handle request slow and client send request faster ,will the size of eventQueue became huge and lead to OutofMemoryException error? Thanks -- View this message in conte

Re: a question when running performance test by loadruner

2007-10-26 Thread tiandike
Thanks! when i config these param ,the question disappear. I find in GenericObjectPool.java : /** * The default cap on the total number of active instances from the pool. * @see #getMaxActive */ public static final int DEFAULT_MAX_ACTIVE = 8; I doubt the phenomenon has