Re: If client machine shutdown abnormally, will MINA detect

2007-12-14 Thread mat
You can try out one of example on two machines(one client and one server). Unplug the power and see if server detects it. Just kidding. I believe the only 100% way to detect the client disconnection is to send the heartbeat message between client and server. On Dec 14, 2007 2:42 PM, johnnyv_cn <[E

Re: Send Message Failure

2007-12-13 Thread mat
On Dec 14, 2007 1:35 AM, Trustin Lee <[EMAIL PROTECTED]> wrote: > Hi Steve, > > On Dec 13, 2007 11:49 PM, Steve Johns <[EMAIL PROTECTED]> wrote: > > Thanks for Mina. It is a great project. > > Whenever we hear this, we become happy and try to work harder for > MINA. Thank you too! :D > > > > Af

Re: one port, multiple filter 'paths'

2007-12-13 Thread mat
Take a look at this: http://www.nabble.com/Many-message-decoder-encoder-tf4776815s16868.html#a13664414 If you have further questions, please ask me. On Dec 13, 2007 10:50 PM, Mark <[EMAIL PROTECTED]> wrote: > I am wondering if it is possible to develop a MINA-based server that > listens > on one

Re: Many message decoder/encoder

2007-12-11 Thread mat
I confirmed this. On Dec 9, 2007 6:41 PM, mat <[EMAIL PROTECTED]> wrote: > Actually I am not very clear about how Encoder works. > > *static* { > Set types = *new* HashSet(); > types.add(ResultMessage.*class*); --Decide if this encoder > gets

Re: getMessageTypes in MessageEncoder

2007-12-11 Thread mat
ss to TYPES and also implement public Set> getMessageTypes() { return TYPES; } However in your previous answer, you said getMessageTypes in NO use? Which means in Mina2.0, it is NO use? On Sep 28, 2007 10:51 PM, Trustin Lee <[EMAIL PROTECTED]> wrote: > On 8/23/07, mat <[EMAIL P

Re: Compress Filter?

2007-12-10 Thread mat
uch a custom protocol, you will probably have to roll your own > classes. You should be able to use the compression filter as a guide > though. > > --Mark > > > On Dec 3, 2007 4:57 AM, mat <[EMAIL PROTECTED]> wrote: > > > I just wonder how to implement a compress f

Re: Many message decoder/encoder

2007-12-09 Thread mat
Actually I am not very clear about how Encoder works. *static* { Set types = *new* HashSet(); types.add(ResultMessage.*class*); --Decide if this encoder gets invoke? TYPES = Collections.unmodifiableSet(types); } On 12/9/07, mat <[EMAIL PROTECTED]> wrote:

Re: Many message decoder/encoder

2007-12-08 Thread mat
Hi caantini, First please read: http://www.nabble.com/How-can-I-configure-multiple-decoders-in-MINA--tf3561571.html#a9946908 Actually I spent some time on this issue. Let me explain to you. 1) decodable does all the magics here. Mina calls the decodable of all the registered MessageDecoder classe

Re: VMPIPE and IPC

2007-12-07 Thread mat
st. Yes, myself really loves > this project and I spend much more than so-called full-time for this > project - every day and night literally. I hope you understand my > feeling at this moment and what discourages the committers who spends > enormous amount time for their little baby pro

Re: VMPIPE and IPC

2007-12-07 Thread mat
Can you tell me how? I can't find an example. Thanks. On 12/7/07, Trustin Lee <[EMAIL PROTECTED]> wrote: > Yes. Insert an ExecutorFilter to the filter chain like you did for > other transports. > > HTH, > Trustin > > On Dec 8, 2007 12:21 AM, mat <[EMAIL PROT

Re: VMPIPE and IPC

2007-12-07 Thread mat
Hi, can I config ExecutorFilter for VMPipe server? On 11/26/07, Trustin Lee <[EMAIL PROTECTED]> wrote: > > On Nov 26, 2007 11:10 AM, mat <[EMAIL PROTECTED]> wrote: > > The purpose of VM pipe is only for testing? I don't quite understand > "the > > perf

Compress Filter?

2007-12-03 Thread mat
I just wonder how to implement a compress filter(The one with Mina compresses the whole message, However mine protocol needs only compressing the body part of message)? Thanks.

Re: VMPIPE and IPC

2007-11-25 Thread mat
The purpose of VM pipe is only for testing? I don't quite understand "the performance will be much better, but not better than the direct invocation." On 11/23/07, Trustin Lee <[EMAIL PROTECTED]> wrote: > > On Nov 23, 2007 9:19 AM, mat <[EMAIL PROTECTED]> wrote: &

Re: Boardcast

2007-11-22 Thread mat
) in the trunk. On 11/23/07, Trustin Lee <[EMAIL PROTECTED]> wrote: > > On Nov 23, 2007 9:21 AM, mat <[EMAIL PROTECTED]> wrote: > > How can I implement boardcast in my application before Mina 2.0releases? > > Any suggestion? Thanks. > > IIRC, it's not diffe

Boardcast

2007-11-22 Thread mat
How can I implement boardcast in my application before Mina 2.0 releases? Any suggestion? Thanks.

Re: VMPIPE and IPC

2007-11-22 Thread mat
Hi Trustin, What about performance (throughput)comparing VMPipe to Socket? On 11/22/07, Trustin Lee <[EMAIL PROTECTED]> wrote: > > Hi Angel, > > On Nov 20, 2007 9:07 PM, Angel.Figueroa <[EMAIL PROTECTED]> wrote: > > > > IF the two java process are executing on the same java virtual machine, > it

Re: org.apache.mina.common.ByteBuffer.release( ) usage

2007-11-21 Thread mat
Mina core will do it at the proper place. On 11/20/07, Bogdan Ciprian Pistol <[EMAIL PROTECTED]> wrote: > > Hello, > > It is required to release the manually allocated ByteBuffers (eg. > ByteBuffer.allocate(some_size) )? > In org.apache.mina.example.httpserver.codec example in > HttpResponseEncode

Re: VmPipe

2007-11-21 Thread mat
VM Pipe works in the same VM (process) right? My understanding: VM Pipe is just a function through Mina standard interface. On 11/19/07, Angel.Figueroa <[EMAIL PROTECTED]> wrote: > > > Can VMPIPE be use in a production application, for decoupling the > connectivity layer from the business layer? I

Re: How to timeout connection attempt?

2007-10-24 Thread mat
I believe join is only to block the function call for certain time. setconnectTimeout means socket will keep trying until timeout. The only way to find out connection failure is catch the RuntimeIOException. On 10/25/07, bea <[EMAIL PROTECTED]> wrote: > > > Say I have some code as follows: > > Co

Re: why client received message in order?

2007-10-22 Thread mat
ed simultaneously for different IoSessions. > > If you want more parallel processing, have a look at > http://issues.apache.org/jira/browse/DIRMINA-334 > > Maarten > > > On 10/22/07, mat <[EMAIL PROTECTED]> wrote: > > > > Try client sends more than

Re: DoS attack to a MINA server

2007-10-22 Thread mat
I believe most of the firewall can provent the DoS. You can do some research on that. On 10/22/07, Mark <[EMAIL PROTECTED]> wrote: > > There are a couple of filters that will help out with this. Not sure > what version you are using, but the trunk has a BlacklistFilter and a > ConnectionThrottleF

Re: why client received message in order?

2007-10-22 Thread mat
ver handle b > faster than a and in this condition can my client receive the response b > first? > > > > mat-29 wrote: > > > > I didn't see why NOT if in your client side only single thread sending > the > > message. > > > > On 10/22/07,

Re: why client received message in order?

2007-10-21 Thread mat
I didn't see why NOT if in your client side only single thread sending the message. On 10/22/07, tiandike <[EMAIL PROTECTED]> wrote: > > > I modified the example of echoserver > > in my code I disable the default ThreadModel setting and configure the > number of I/O processor thread. > > > I don'

MessageDecoder or CumulativeProtocolDecoder

2007-10-21 Thread mat
Is there any performance tradeoff by using MessageDecoder instead of CumulativeProtocolDecoder?

Re: 答复: reply: mina performance

2007-10-21 Thread mat
Executors.newCachedThreadPool() is always preferred by IoService. What I said was ExecutorFilter. On 10/21/07, Brian McCallister <[EMAIL PROTECTED]> wrote: > > > On Oct 19, 2007, at 9:23 PM, mat wrote: > > > Try to use FixedThreadPool instead of CachedThreadPool when

Re: 答复: reply: mina performance

2007-10-19 Thread mat
In your server, I didn't find. config.setThreadModel(ThreadModel.MANUAL); ByteBuffer.setUseDirectBuffers(false); ByteBuffer.setAllocator(new SimpleByteBufferAllocator()); Try to use FixedThreadPool instead of CachedThreadPool when add a ExecutorFilter. On 10/19/07, Trustin Lee <[EMAIL PROTECTED]

Re: Combine a SocketConnector and a SocketAcceptor

2007-10-19 Thread mat
Why you need to do something like this? On 10/19/07, leafsax <[EMAIL PROTECTED]> wrote: > > Hi, > > I implemented a PeerServer and a PeerClient using SocketAcceptor and a > SocketConnector, > and they performed good on both side, the scalability, throughput and > stability were good. > Then I wan

Re: 2 questions: handler vs. filter concepts & ByteArrayStream to VO mapping

2007-10-18 Thread mat
You can read the tutorial first. http://mina.apache.org/documentation.html#Documentation-Tutorials On 10/19/07, Minjae Kim <[EMAIL PROTECTED]> wrote: > > Hi, quys, > This is the first time to upload a message to this mailing list. ;-) > > Let me tell you my questions. > I am designing and implemen

Re: [IP CLEARANCE] KeepAliveFilters.zip contribution from Indagon Oy

2007-10-18 Thread mat
Just wonder if my current code needs to change to extend ChainedIoHandler instead of extends IoHandlerAdapter? On 10/17/07, Trustin Lee <[EMAIL PROTECTED]> wrote: > > Hi community, > > The MINA project has received a contribution of the > KeepAliveFilters.zip from Indagon Oy. > > * The IP Clearanc

Re: How to pronounce mina?

2007-10-16 Thread mat
What else can we pronounce besides "mn"? ^^ just kidding. On 10/16/07, Mark <[EMAIL PROTECTED]> wrote: > > phonetically, I pronounce it "meena" > > > On 10/16/07, tiandike <[EMAIL PROTECTED]> wrote: > > > > > > How to pronounce mina? > > -- > > View this message in context: > > > http://ww

Re: [VOTE] Import KeepAlive functionality contribution under MINA PMC

2007-10-16 Thread mat
Should your ActiveKeepAliveFilter, assiveKeepAliveFilter both extend IoFilterAdapter like in the tutorial "Writing IoFilter"? And you can return IoFilter in Factory method? On 10/16/07, mat <[EMAIL PROTECTED]> wrote: > > Several questions on your KeepA

Re: [VOTE] Import KeepAlive functionality contribution under MINA PMC

2007-10-16 Thread mat
t use "config.getFilterChain().addFirst" in my original code. 2) A Client must use the createPassiveKeepAliveFilter? On 10/16/07, mat <[EMAIL PROTECTED]> wrote: > > +1 very important (Definitely a MUST filter) > > On 9/27/07, Mark <[EMAIL PROTECTED]> wrote: > > &g

Re: [VOTE] Import KeepAlive functionality contribution under MINA PMC

2007-10-16 Thread mat
+1 very important (Definitely a MUST filter) On 9/27/07, Mark <[EMAIL PROTECTED]> wrote: > > [X]: +1, import > > On 9/26/07, Michael Grundvig <[EMAIL PROTECTED]> wrote: > > > > +1, import > > > > - Original Message - > > From: "Trustin Lee" <[EMAIL PROTECTED]> > > To: > > Sent: Wednesday,

KeepAliveFilter

2007-10-16 Thread mat
I just wonder if Mina 2.0 will adopt any KeepAliveFilter(heartbeat)?

Re: how to drop client requests

2007-10-11 Thread mat
session.close() On 10/12/07, janya <[EMAIL PROTECTED]> wrote: > > > Hello, > > I am using MINA on the server side, accepting connections by extending > CumulativeProtocolDecoder. > The new incoming connections are processed in > protected boolean doDecode(IoSession session, ByteBuffer in, > Protoc

Re: IoSocketConnector max connection

2007-10-09 Thread mat
> > However, it should be fairly easy in trunk to create a meta > > SocketConnector that limits how many connections can be open at a time. > > This might be good functionality to add along with proxy and auto > > reconnect support. > > > > -Mike > > > >

Re: IoHandler & Connector

2007-10-08 Thread mat
the better it > will > serve a wide variety of systems. > > > On 10/8/07, mat <[EMAIL PROTECTED]> wrote: > > > > i just wonder why pass IoHandler reference to Connector but not make > > IoHandler interface (API) as parts of Connector? > > > > > > -- > ..Cheers > Mark >

IoHandler & Connector

2007-10-08 Thread mat
i just wonder why pass IoHandler reference to Connector but not make IoHandler interface (API) as parts of Connector?

Re: IoSocketConnector max connection

2007-10-05 Thread mat
I doubt whether it is supposed to be the part of IoSocketConnector's job? On 10/4/07, liquidchen <[EMAIL PROTECTED]> wrote: > > > Hi, > In the trunk version, can we limit the max connections for > IoSocketConnector?? like a > socket connection pool, because I dont want to connect to many >

Re: Encoding/Decoding ISO 8583 Message

2007-10-05 Thread mat
Find this for you. It is in Chinese. But I believe you are chinese right? ^^ http://blog.chinaunix.net/u/4864/showart_356546.html On 10/5/07, jian wu <[EMAIL PROTECTED]> wrote: > > Hi, > > We are planning to use Mina for a financial transaction project, which > requires > to encode/decode ISO 858

Re: MessageDecoderResult.OK

2007-10-02 Thread mat
No, Trustin. I was asking about actually how Mina handle this internally? Too lazy to read the source code.^^ On 10/2/07, Trustin Lee <[EMAIL PROTECTED]> wrote: > > On 10/2/07, mat <[EMAIL PROTECTED]> wrote: > > After MessageDecoderResult.OK in decode(), what mina handle B

MessageDecoderResult.OK

2007-10-02 Thread mat
After MessageDecoderResult.OK in decode(), what mina handle ByteBuffer in? Remove the remaining byte[] in ByteBuffer to new position? Or ByteBuffer has special function can do this?

Re: [VOTE] New name for org.apache.mina.common.ByteBuffer

2007-10-01 Thread mat
MinaByteBuffer since it extends from ByteBuffer. New ByteBuffer just a utility of Mina and nothing do with core. On 9/28/07, Trustin Lee <[EMAIL PROTECTED]> wrote: > > Hi community, > > We discussed about renaming org.apache.mina.common.ByteBuffer to > something else because it makes many people c

Re: poll: which logging framework are you using

2007-10-01 Thread mat
log4J On 9/29/07, Maarten Bosteels <[EMAIL PROTECTED]> wrote: > > It would be interesting to know which logging framework your MINA > applications are using. > > [ ] log4j > [ ] logback > [ ] java.util.logging > [ ] slf4j-simple > [ ] slf4j-nop > [ ] x4juli > [ ] other (please specify) > > Please,

Re: BroadcastIoSession merged into IoSession

2007-10-01 Thread mat
Will that be 2.0? On 9/27/07, Trustin Lee <[EMAIL PROTECTED]> wrote: > > Hi folks, > > I merged the only one method (i.e. write(Object message, SocketAddress > remoteAddress)) in BroadcastIoSession, so there's no more > BroadcastIoSession. I also explicitly documented it to be an optional > opera

Re: [VOTE] Release Apache MINA 1.0.6 and 1.1.3

2007-10-01 Thread mat
+1 On 9/29/07, 温少 <[EMAIL PROTECTED]> wrote: > > > [X]: +1, Release, very import feature : manual close connecotor!温少 > [EMAIL PROTECTED]> Date: Fri, 28 Sep 2007 22:50:46 +0200> From: > [EMAIL PROTECTED]> To: dev@mina.apache.org; [EMAIL PROTECTED]> > Subject: Re: [VOTE] Release Apache MINA 1.0.6 a

Re: New name for ByteBuffer?

2007-09-19 Thread mat
Do I have to change my current source code using ByteBuffer? On 9/19/07, Trustin Lee <[EMAIL PROTECTED]> wrote: > > I will fire the vote soon. I just can't right now because I'm pretty > busy preparing for a trip. Please don't stop brain-storming until > then! :D > > Trustin > > On 9/19/07, Rodr

Re: New name for ByteBuffer?

2007-09-18 Thread mat
Do I need to change my current codec using ByteBuffer? On 9/19/07, Maarten Bosteels <[EMAIL PROTECTED]> wrote: > > IoBuffer is OK for me, certainly better than MinaByteBuffer > > Maarten > > On 9/18/07, Cameron Taggart <[EMAIL PROTECTED]> wrote: > > > > I like IoBuffer. > > > > Look at the documen

Re: slightly OT: how to write an NIO provider

2007-09-13 Thread mat
What does that mean? Mina's NIO performance is not good enough? On 9/13/07, Trustin Lee <[EMAIL PROTECTED]> wrote: > > On 9/11/07, Mark <[EMAIL PROTECTED]> wrote: > > I am interested in writing an NIO provider and wondered if anyone here > has > > experience doing this. > > It would be great if we

Re: using SocketConnector on not reachable address result in full cpu

2007-09-10 Thread mat
{ e.printStackTrace(); } } } On 9/11/07, Adam Fisk <[EMAIL PROTECTED]> wrote: > > So we should not be catching the RuntimeIOException, is that right? > > One way around all of this would be to use the > InetAddress.isReachablemethod before trying to connect. I'

