Re: Out Of Memory Problem Again

2007-08-06 Thread Trustin Lee
On 8/7/07, mat <[EMAIL PROTECTED]> wrote: > In ClientSessionHandler > > public void messageReceived(IoSession session, Object message) { >// server only sends ResultMessage. otherwise, we will have to > identify >// its type using instanceof operator. >ResultMessage rm = (Re

Re: Bug in DefaultFileRegion

2007-08-06 Thread Trustin Lee
On 8/7/07, Mike Heath <[EMAIL PROTECTED]> wrote: > Trustin, > > Did you fix DefaultFileRegion? I don't see that change in svn. Oops. I forgot to check in. It's done now. Trustin -- what we call human nature is actually human habit -- http://gleamynode.net/ -- PGP Key ID: 0x0255ECA6

Re: Bug in DefaultFileRegion

2007-08-06 Thread Mike Heath
Trustin, Did you fix DefaultFileRegion? I don't see that change in svn. -Mike On Tue, 2007-08-07 at 11:57 +0900, Trustin Lee wrote: > On 8/7/07, Geoff Cadien <[EMAIL PROTECTED]> wrote: > > I've run into a bug in DefaultFileRegion. In the method > > > > public void setPosition(long value) { >

Re: Out Of Memory Problem Again

2007-08-06 Thread mat
In ClientSessionHandler public void messageReceived(IoSession session, Object message) { // server only sends ResultMessage. otherwise, we will have to identify // its type using instanceof operator. ResultMessage rm = (ResultMessage) message; if (rm.isOk()) {

Re: why my client show nothing

2007-08-06 Thread cyliao
i use windows xp,the client is cmd.exe by the way ,use putty,choose raw connection,it shows the input ,but no show output. -- View this message in context: http://www.nabble.com/why-my-client-show-nothing-tf4227599s16868.html#a12027929 Sent from the Apache MINA Support Forum mailing list archi

Re: Out Of Memory Problem Again

2007-08-06 Thread Trustin Lee
On 8/7/07, mat <[EMAIL PROTECTED]> wrote: > It normally takes 1 or 2 days to get OOM on my server. However, memory leak > does happen as you can see. Since I can't wait OOM until it happens, I just > simply modify the Sumupserver example to prove the memory leak may caused by > mina core. (I assume

Re: Is there a way to set DF bit in the IP packet?

2007-08-06 Thread Trustin Lee
On 8/7/07, satish viswanatham <[EMAIL PROTECTED]> wrote: > Sure. I can take a look at it. Is there any documentation or sample > Transport implementation? Unfortunately, there's no documentation on implementing a new transport yet. You could take a look into an existing transport implementations.

Re: Concerns about pooling and expiring direct buffers

2007-08-06 Thread Trustin Lee
On 8/7/07, ukong <[EMAIL PROTECTED]> wrote: > > Opps I find that in the next release there is no more pooling. My bad. > > But any ideas about the advantage of using direct buffer for writing? Direct buffers outpeform heap buffers if the content of the buffer is not modified at all. A proxy might

Re: java.lang.NullPointerException: selector.wakeup();

2007-08-06 Thread Trustin Lee
On 8/7/07, Messi Chan <[EMAIL PROTECTED]> wrote: > > Hi, Trustin > thx for your reply. > Is Mina1.1.2 already resolved this issue? How could I get Mina1.1.2? > > thx a lot! :) It's not released yet. You can build the latest snapshot by yourself meanwhile. If you can wait a few days, then please

Re: why my client show nothing

2007-08-06 Thread Trustin Lee
On 8/7/07, cyliao <[EMAIL PROTECTED]> wrote: > > i run the example in "http://mina.apache.org/quick-start-guide.html";. > below is the log at server: > MINA Time server started. > 2007-8-7 1:44:04 org.apache.mina.util.SessionLog info > 信息: [/127.0.0.1:2006] CREATED > 2007-8-7 1:44:04 org.apache.min

Re: java.lang.NullPointerException: selector.wakeup();

2007-08-06 Thread Messi Chan
Hi, Trustin thx for your reply. Is Mina1.1.2 already resolved this issue? How could I get Mina1.1.2? thx a lot! :) -- View this message in context: http://www.nabble.com/java.lang.NullPointerException%3A--selector.wakeup%28%29--tf4227434s16868.html#a12027713 Sent from the Apache MINA Support F

Re: Bug in DefaultFileRegion

2007-08-06 Thread Trustin Lee
On 8/7/07, Geoff Cadien <[EMAIL PROTECTED]> wrote: > I've run into a bug in DefaultFileRegion. In the method > > public void setPosition(long value) { >if (value < position) { >throw new IllegalArgumentException("New position value may not > be less than old position value"); >

Re: java.lang.NullPointerException: selector.wakeup();

2007-08-06 Thread Trustin Lee
On 8/7/07, Messi Chan <[EMAIL PROTECTED]> wrote: > > Hi, all > I have a server A, which could receive client's request, then connect to > other server B to fetch informations and return back to the client. > This problem happened when I tested serverA's performance. I simulated 300 > concurrent cli

why my client show nothing

2007-08-06 Thread cyliao
i run the example in "http://mina.apache.org/quick-start-guide.html";. below is the log at server: MINA Time server started. 2007-8-7 1:44:04 org.apache.mina.util.SessionLog info 信息: [/127.0.0.1:2006] CREATED 2007-8-7 1:44:04 org.apache.mina.util.SessionLog info 信息: [/127.0.0.1:2006] OPENED Sessio

java.lang.NullPointerException: selector.wakeup();

2007-08-06 Thread Messi Chan
Hi, all I have a server A, which could receive client's request, then connect to other server B to fetch informations and return back to the client. This problem happened when I tested serverA's performance. I simulated 300 concurrent client sent requests constantly, and let server B return 200k

Bug in DefaultFileRegion

2007-08-06 Thread Geoff Cadien
I've run into a bug in DefaultFileRegion. In the method public void setPosition(long value) { if (value < position) { throw new IllegalArgumentException("New position value may not be less than old position value"); } count += value - position; position

Re: Question for transfering large file

2007-08-06 Thread Mike Heath
In MINA TRUNK, we've added support so that you can do IoSession.write(File) or IoSession.write(FileChannel) and it will use FileChannel.transferTo() to send the file to the remote host. This should be faster then reading the file manually because FileChannel.transferTo() can do zero-copy read/writ

Re: [VOTE] Releasing Apache MINA 1.0.5 and 1.1.2.

2007-08-06 Thread Mike Heath
Should we update the NOTICE.txt files to indicate a copyright of 2007 for these releases? -Mike On Fri, 2007-08-03 at 16:58 +0900, Trustin Lee wrote: > Hi, > > We released 1.0.4 and 1.1.1 just about two weeks ago, but I feel like > it's time for new releases because 8 issues have been resolved s

Re: Concerns about pooling and expiring direct buffers

2007-08-06 Thread ukong
Opps I find that in the next release there is no more pooling. My bad. But any ideas about the advantage of using direct buffer for writing? Pooling direct buffer hurts performance, but probably can bring down the memory footprint. Some users might want to control over memory usage??? ukong wro

Concerns about pooling and expiring direct buffers

2007-08-06 Thread ukong
I am just a casual user of MINA but I come across looking at the source code of PooledByteBufferAllocator when I found out that my app has been using a lot non-heap memory which does not seem to release. I believe direct buffers are not garbaged collected but in the current implementation of Pool

Re: Is there a way to set DF bit in the IP packet?

2007-08-06 Thread satish viswanatham
Sure. I can take a look at it. Is there any documentation or sample Transport implementation? thanks Satish On 8/6/07, peter royal <[EMAIL PROTECTED]> wrote: > > On Aug 5, 2007, at 11:12 AM, satish viswanatham wrote: > > I did not see a way to set this in Java SE APIs, but I found a > > library i

Re: Out Of Memory Problem Again

2007-08-06 Thread mat
It normally takes 1 or 2 days to get OOM on my server. However, memory leak does happen as you can see. Since I can't wait OOM until it happens, I just simply modify the Sumupserver example to prove the memory leak may caused by mina core. (I assume sumupserver has no memory leak itself) On 8/7/07

Re: Is there a way to set DF bit in the IP packet?

2007-08-06 Thread peter royal
On Aug 5, 2007, at 11:12 AM, satish viswanatham wrote: I did not see a way to set this in Java SE APIs, but I found a library in Java which lets you set DF bit: http://netresearch.ics.uci.edu/kfujii/jpcap/doc/javadoc/index.html Since setting that bit is not something that is in the standard j

Re: Out Of Memory Problem Again

2007-08-06 Thread peter royal
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? Read http://blogs.sun.com/alanb/entry/ heapdumponoutofmemoryerror_option_in_5_0u7 Use -XX:+HeapDumpOnOutOfMemoryErr

Re: Thanks and a question

2007-08-06 Thread Charles Woodson
Will do, Trustin. As for making this a part of the general distribution and submitting the patch through Jira, I assume that I should follow the guidelines in the developer guide and then attach the patch's source files for classes & unit tests to the jira issue. Am I missing anything there? -La

Re: Out Of Memory Problem Again

2007-08-06 Thread mat
[GC 512K->175K(1984K), 0.0029448 secs] [GC 687K->203K(1984K), 0.0016242 secs] [GC 715K->215K(1984K), 0.0012507 secs] [GC 727K->253K(1984K), 0.0019461 secs] [GC 765K->292K(1984K), 0.0014474 secs] [GC 804K->329K(1984K), 0.0011993 secs] [GC 841K->342K(1984K), 0.0008107 secs] I think the above is also

Re: Injecting synthetic messages

2007-08-06 Thread Trustin Lee
Hi Matthew, On 8/5/07, Matthew Phillips <[EMAIL PROTECTED]> wrote: > Hi all, > > I have a timer thread inside a custom IoFilter that checks for > request timeouts after sending a message. If a timeout occurs, it > sends a synthetic message down the filter chain. The question is, is > this thread s

Re: Question for transfering large file

2007-08-06 Thread Trustin Lee
On 8/6/07, mat <[EMAIL PROTECTED]> wrote: > 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 fi

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: Mina in Eclipse

2007-08-06 Thread Simon Aquilina
Hi Marcin, Thanks for the reference to that book :) Just wanted to say that I am [so far] a mina 'user' and not a 'developer' with little experience of maven; so that book will be very helpful to me :) Hope I can get some examples running now :) Thanks again for the links :) Regards, Sim085

Re: Question for transfering large file

2007-08-06 Thread Trustin Lee
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 > 100M), I could not send the file correctly. Since I could > not send