You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by jian wu <he...@gmail.com> on 2007/01/05 20:38:05 UTC

Need Help: Any experience with "126 - Cannot assign requested address" on Solaris 10

Hi,

I'm writing TCP/IP Proxy Server using Mina 0.94, it'll accept multiple
TCP/IP Clients and route the requests to a back-end TCP Server.

I have a python test driver, Proxy Server with Mina, and a python
Server simulator all running on Sun AMD Operton 64/Solaris 10
boxes.

My test driver will run 40 concurrent threads, each thread will simulate
a TCP/IP Client, which will open TCP connection to Mina Server,
send request, wait for response and close the connection. The
test driver is running in loop to keep connecting and sending.

After running for a while, my python client did get connection
error "126 - Cannot assign requested address", I googled it,
it seems that it is caused at server side.

Is it possible that Mina SocketAcceptor is overloaded and can
not accept incoming connection? If this is the case, how can
I tune Mina to improve the throughput? I already set the 24
threads in ThreadModel at both end of Mina and the JVM
Memory is stable around 100M.

I should also mention that the application protocol is a Text
based protocol, and typical length of request and response is
less or around 1K.

Any tip or suggestion is really appreciated.

Thanks a lot!

Jian

Re: Need Help: Any experience with "126 - Cannot assign requested address" on Solaris 10

Posted by "Jian.Wu" <he...@gmail.com>.
Hi,

I was able to work-around this issue by split my python test driver into two
test driver
instances on two different boxes, each only ran 20 concurrent threads. And
Mina 
Server works fine.

So, it looks like more an issue of my networking environments than Mina. I
would
appreciate if anyone can share his/her experience running Mina on Solaris 10
and 
Solaris Zones.

Thanks a lot!

Jian


Jian.Wu wrote:
> 
> Hi,
> 
> I'm writing TCP/IP Proxy Server using Mina 0.94, it'll accept multiple
> TCP/IP Clients and route the requests to a back-end TCP Server.
> 
> I have a python test driver, Proxy Server with Mina, and a python
> Server simulator all running on Sun AMD Operton 64/Solaris 10
> boxes.
> 
> My test driver will run 40 concurrent threads, each thread will simulate
> a TCP/IP Client, which will open TCP connection to Mina Server,
> send request, wait for response and close the connection. The
> test driver is running in loop to keep connecting and sending.
> 
> After running for a while, my python client did get connection
> error "126 - Cannot assign requested address", I googled it,
> it seems that it is caused at server side.
> 
> Is it possible that Mina SocketAcceptor is overloaded and can
> not accept incoming connection? If this is the case, how can
> I tune Mina to improve the throughput? I already set the 24
> threads in ThreadModel at both end of Mina and the JVM
> Memory is stable around 100M.
> 
> I should also mention that the application protocol is a Text
> based protocol, and typical length of request and response is
> less or around 1K.
> 
> Any tip or suggestion is really appreciated.
> 
> Thanks a lot!
> 
> Jian
> 
> 

-- 
View this message in context: http://www.nabble.com/Need-Help%3A-Any-experience-with-%22126---Cannot-assign-requested-address%22-on-Solaris-10-tf2927518.html#a8224415
Sent from the mina dev mailing list archive at Nabble.com.