Re: Write called not within mina handlers problem.

2007-09-10 Thread mat
ByteBuffer.flip(); IoSession.write(ByteBuffer); On 9/10/07, Magarshak, Roman <[EMAIL PROTECTED]> wrote: > > Hi All, > I have the following problem: > When connection established I add a IoSession object to different > object, which some times needs to send a message to all connected > sockets.

Re: [jira] Updated: (DIRMINA-355) Modified sumup client to act as a jmeter javarequest sampler

2007-09-10 Thread mat
I tried this example today and define the number of sessions 300. However I found out lots of "Failed to connection" or "RuntimeIOException". On 3/9/07, monajit (JIRA) <[EMAIL PROTECTED]> wrote: > > > [ > https://issues.apache.org/jira/browse/DIRMINA-355?page=com.atlassian.jira.plugin.system.i

Re: using SocketConnector on not reachable address result in full cpu

2007-09-08 Thread mat
1) Please don't double post the same thread. Thanks. 2) Did you catch RuntimeIOException after ConnectFuture future = connector.connect()? The reconnect in a infinite loop without Thread.sleep() normally causes 100% CPU usage. On 9/8/07, YoungJoon, Chun <[EMAIL PROTECTED]> wrote: > > Hello. > >

Re: Performance issue with selector

2007-09-06 Thread mat
rmaces "that" better than windows does when we are talking about over 1K concurrent users. Maybe you should give a try. JDK 1.6(epoll) also may helps. I am too busy to start doing such a performance test. I will give the results if I do so. Good luck! > mat-29 wrote: > > > &

