Re: [xSocket-develop] Too many open files exception
Status: Inactive
Brought to you by:
grro
|
From: gk <gk...@ph...> - 2009-01-19 09:18:38
|
Hi... there is a minor error in your test. It outputs to have tested 200 concurrent servers, but opens only 100. I don't think it was intended this way... gk Zitat von Gregor Roth <gre...@go...>: > Hi Armine, > > have you already took a look into chapter 28 of the tutorial? > Regarding to the Too many open files behaviour some documents a > referred. On some window configurations it has been observed that the > underlying selector of a Dispatcher accepts only a small number of > concurrent connections. This is a JRE/OS behaviour. As a workaround > you can set the number of the dispatchers with a higher value -> > org.xsocket.connection.dispatcher.initialCount. Or you can set > org.xsocket.connection.dispatcher.maxHandles. > I also added a new JUnit-Test based on your test (see > http://xsocket.svn.sourceforge.net/viewvc/xsocket/xsocket/core/trunk/src/test/java/org/xsocket/connection/ManyConcurrentServerTest.java?view=markup[1]). > Within the continuous integration xSocket's tests runs on a Windows > XP professional/SP3 as well as on a RedHed (centos) multicore > platform. Gregor |