Hi Emmanuel,
Thank for your quick feedback.
Here the stack trace
Exception in thread "pool-108-thread-1" java.lang.NoClassDefFoundError:
Could not initialize class sun.nio.ch.FileDispatcher
at sun.nio.ch.EPollSelectorImpl.implClose(EPollSelectorImpl.java:116)
at sun.nio.ch.SelectorImpl.implCloseSelector(SelectorImpl.java:96)
at
java.nio.channels.spi.AbstractSelector.close(AbstractSelector.java:91)
at
org.apache.mina.transport.socket.nio.NioSocketConnector.destroy(NioSocketConnector.java:139)
at
org.apache.mina.core.polling.AbstractPollingIoConnector$Connector.run(AbstractPollingIoConnector.java:516)
at
org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Other info:
+ I'm using SumUp example ( Mina source)
+ I'm using Karmic Ubuntu ( Pentium D 3.0 GHz + 2G Ram) and JDK 1.6.0_10-rc
.
I just don't know why it runs OK by 70 threads but "class not found
exception" by 80 threads.
Thanks for your help,
Van http://old.nabble.com/file/p27350148/Client.java Client.java
Emmanuel Lecharny wrote:
>
> Le Van a écrit :
>> Hi all,
>> I'm very new to Mina. So sorry for my stupid question.
>> I'm using Mina 2.0.0. RC1. I try Mina by learning example ( SumUp in Mina
>> example).
>> I've modified client as following
>>
>> for(int i=0;i<80;i++) {
>> new Thread(new Runnable () {
>> ..... // code is same as Client.java
>> }
>> }.start();
>>
>> }
>>
>> Yes, I tried to run simultaneously 80 threads to test how scale a Mina
>> server is. As a result, I got the error
>> java.lang.NoClassDefFoundError: Could not initialize
>> class.sun.nio.ch.FileDispatcher
>>
>> I don't know the error means. I testes with 70 threads. It works OK
>>
> Hmmmm....
>
> OS ?
> JVM ?
>
> Also a full stack trace would be cool.
>
>
> --
> Regards,
> Cordialement,
> Emmanuel Lécharny
> www.nextury.com
>
>
>
>
--
View this message in context:
http://old.nabble.com/How-scale-a-Mina-client-tp27338959p27350148.html
Sent from the Apache MINA User Forum mailing list archive at Nabble.com.