Re: Performance issue with selector

2007-09-06 Thread mat
Also check http://mina.apache.org/performance-test-reports.html !0K concurrent clients with 20K requests/sec and the benchmark is so impressive. What is the perfectage in the diagram, CPU usage? On 9/7/07, mat <[EMAIL PROTECTED]> wrote: > > Please search this thread: > *100

Re: Performance issue with selector

2007-09-06 Thread mat
eptor(4, Executors.newCachedThreadPool()); > It goes well until 1300-1500 clients, but then this is the same story. > > > mat-29 wrote: > > > > Did you use the echo example? What about the CPU usage? What's your CPU > > model? > > > > Did you a

Re: Performance issue with selector

2007-09-06 Thread mat
Did you use the echo example? What about the CPU usage? What's your CPU model? Did you add? ByteBuffer.setUseDirectBuffers(false); ByteBuffer.setAllocator(new SimpleByteBufferAllocator()); On 9/6/07, velytreuzien <[EMAIL PROTECTED]> wrote: > > > I'm running my application on the single cpu machi

Re: change default endian?

2007-09-05 Thread mat
Try this message.order(ByteOrder.LITTLE_ENDIAN) ; On 9/5/07, Sungwon Jung <[EMAIL PROTECTED]> wrote: > > ah, sorry. default is BIG_ENDIAN. > I'm mistake. :-) > > > On 9/5/07, mat <[EMAIL PROTECTED]> wrote: > > I believe Java always uses BIG_ENDIA

