In Windows, you can change it in the registry.
In Linux, you have to recompiile your kernel AFAIK.

On Mon, 12 May 2008 20:19:52 +0900, Emmanuel Lecharny <[EMAIL PROTECTED]> wrote:

Maziyar Eslamieh wrote:
Thanks
How many socket is opened in MINA2?
As much as you have clients opening sockets...
and why do i have 1690 opened socket hear?

Are you expecting 1691 opened sockets ??? As I don't know what your clients are doing, don't think I can tell you why you have that many sockets opened ...
Where do i set tcp_time_wait parameter in MINA2?

This is a TCP configuration parameter, not a MINA ones.
--- On Mon, 5/12/08, Emmanuel Lecharny <[EMAIL PROTECTED]> wrote:


From: Emmanuel Lecharny <[EMAIL PROTECTED]>
Subject: Re: java.net.SocketException: Too many files open in MINA2
To: [email protected]
Date: Monday, May 12, 2008, 1:57 PM
Maziyar Eslamieh wrote:

Thank you,
I did it ,but why did the number of opened

files(socket) of MINA2 reach to 1690 ?


Because on Linux, a socket is counted as an open file.
Socket remains open or waiting for being close for a certain time,
depending on your system configuration. You can change this by modifying the
tcp_time_wait parameter, to lower the terminaison time.

-- --
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org



      
____________________________________________________________________________________
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ







--
Trustin Lee - Principal Software Engineer, JBoss, Red Hat
--
what we call human nature is actually human habit
--
http://gleamynode.net/

Reply via email to