Re: problem of using mina communicate with c++ socket

2007-09-04 Thread mat
Futhermore, if method message.order(ByteOrder.LITTLE_ENDIAN) is called, int makeInt() is done by the message.order(). Am I right? On 9/5/07, mat <[EMAIL PROTECTED]> wrote: > > Sorry, I meant Java.nio API did the order convert for us. > > On 9/5/07, Lan Boon Ping <[EM

Re: problem of using mina communicate with c++ socket

2007-09-04 Thread mat
| > ( ( byte0 & 0xff ) << 0 ) ) ); > } > > Hope this help. > > On 9/5/07, 汤国军 <[EMAIL PROTECTED]> wrote: > > > > I don't know whether JVM do it for us. > > But seems that it do not do ByteOrder > > > > > >

Re: change default endian?

2007-09-04 Thread mat
I believe Java always uses BIG_ENDIAN. So does underlayer TCP communication. On 9/5/07, Sungwon Jung <[EMAIL PROTECTED]> wrote: > > Hello. I'm using MINA 1.1.2. > > default endian is LITTLE_ENDIAN. > > I opened two port in one server. > LITTLE_ENDIAN product use one port. > BIG_ENDIAN product use

Re: Monitor Multiple Processes

2007-09-03 Thread mat
Can JMX monitor multi JVM? On 9/4/07, Tan Ka Ju <[EMAIL PROTECTED]> wrote: > > Can JMX actually solve your requirements? > > Rgds, > kj. > > >>> "Trustin Lee" <[EMAIL PROTECTED]> 9/2/2007 7:56 PM >>> > On 9/1/07, mat <[EMAIL PROTE

Re: problem of using mina communicate with c++ socket

2007-09-03 Thread mat
Does JVM do the byte reserve for us in the method message.order( ByteOrder.LITTLE_ENDIAN) ? On 9/4/07, Lan Boon Ping <[EMAIL PROTECTED]> wrote: > > Hi, > > Be aware of little Endian(C++) and big Endian(Java), you should be able to > use the ByteBuffer to decode the Struct Employee corrrectly. For

Monitor Multiple Processes

2007-08-31 Thread mat
Hi, Guys How do you guys normally monitor multiple processes in different JVMs and on the different machines. For example, start and stop, CPU, memory usag, maybe change some configurations in the run time. Thanks a lot.

Re: efficient byte shuffling

2007-08-29 Thread mat
On 8/29/07, Rob Butler <[EMAIL PROTECTED]> wrote: > > Hello all, > > I've a few quick questions regarding byte buffers and recycling in Mina. > > Let's say I've got two connections to a Mina server. I'm sending messages > consisting of a "header" and "body" and I want to move messages these > betw

IoHandlerAdapter interacts with business logic class

2007-08-24 Thread mat
Can someone tell me how your business logic class interacts with IoHandlerAdapter? By passing the references to each other? Somehow, I feel a little bit weird to do so. Any better solution?

getMessageTypes in MessageEncoder

2007-08-23 Thread mat
I wonder what is the usage of getMessageTypes in MessageEncoder?

Re: Mina throughput

2007-08-21 Thread mat
Thanks. I need read more about your source code and see if it helps. Great job. On 8/22/07, Mehmet D. AKIN <[EMAIL PROTECTED]> wrote: > > Hi mat, > > Actually it is not faster than any hand made protocol encoder - > decoder, since it has the overhead of reflection. But m

Re: Mina throughput

2007-08-21 Thread mat
}Body; What bothered me is: 1) convert each integer field from little-endian to big-endian 2) use system.arraycopy in order to get each byte array and convert a byte array to string It takes really a lot of CPU time and memory for decode and encode. > Jeroen Brattinga > > > mat w

Re: Mina throughput

2007-08-21 Thread mat
; it cumbersome, although a struct would have been easier. > > > > But now that it's implemented, I only deal with nice and easy message > > objects that contain the processed data (using the > > DemuxingProtocolCodecFactory). > > > > Could you give a more

Re: Mina throughput

2007-08-21 Thread mat
, Mehmet D. AKIN <[EMAIL PROTECTED]> wrote: > > On 8/21/07, mat <[EMAIL PROTECTED]> wrote: > > The reason why I raised this thread is: recently I am really bothered > with > > following issue. > > > > My mina component has to connect to a legacy server wri

Re: Mina throughput

2007-08-21 Thread mat
ld say that the complexity is exactly the same for both > languages). > > I don't want to start a flame war, but I encourage anyone who want to > compare Java and C++ to compare things that are comparable, and not > blind guess what can be slow or fast in both languages. > > My

Re: Is Spring Integration of MINA recommended?

2007-08-15 Thread mat
On 8/16/07, Trustin Lee <[EMAIL PROTECTED]> wrote: > > On 8/16/07, mat <[EMAIL PROTECTED]> wrote: > > If so, why doesn't Mina design the classes DI comparable? So we don't > need > > make these integration classes? Am I right? Just a thought. >

Re: Is Spring Integration of MINA recommended?

2007-08-15 Thread mat
If so, why doesn't Mina design the classes DI comparable? So we don't need make these integration classes? Am I right? Just a thought. On 8/16/07, mat <[EMAIL PROTECTED]> wrote: > > If using PicoContainer, I still have to make the pico-integration classes > like mina-inte

Re: Is Spring Integration of MINA recommended?

2007-08-15 Thread mat
If using PicoContainer, I still have to make the pico-integration classes like mina-integration classes? On 7/18/07, peter royal <[EMAIL PROTECTED]> wrote: > > On Jul 17, 2007, at 6:43 PM, Rob Butler wrote: > > To use Spring for configuring MINA or not is of course a personal > > choice. I very m

Re: How to get MINA to detect a lost connection?

2007-08-15 Thread mat
https://issues.apache.org/jira/browse/DIRMINA-354 On 8/16/07, Yigal Rachman <[EMAIL PROTECTED]> wrote: > > Hi, Folks: > > I have an instrument driver that is built on MINA. During normal > operation, it does not write to the instrument, but just listens for > input from the instrument. This part

Re: Server supporting multiple protocols at the same time

2007-08-14 Thread mat
Only in MINA 2.0, you will be able to add more than one ProtocolCodecFilter. Am I right? On 8/14/07, Kevin Williams <[EMAIL PROTECTED]> wrote: > > Yes, you can. We have one IoHandler which delegates to different > codecs to process the request. > > On 8/14/07, Simon Aquilina <[EMAIL PROTECTED]> wr

Re: Mina: Performance and architecture design

2007-08-13 Thread mat
Will ByteBuffer.duplicate() cause memory leak? On 8/14/07, Trustin Lee <[EMAIL PROTECTED]> wrote: > > On 8/14/07, mat <[EMAIL PROTECTED]> wrote: > > Hi Trustin, > > > > I reviewed this thread and don't quite understand this one. "Basically, >

Re: Mina: Performance and architecture design

2007-08-13 Thread mat
On 10/16/06, Trustin Lee <[EMAIL PROTECTED]> wrote: > > On 10/11/06, Alessandro Torrisi <[EMAIL PROTECTED]> wrote: > > > > Now I have some more time and I want to optimize it. The core seems to > be > > quite stable, but I have memory and cpu problems. > > > Good to hear that MINA is stable! Now l

Re: Mina throughput

2007-08-10 Thread mat
etween Windows and *nix become really obvious > when you get to higher message counts. > > Michael > > - Original Message - > From: "mat" <[EMAIL PROTECTED]> > To: "dev" > Sent: Friday, August 10, 2007 11:24 AM > Subject: Mina throughput >

Mina throughput

2007-08-10 Thread mat
Does anyone have the throughput test by raw socket communication (keep-alive mode)? My colleague wrote a windows IOCP server whose throughput could reach 1.8m/sec. (5000message/sec in intranet).

IoFilter for boardcast encoding

2007-08-09 Thread mat
How should I write an encoding IoFilter for boardcasting to all iosessions? If doing this in IoHandler(for business logic), it seems that breaks the speration of concerns. Thanks.

Help on: ReadThrottleFilterBuilder

2007-08-08 Thread mat
This filter will automatically disable reads on an IoSession once the data batched for that session in the ExecutorFilterreaches a defined threshold (the default is 1 megabytes). Does that mean? (1 megab

Re: Is sessionClosed called after exceptionCaught?

2007-08-07 Thread mat
public void exceptionCaught(IoSession session, Throwable cause) { cause.printStackTrace(); if (cause instanceof IOException) return; session.close(); } On 8/8/07, Trustin Lee <[EMAIL PROTECTED]> wrote: > > On 8/7/07, Gohan <[EMAIL PROTECTED]> wrote: >

Re: Out Of Memory Problem Again

2007-08-07 Thread mat
After I use -XX:+HeapDumpOnOutOfMemoryError, finally I got "a java_pid2264.hprof" file(76M). How should I examine this file? Thanks. On 8/7/07, Trustin Lee <[EMAIL PROTECTED]> wrote: > > On 8/7/07, mat <[EMAIL PROTECTED]> wrote: > > In ClientSessionHandler &

Re: Is sessionClosed called after exceptionCaught?

2007-08-07 Thread mat
I believe you have to call it by yourself. http://svn.apache.org/viewvc/mina/branches/1.0/example/src/main/java/org/apache/mina/example/echoserver/EchoProtocolHandler.java?revision=555855&view=markup On 8/7/07, Gohan <[EMAIL PROTECTED]> wrote: > > > Hi, > > Could anyone answer to the question sta

Re: Out Of Memory Problem Again

2007-08-06 Thread mat
overflow, etc. SessionLog.warn(session, "Server error, disconnecting..."); session.close(); finished = true; } } On 8/7/07, Trustin Lee <[EMAIL PROTECTED]> wrote: > > On 8/7/07, mat <[EMAIL PROTECTED]> wrote: > > It normally tak

Re: Out Of Memory Problem Again

2007-08-06 Thread mat
n 8/7/07, peter royal <[EMAIL PROTECTED]> wrote: > > On Aug 5, 2007, at 4:56 PM, mat wrote: > > The following are the GC dump: Can you see someting here? > > Did you set the JVM parameter to have it generate a heap snapshot > upon OOM? > >

Re: Out Of Memory Problem Again

2007-08-06 Thread mat
? On 8/6/07, Trustin Lee <[EMAIL PROTECTED]> wrote: > > On 8/6/07, mat <[EMAIL PROTECTED]> wrote: > > The following are the GC dump: Can you see someting here? > > It's a typical GC log of a program with memory leak. Heap dump is > required to analyze t

Re: Question for transfering large file

2007-08-06 Thread mat
On 8/6/07, Trustin Lee <[EMAIL PROTECTED]> wrote: > > On 8/6/07, leafsax <[EMAIL PROTECTED]> wrote: > > > > Hi, > > I was trying to use MINA to transfer files between machines. It was > pretty > > good when I was trying to send some small files, but when the requests > were > > larger, (a file > 10

Re: Out Of Memory Problem Again

2007-08-05 Thread mat
Heap dump is able to manitest the leak exists in which class? On 8/6/07, Trustin Lee <[EMAIL PROTECTED]> wrote: > > On 8/6/07, mat <[EMAIL PROTECTED]> wrote: > > The following are the GC dump: Can you see someting here? > > It's a typical GC log of a prog

Re: Out Of Memory Problem Again

2007-08-05 Thread mat
The following are the GC dump: Can you see someting here? [GC 3358K->3017K(3840K), 0.0021926 secs] [GC 3529K->3185K(3840K), 0.0023076 secs] [GC 3697K->3327K(3840K), 0.0025027 secs] [Full GC 3327K->2337K(3840K), 0.0590504 secs] [GC 2849K->2505K(4476K), 0.0018559 secs] ... [Full GC 4240K->3566K(4860

Re: [POLL] What do you expect in MINA 2.0.0-M1?

2007-08-03 Thread mat
Agree with you. On 8/3/07, James Im <[EMAIL PROTECTED]> wrote: > > The important ones for me (in order of importance): > DIRMINA-302 Unbounded nature of writeRequestQueue can cause > OutOfMemoryException (I don't know if this can impact the api or not) > DIRMINA-415 Proxy support > DIRMI

Re: [jira] Updated: (DIRMINA-302) Unbounded nature of writeRequestQueue can cause OutOfMemoryException

2007-08-02 Thread mat
Which means: instead of let users "GUESS" the traffic rate, the mina core will take care of that? On 8/3/07, Trustin Lee <[EMAIL PROTECTED]> wrote: > > On 8/3/07, mat <[EMAIL PROTECTED]> wrote: > > WriteThrottleFilter is different from this solution? > >

Re: [jira] Updated: (DIRMINA-302) Unbounded nature of writeRequestQueue can cause OutOfMemoryException

2007-08-02 Thread mat
WriteThrottleFilter is different from this solution? On 8/2/07, Trustin Lee (JIRA) <[EMAIL PROTECTED]> wrote: > > > [ > https://issues.apache.org/jira/browse/DIRMINA-302?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel] > > Trustin Lee updated DIRMINA-302: > --

Re: [POLL] What do you expect in MINA 2.0.0-M1?

2007-08-02 Thread mat
To me, DIRMINA-302 is so important. I wish it will be fixed. Thanks. On 8/2/07, Trustin Lee <[EMAIL PROTECTED]> wrote: > > Hi community, > > Since we've been working so hard to clean the overall API up in trunk, > I fell we are getting closer to the release of 2.0.0-M1, our first > milestone relea

Re: mina and camel

2007-08-01 Thread mat
When use Mina in Camel, ObjectSerializationCodecFactory is a MUST for message transforming on different VMs? On 8/1/07, daniel golesny (innoWake gmbh) <[EMAIL PROTECTED]> wrote: > > Hi, > > I want to integrate a socket based application which is sending xml > data. The data should be routed by ana

Re: mina and camel

2007-08-01 Thread mat
First of all, I don't know how to answer your question. Sorry. However, after I google "Camel", it seems exactly what I wanted. A routing component could be used along with Mina server as a message router. My original purpose is to build a server framework which is not depentent on any protocols(ht

How to send and receive packet more efficient

2007-07-27 Thread mat
I read this article this morning and I think it is interesting. http://www-128.ibm.com/developerworks/linux/library/l-hisock.html?ca=dgr-lnxw01BoostSocket The author points out 4 tips which can improve socket performace. 1)Minimize packet transmit latency. (Disabling the Nagle algorithm, just lik

Re: setWriteTimeout and SetIdleTime

2007-07-27 Thread mat
On 7/28/07, Trustin Lee <[EMAIL PROTECTED]> wrote: > > On 7/28/07, mat <[EMAIL PROTECTED]> wrote: > > 1) Trustin, I asked this because I read the ChatServer example which > > IoFutureListener was not applied for. > > Yeah some examples are not perfect and we

  1   2   3   >