xsocket-develop Mailing List for xsocket (Page 11)
Status: Inactive
Brought to you by:
grro
You can subscribe to this list here.
| 2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(12) |
Oct
(9) |
Nov
(11) |
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2008 |
Jan
(8) |
Feb
(9) |
Mar
(9) |
Apr
(22) |
May
(28) |
Jun
(17) |
Jul
(10) |
Aug
(19) |
Sep
(4) |
Oct
(14) |
Nov
(26) |
Dec
(25) |
| 2009 |
Jan
(13) |
Feb
(17) |
Mar
(12) |
Apr
(4) |
May
(16) |
Jun
(6) |
Jul
(10) |
Aug
(24) |
Sep
(6) |
Oct
(5) |
Nov
(13) |
Dec
(10) |
| 2010 |
Jan
(17) |
Feb
(21) |
Mar
(10) |
Apr
(8) |
May
(2) |
Jun
(14) |
Jul
(7) |
Aug
(10) |
Sep
(7) |
Oct
(3) |
Nov
|
Dec
(2) |
| 2011 |
Jan
(1) |
Feb
(5) |
Mar
(1) |
Apr
|
May
(5) |
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
(3) |
Nov
|
Dec
|
| 2015 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
(3) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(6) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
|
From: Gregor R. <gre...@go...> - 2009-01-19 07:04:06
|
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). Within the continuous integration xSocket's tests runs on a Windows XP professional/SP3 as well as on a RedHed (centos) multicore platform. Gregor 2009/1/19 Amine Haddad <ami...@gm...> > Hello, > > I wanted to see how many sockets I could have listening in my program and > it seems that 42 is the limit. Once it tries to create socket 43, it throws > an IOException: "too many open files". I was hoping for at least a couple > hundred. > > Here is some sample code: > > Random random = new Random(); >> for(int i = 0;i<1000;i++) { >> System.out.println(i + " | Creating server.."); >> try { >> IServer server = new Server(random.nextInt(40000) + 1024, >> new DummyHandler()); >> > server.start(); >> } catch (UnknownHostException e) { >> e.printStackTrace(); >> } catch (IOException e) { >> e.printStackTrace(); >> } >> System.out.println(i + " | Created server!"); >> } > > > Here is the output: > > 0 | Creating server.. >> 0 | Created server! >> 1 | Creating server.. >> 1 | Created server! >> 2 | Creating server.. >> 2 | Created server! >> 3 | Creating server.. >> 3 | Created server! >> 4 | Creating server.. >> 4 | Created server! >> 5 | Creating server.. >> 5 | Created server! >> 6 | Creating server.. >> 6 | Created server! >> 7 | Creating server.. >> 7 | Created server! >> 8 | Creating server.. >> 8 | Created server! >> 9 | Creating server.. >> 9 | Created server! >> 10 | Creating server.. >> 10 | Created server! >> 11 | Creating server.. >> 11 | Created server! >> 12 | Creating server.. >> 12 | Created server! >> 13 | Creating server.. >> 13 | Created server! >> 14 | Creating server.. >> 14 | Created server! >> 15 | Creating server.. >> 15 | Created server! >> 16 | Creating server.. >> 16 | Created server! >> 17 | Creating server.. >> 17 | Created server! >> 18 | Creating server.. >> 18 | Created server! >> 19 | Creating server.. >> 19 | Created server! >> 20 | Creating server.. >> 20 | Created server! >> 21 | Creating server.. >> 21 | Created server! >> 22 | Creating server.. >> 22 | Created server! >> 23 | Creating server.. >> 23 | Created server! >> 24 | Creating server.. >> 24 | Created server! >> 25 | Creating server.. >> 25 | Created server! >> 26 | Creating server.. >> 26 | Created server! >> 27 | Creating server.. >> 27 | Created server! >> 28 | Creating server.. >> 28 | Created server! >> 29 | Creating server.. >> 29 | Created server! >> 30 | Creating server.. >> 30 | Created server! >> 31 | Creating server.. >> 31 | Created server! >> 32 | Creating server.. >> 32 | Created server! >> 33 | Creating server.. >> 33 | Created server! >> 34 | Creating server.. >> 34 | Created server! >> 35 | Creating server.. >> 35 | Created server! >> 36 | Creating server.. >> 36 | Created server! >> 37 | Creating server.. >> 37 | Created server! >> 38 | Creating server.. >> 38 | Created server! >> 39 | Creating server.. >> 39 | Created server! >> 40 | Creating server.. >> 40 | Created server! >> 41 | Creating server.. >> 41 | Created server! >> 42 | Creating server.. >> Jan 18, 2009 10:16:31 PM org.xsocket.connection.IoSocketDispatcher <init> >> SEVERE: exception occured while opening selector. Reason: >> java.io.IOException: Too many open files >> Exception in thread "main" java.lang.RuntimeException: exception occured >> while opening selector. Reason: java.io.IOException: Too many open files >> at >> org.xsocket.connection.IoSocketDispatcher.<init>(IoSocketDispatcher.java:147) >> at >> org.xsocket.connection.IoSocketDispatcherPool.updateDispatcher(IoSocketDispatcherPool.java:184) >> at >> org.xsocket.connection.IoSocketDispatcherPool.setDispatcherSize(IoSocketDispatcherPool.java:285) >> at >> org.xsocket.connection.IoSocketDispatcherPool.<init>(IoSocketDispatcherPool.java:80) >> at >> org.xsocket.connection.IoSocketDispatcherPool.<init>(IoSocketDispatcherPool.java:75) >> at org.xsocket.connection.IoAcceptor.<init>(IoAcceptor.java:123) >> at org.xsocket.connection.IoAcceptor.<init>(IoAcceptor.java:97) >> at >> org.xsocket.connection.IoProvider.createAcceptor(IoProvider.java:399) >> at org.xsocket.connection.Server.<init>(Server.java:399) >> at org.xsocket.connection.Server.<init>(Server.java:168) >> at org.endra.ftpserver.Main.<init>(Main.java:18) >> at org.endra.ftpserver.Main.main(Main.java:31) >> Caused by: java.io.IOException: Too many open files >> at sun.nio.ch.EPollArrayWrapper.epollCreate(Native Method) >> at sun.nio.ch.EPollArrayWrapper.<init>(EPollArrayWrapper.java:68) >> at sun.nio.ch.EPollSelectorImpl.<init>(EPollSelectorImpl.java:52) >> at >> sun.nio.ch.EPollSelectorProvider.openSelector(EPollSelectorProvider.java:18) >> at java.nio.channels.Selector.open(Selector.java:209) >> at >> org.xsocket.connection.IoSocketDispatcher.<init>(IoSocketDispatcher.java:143) >> ... 11 more >> > > Here is the list of files opened by the program: > > COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME >> java 26619 amine cwd DIR 8,6 4096 4227120 >> /home/amine/personal/sync/projects/java-ftpd/workspace/ftpd >> java 26619 amine rtd DIR 8,5 4096 2 / >> java 26619 amine txt REG 8,5 47308 1213979 >> /opt/java/jre/bin/java >> java 26619 amine mem REG 8,5 8561454 1221260 >> /opt/java/jre/lib/i386/server/libjvm.so >> java 26619 amine mem REG 8,5 841071 1214062 >> /opt/java/jre/lib/ext/localedata.jar >> java 26619 amine mem REG 8,5 95830 1221210 >> /opt/java/jre/lib/i386/libnet.so >> java 26619 amine mem REG 8,6 634629 4228080 >> /home/amine/personal/sync/projects/java-ftpd/workspace/ftpd/Libraries/mina-core-2.0.0-M4.jar >> java 26619 amine mem REG 8,5 1561088 379531 >> /usr/lib/locale/locale-archive >> java 26619 amine mem REG 8,5 50853661 1214026 >> /opt/java/jre/lib/rt.jar >> java 26619 amine mem REG 8,5 37081 1221241 >> /opt/java/jre/lib/i386/libnio.so >> java 26619 amine mem REG 8,5 76438 1221232 >> /opt/java/jre/lib/i386/libzip.so >> java 26619 amine mem REG 8,5 189159 1221245 >> /opt/java/jre/lib/i386/libjava.so >> java 26619 amine mem REG 8,5 97109 196641 /lib/ >> libnsl-2.9.so >> java 26619 amine mem REG 8,6 309811 4227339 >> /home/amine/personal/sync/projects/java-ftpd/workspace/ftpd/Libraries/xSocket-2.3.2.jar >> java 26619 amine mem REG 8,5 56701 1221207 >> /opt/java/jre/lib/i386/libverify.so >> java 26619 amine mem REG 8,5 32768 442421 >> /tmp/hsperfdata_amine/26619 >> java 26619 amine mem REG 8,5 39252 196631 /lib/librt-2.9.so >> java 26619 amine mem REG 8,5 180840 196619 /lib/libm-2.9.so >> java 26619 amine mem REG 8,5 1554407 196650 /lib/libc-2.9.so >> java 26619 amine mem REG 8,5 13419 196620 /lib/libdl-2.9.so >> java 26619 amine mem REG 8,5 38142 1221262 >> /opt/java/jre/lib/i386/jli/libjli.so >> java 26619 amine mem REG 8,5 119210 196626 /lib/ >> libpthread-2.9.so >> java 26619 amine mem REG 8,6 8815 4228092 >> /home/amine/personal/sync/projects/java-ftpd/workspace/ftpd/Libraries/slf4j-jdk14-1.5.6.jar >> java 26619 amine mem REG 8,6 22338 4228087 >> /home/amine/personal/sync/projects/java-ftpd/workspace/ftpd/Libraries/slf4j-api-1.5.6.jar >> java 26619 amine mem REG 8,5 45752 196630 /lib/ >> libnss_files-2.9.so >> java 26619 amine mem REG 8,5 38694 1221264 >> /opt/java/jre/lib/i386/native_threads/libhpi.so >> java 26619 amine mem REG 8,5 132825 196649 /lib/ld-2.9.so >> java 26619 amine 0r FIFO 0,6 0t0 176172 pipe >> java 26619 amine 1w FIFO 0,6 0t0 176173 pipe >> java 26619 amine 2w FIFO 0,6 0t0 176174 pipe >> java 26619 amine 3w REG 8,5 50853661 1214026 >> /opt/java/jre/lib/rt.jar >> java 26619 amine 4r REG 8,6 634629 4228080 >> /home/amine/personal/sync/projects/java-ftpd/workspace/ftpd/Libraries/mina-core-2.0.0-M4.jar >> java 26619 amine 5r REG 8,6 22338 4228087 >> /home/amine/personal/sync/projects/java-ftpd/workspace/ftpd/Libraries/slf4j-api-1.5.6.jar >> java 26619 amine 6r REG 8,6 8815 4228092 >> /home/amine/personal/sync/projects/java-ftpd/workspace/ftpd/Libraries/slf4j-jdk14-1.5.6.jar >> java 26619 amine 7r REG 8,6 309811 4227339 >> /home/amine/personal/sync/projects/java-ftpd/workspace/ftpd/Libraries/xSocket-2.3.2.jar >> java 26619 amine 8r CHR 1,8 0t0 2209 /dev/random >> java 26619 amine 9r CHR 1,9 0t0 2220 /dev/urandom >> java 26619 amine 10r IPv6 176369 0t0 TCP *:23028 (LISTEN) >> java 26619 amine 11r FIFO 0,6 0t0 176373 pipe >> java 26619 amine 12u sock 0,4 0t0 176371 can't identify >> protocol >> java 26619 amine 13u FIFO 0,6 0t0 176373 pipe >> java 26619 amine 14r 0000 0,7 0 14 anon_inode >> java 26619 amine 15r FIFO 0,6 0t0 176374 pipe >> java 26619 amine 16r FIFO 0,6 0t0 176374 pipe >> java 26619 amine 17r 0000 0,7 0 14 anon_inode >> java 26619 amine 18r FIFO 0,6 0t0 176375 pipe >> java 26619 amine 19r FIFO 0,6 0t0 176375 pipe >> java 26619 amine 20r 0000 0,7 0 14 anon_inode >> java 26619 amine 21r FIFO 0,6 0t0 176379 pipe >> java 26619 amine 22r FIFO 0,6 0t0 176379 pipe >> java 26619 amine 23u 0000 0,7 0 14 anon_inode >> java 26619 amine 24u IPv6 176376 0t0 TCP *:3238 (LISTEN) >> java 26619 amine 25r FIFO 0,6 0t0 176377 pipe >> java 26619 amine 26r FIFO 0,6 0t0 176377 pipe >> java 26619 amine 27r 0000 0,7 0 14 anon_inode >> java 26619 amine 28r FIFO 0,6 0t0 176378 pipe >> java 26619 amine 29r FIFO 0,6 0t0 176378 pipe >> java 26619 amine 30r 0000 0,7 0 14 anon_inode >> java 26619 amine 31r IPv6 176380 0t0 TCP *:28121 (LISTEN) >> java 26619 amine 32r FIFO 0,6 0t0 176381 pipe >> java 26619 amine 33r FIFO 0,6 0t0 176381 pipe >> java 26619 amine 34r 0000 0,7 0 14 anon_inode >> java 26619 amine 35r FIFO 0,6 0t0 176382 pipe >> java 26619 amine 36r FIFO 0,6 0t0 176382 pipe >> java 26619 amine 37r 0000 0,7 0 14 anon_inode >> java 26619 amine 38r FIFO 0,6 0t0 176383 pipe >> java 26619 amine 39w FIFO 0,6 0t0 176383 pipe >> java 26619 amine 40r 0000 0,7 0 14 anon_inode >> java 26619 amine 41r IPv6 176384 0t0 TCP *:12757 (LISTEN) >> java 26619 amine 42u FIFO 0,6 0t0 176385 pipe >> java 26619 amine 43r FIFO 0,6 0t0 176385 pipe >> java 26619 amine 44r 0000 0,7 0 14 anon_inode >> java 26619 amine 45r FIFO 0,6 0t0 176386 pipe >> java 26619 amine 46r FIFO 0,6 0t0 176386 pipe >> java 26619 amine 47r 0000 0,7 0 14 anon_inode >> java 26619 amine 48r REG 8,5 841071 1214062 >> /opt/java/jre/lib/ext/localedata.jar >> java 26619 amine 49r FIFO 0,6 0t0 176387 pipe >> java 26619 amine 50r FIFO 0,6 0t0 176387 pipe >> java 26619 amine 51r 0000 0,7 0 14 anon_inode >> java 26619 amine 52r IPv6 176388 0t0 TCP *:26021 (LISTEN) >> java 26619 amine 57r FIFO 0,6 0t0 176393 pipe >> java 26619 amine 58r FIFO 0,6 0t0 176393 pipe >> java 26619 amine 59r 0000 0,7 0 14 anon_inode >> java 26619 amine 60r FIFO 0,6 0t0 176394 pipe >> java 26619 amine 61r FIFO 0,6 0t0 176394 pipe >> java 26619 amine 62r 0000 0,7 0 14 anon_inode >> java 26619 amine 63r FIFO 0,6 0t0 176395 pipe >> java 26619 amine 64r FIFO 0,6 0t0 176395 pipe >> java 26619 amine 65r 0000 0,7 0 14 anon_inode >> java 26619 amine 67r IPv6 176397 0t0 TCP *:8870 (LISTEN) >> java 26619 amine 68r FIFO 0,6 0t0 176398 pipe >> java 26619 amine 69r FIFO 0,6 0t0 176398 pipe >> java 26619 amine 70r 0000 0,7 0 14 anon_inode >> java 26619 amine 71r FIFO 0,6 0t0 176399 pipe >> java 26619 amine 72r FIFO 0,6 0t0 176399 pipe >> java 26619 amine 73r 0000 0,7 0 14 anon_inode >> java 26619 amine 74r FIFO 0,6 0t0 176400 pipe >> java 26619 amine 75r FIFO 0,6 0t0 176400 pipe >> java 26619 amine 76r 0000 0,7 0 14 anon_inode >> java 26619 amine 78r IPv6 176402 0t0 TCP *:6739 (LISTEN) >> java 26619 amine 79r FIFO 0,6 0t0 176403 pipe >> java 26619 amine 80r FIFO 0,6 0t0 176403 pipe >> java 26619 amine 81r 0000 0,7 0 14 anon_inode >> java 26619 amine 82r FIFO 0,6 0t0 176404 pipe >> java 26619 amine 83r FIFO 0,6 0t0 176404 pipe >> java 26619 amine 84r 0000 0,7 0 14 anon_inode >> java 26619 amine 85r FIFO 0,6 0t0 176405 pipe >> java 26619 amine 86r FIFO 0,6 0t0 176405 pipe >> java 26619 amine 87r 0000 0,7 0 14 anon_inode >> java 26619 amine 89r IPv6 176407 0t0 TCP *:39981 (LISTEN) >> java 26619 amine 90r FIFO 0,6 0t0 176408 pipe >> java 26619 amine 91r FIFO 0,6 0t0 176408 pipe >> java 26619 amine 92r 0000 0,7 0 14 anon_inode >> java 26619 amine 93r FIFO 0,6 0t0 176409 pipe >> java 26619 amine 94r FIFO 0,6 0t0 176409 pipe >> java 26619 amine 95r 0000 0,7 0 14 anon_inode >> java 26619 amine 96r FIFO 0,6 0t0 176410 pipe >> java 26619 amine 97r FIFO 0,6 0t0 176410 pipe >> java 26619 amine 98r 0000 0,7 0 14 anon_inode >> java 26619 amine 100r IPv6 176412 0t0 TCP *:17367 (LISTEN) >> java 26619 amine 101r FIFO 0,6 0t0 176413 pipe >> java 26619 amine 102r FIFO 0,6 0t0 176413 pipe >> java 26619 amine 103r 0000 0,7 0 14 anon_inode >> java 26619 amine 104r FIFO 0,6 0t0 176414 pipe >> java 26619 amine 105r FIFO 0,6 0t0 176414 pipe >> java 26619 amine 106r 0000 0,7 0 14 anon_inode >> java 26619 amine 107r FIFO 0,6 0t0 176415 pipe >> java 26619 amine 108r FIFO 0,6 0t0 176415 pipe >> java 26619 amine 109r 0000 0,7 0 14 anon_inode >> java 26619 amine 111r IPv6 176417 0t0 TCP *:8546 (LISTEN) >> java 26619 amine 112r FIFO 0,6 0t0 176418 pipe >> java 26619 amine 113r FIFO 0,6 0t0 176418 pipe >> java 26619 amine 114r 0000 0,7 0 14 anon_inode >> java 26619 amine 115r FIFO 0,6 0t0 176419 pipe >> java 26619 amine 116r FIFO 0,6 0t0 176419 pipe >> java 26619 amine 117r 0000 0,7 0 14 anon_inode >> java 26619 amine 118r FIFO 0,6 0t0 176420 pipe >> java 26619 amine 119r FIFO 0,6 0t0 176420 pipe >> java 26619 amine 120r 0000 0,7 0 14 anon_inode >> java 26619 amine 122r IPv6 176422 0t0 TCP *:34761 (LISTEN) >> java 26619 amine 123r FIFO 0,6 0t0 176423 pipe >> java 26619 amine 124r FIFO 0,6 0t0 176423 pipe >> java 26619 amine 125w 0000 0,7 0 14 anon_inode >> java 26619 amine 126w FIFO 0,6 0t0 176424 pipe >> java 26619 amine 127u FIFO 0,6 0t0 176424 pipe >> java 26619 amine 128r 0000 0,7 0 14 anon_inode >> java 26619 amine 129w FIFO 0,6 0t0 176425 pipe >> java 26619 amine 130r FIFO 0,6 0t0 176425 pipe >> java 26619 amine 131w 0000 0,7 0 14 anon_inode >> java 26619 amine 133u IPv6 176427 0t0 TCP *:15774 (LISTEN) >> java 26619 amine 134u FIFO 0,6 0t0 176428 pipe >> java 26619 amine 135u FIFO 0,6 0t0 176428 pipe >> java 26619 amine 136u 0000 0,7 0 14 anon_inode >> java 26619 amine 137r FIFO 0,6 0t0 176429 pipe >> java 26619 amine 138r FIFO 0,6 0t0 176429 pipe >> java 26619 amine 139r 0000 0,7 0 14 anon_inode >> java 26619 amine 140u FIFO 0,6 0t0 176430 pipe >> java 26619 amine 141r FIFO 0,6 0t0 176430 pipe >> java 26619 amine 142u 0000 0,7 0 14 anon_inode >> java 26619 amine 144r IPv6 176432 0t0 TCP *:29114 (LISTEN) >> java 26619 amine 145r FIFO 0,6 0t0 176433 pipe >> java 26619 amine 146r FIFO 0,6 0t0 176433 pipe >> java 26619 amine 147r 0000 0,7 0 14 anon_inode >> java 26619 amine 148r FIFO 0,6 0t0 176434 pipe >> java 26619 amine 149r FIFO 0,6 0t0 176434 pipe >> java 26619 amine 150r 0000 0,7 0 14 anon_inode >> java 26619 amine 151r FIFO 0,6 0t0 176435 pipe >> java 26619 amine 152r FIFO 0,6 0t0 176435 pipe >> java 26619 amine 153r 0000 0,7 0 14 anon_inode >> java 26619 amine 154r IPv6 176436 0t0 TCP *:28531 (LISTEN) >> java 26619 amine 155r FIFO 0,6 0t0 176438 pipe >> java 26619 amine 157r FIFO 0,6 0t0 176438 pipe >> java 26619 amine 158r 0000 0,7 0 14 anon_inode >> java 26619 amine 159r FIFO 0,6 0t0 176439 pipe >> java 26619 amine 160r FIFO 0,6 0t0 176439 pipe >> java 26619 amine 161r 0000 0,7 0 14 anon_inode >> java 26619 amine 162r FIFO 0,6 0t0 176440 pipe >> java 26619 amine 163w FIFO 0,6 0t0 176440 pipe >> java 26619 amine 164r 0000 0,7 0 14 anon_inode >> java 26619 amine 166r IPv6 176442 0t0 TCP *:1657 (LISTEN) >> java 26619 amine 167r FIFO 0,6 0t0 176443 pipe >> java 26619 amine 168r FIFO 0,6 0t0 176443 pipe >> java 26619 amine 169r 0000 0,7 0 14 anon_inode >> java 26619 amine 170r FIFO 0,6 0t0 176444 pipe >> java 26619 amine 171r FIFO 0,6 0t0 176444 pipe >> java 26619 amine 172r 0000 0,7 0 14 anon_inode >> java 26619 amine 173r FIFO 0,6 0t0 176445 pipe >> java 26619 amine 174r FIFO 0,6 0t0 176445 pipe >> java 26619 amine 175r 0000 0,7 0 14 anon_inode >> java 26619 amine 176r IPv6 176446 0t0 TCP *:24786 (LISTEN) >> java 26619 amine 177r FIFO 0,6 0t0 176448 pipe >> java 26619 amine 179w FIFO 0,6 0t0 176448 pipe >> java 26619 amine 180u 0000 0,7 0 14 anon_inode >> java 26619 amine 181r FIFO 0,6 0t0 176449 pipe >> java 26619 amine 182w FIFO 0,6 0t0 176449 pipe >> java 26619 amine 183u 0000 0,7 0 14 anon_inode >> java 26619 amine 184r FIFO 0,6 0t0 176450 pipe >> java 26619 amine 185w FIFO 0,6 0t0 176450 pipe >> java 26619 amine 186u 0000 0,7 0 14 anon_inode >> java 26619 amine 188u IPv6 176452 0t0 TCP *:7526 (LISTEN) >> java 26619 amine 189r FIFO 0,6 0t0 176453 pipe >> java 26619 amine 190w FIFO 0,6 0t0 176453 pipe >> java 26619 amine 191u 0000 0,7 0 14 anon_inode >> java 26619 amine 192r FIFO 0,6 0t0 176454 pipe >> java 26619 amine 193w FIFO 0,6 0t0 176454 pipe >> java 26619 amine 194u 0000 0,7 0 14 anon_inode >> java 26619 amine 195r FIFO 0,6 0t0 176455 pipe >> java 26619 amine 196w FIFO 0,6 0t0 176455 pipe >> java 26619 amine 197u 0000 0,7 0 14 anon_inode >> java 26619 amine 199u IPv6 176457 0t0 TCP *:37646 (LISTEN) >> java 26619 amine 200r FIFO 0,6 0t0 176458 pipe >> java 26619 amine 201w FIFO 0,6 0t0 176458 pipe >> java 26619 amine 202u 0000 0,7 0 14 anon_inode >> java 26619 amine 203r FIFO 0,6 0t0 176459 pipe >> java 26619 amine 204w FIFO 0,6 0t0 176459 pipe >> java 26619 amine 205u 0000 0,7 0 14 anon_inode >> java 26619 amine 206r FIFO 0,6 0t0 176460 pipe >> java 26619 amine 207w FIFO 0,6 0t0 176460 pipe >> java 26619 amine 208u 0000 0,7 0 14 anon_inode >> java 26619 amine 210u IPv6 176462 0t0 TCP *:9826 (LISTEN) >> java 26619 amine 211r FIFO 0,6 0t0 176463 pipe >> java 26619 amine 212w FIFO 0,6 0t0 176463 pipe >> java 26619 amine 213u 0000 0,7 0 14 anon_inode >> java 26619 amine 214r FIFO 0,6 0t0 176464 pipe >> java 26619 amine 215w FIFO 0,6 0t0 176464 pipe >> java 26619 amine 216u 0000 0,7 0 14 anon_inode >> java 26619 amine 217r FIFO 0,6 0t0 176465 pipe >> java 26619 amine 218w FIFO 0,6 0t0 176465 pipe >> java 26619 amine 219u 0000 0,7 0 14 anon_inode >> java 26619 amine 221u IPv6 176467 0t0 TCP *:22903 (LISTEN) >> java 26619 amine 222r FIFO 0,6 0t0 176468 pipe >> java 26619 amine 223w FIFO 0,6 0t0 176468 pipe >> java 26619 amine 224u 0000 0,7 0 14 anon_inode >> java 26619 amine 225r FIFO 0,6 0t0 176469 pipe >> java 26619 amine 226w FIFO 0,6 0t0 176469 pipe >> java 26619 amine 227u 0000 0,7 0 14 anon_inode >> java 26619 amine 228r FIFO 0,6 0t0 176470 pipe >> java 26619 amine 229w FIFO 0,6 0t0 176470 pipe >> java 26619 amine 230u 0000 0,7 0 14 anon_inode >> java 26619 amine 232u IPv6 176472 0t0 TCP *:6900 (LISTEN) >> java 26619 amine 233r FIFO 0,6 0t0 176473 pipe >> java 26619 amine 234w FIFO 0,6 0t0 176473 pipe >> java 26619 amine 235u 0000 0,7 0 14 anon_inode >> java 26619 amine 236r FIFO 0,6 0t0 176474 pipe >> java 26619 amine 237w FIFO 0,6 0t0 176474 pipe >> java 26619 amine 238u 0000 0,7 0 14 anon_inode >> java 26619 amine 239r FIFO 0,6 0t0 176475 pipe >> java 26619 amine 240w FIFO 0,6 0t0 176475 pipe >> java 26619 amine 241u 0000 0,7 0 14 anon_inode >> java 26619 amine 243u IPv6 176477 0t0 TCP *:17306 (LISTEN) >> java 26619 amine 244r FIFO 0,6 0t0 176478 pipe >> java 26619 amine 245w FIFO 0,6 0t0 176478 pipe >> java 26619 amine 246u 0000 0,7 0 14 anon_inode >> java 26619 amine 247r FIFO 0,6 0t0 176479 pipe >> java 26619 amine 248w FIFO 0,6 0t0 176479 pipe >> java 26619 amine 249u 0000 0,7 0 14 anon_inode >> java 26619 amine 250r FIFO 0,6 0t0 176480 pipe >> java 26619 amine 251w FIFO 0,6 0t0 176480 pipe >> java 26619 amine 252u 0000 0,7 0 14 anon_inode >> java 26619 amine 254u IPv6 176482 0t0 TCP *:39151 (LISTEN) >> java 26619 amine 255r FIFO 0,6 0t0 176483 pipe >> java 26619 amine 256w FIFO 0,6 0t0 176483 pipe >> java 26619 amine 257u 0000 0,7 0 14 anon_inode >> java 26619 amine 258r FIFO 0,6 0t0 176484 pipe >> java 26619 amine 259w FIFO 0,6 0t0 176484 pipe >> java 26619 amine 260u 0000 0,7 0 14 anon_inode >> java 26619 amine 261r FIFO 0,6 0t0 176485 pipe >> java 26619 amine 262w FIFO 0,6 0t0 176485 pipe >> java 26619 amine 263u 0000 0,7 0 14 anon_inode >> java 26619 amine 265u IPv6 176487 0t0 TCP *:32994 (LISTEN) >> java 26619 amine 266r FIFO 0,6 0t0 176488 pipe >> java 26619 amine 267w FIFO 0,6 0t0 176488 pipe >> java 26619 amine 268u 0000 0,7 0 14 anon_inode >> java 26619 amine 269r FIFO 0,6 0t0 176489 pipe >> java 26619 amine 270w FIFO 0,6 0t0 176489 pipe >> java 26619 amine 271u 0000 0,7 0 14 anon_inode >> java 26619 amine 272r FIFO 0,6 0t0 176490 pipe >> java 26619 amine 273w FIFO 0,6 0t0 176490 pipe >> java 26619 amine 274u 0000 0,7 0 14 anon_inode >> java 26619 amine 276u IPv6 176492 0t0 TCP *:31418 (LISTEN) >> java 26619 amine 277r FIFO 0,6 0t0 176493 pipe >> java 26619 amine 278w FIFO 0,6 0t0 176493 pipe >> java 26619 amine 279u 0000 0,7 0 14 anon_inode >> java 26619 amine 280r FIFO 0,6 0t0 176494 pipe >> java 26619 amine 281w FIFO 0,6 0t0 176494 pipe >> java 26619 amine 282u 0000 0,7 0 14 anon_inode >> java 26619 amine 283r FIFO 0,6 0t0 176495 pipe >> java 26619 amine 284w FIFO 0,6 0t0 176495 pipe >> java 26619 amine 285u 0000 0,7 0 14 anon_inode >> java 26619 amine 287u IPv6 176497 0t0 TCP *:26210 (LISTEN) >> java 26619 amine 288r FIFO 0,6 0t0 176498 pipe >> java 26619 amine 289w FIFO 0,6 0t0 176498 pipe >> java 26619 amine 290u 0000 0,7 0 14 anon_inode >> java 26619 amine 291r FIFO 0,6 0t0 176499 pipe >> java 26619 amine 292w FIFO 0,6 0t0 176499 pipe >> java 26619 amine 293u 0000 0,7 0 14 anon_inode >> java 26619 amine 294r FIFO 0,6 0t0 176500 pipe >> java 26619 amine 295w FIFO 0,6 0t0 176500 pipe >> java 26619 amine 296u 0000 0,7 0 14 anon_inode >> java 26619 amine 298u IPv6 176502 0t0 TCP *:37630 (LISTEN) >> java 26619 amine 299r FIFO 0,6 0t0 176503 pipe >> java 26619 amine 300w FIFO 0,6 0t0 176503 pipe >> java 26619 amine 301u 0000 0,7 0 14 anon_inode >> java 26619 amine 302r FIFO 0,6 0t0 176504 pipe >> java 26619 amine 303w FIFO 0,6 0t0 176504 pipe >> java 26619 amine 304u 0000 0,7 0 14 anon_inode >> java 26619 amine 305r FIFO 0,6 0t0 176505 pipe >> java 26619 amine 306w FIFO 0,6 0t0 176505 pipe >> java 26619 amine 307u 0000 0,7 0 14 anon_inode >> java 26619 amine 308u IPv6 176506 0t0 TCP *:1551 (LISTEN) >> java 26619 amine 309r FIFO 0,6 0t0 176507 pipe >> java 26619 amine 310w FIFO 0,6 0t0 176507 pipe >> java 26619 amine 311u 0000 0,7 0 14 anon_inode >> java 26619 amine 312r FIFO 0,6 0t0 176508 pipe >> java 26619 amine 313w FIFO 0,6 0t0 176508 pipe >> java 26619 amine 314u 0000 0,7 0 14 anon_inode >> java 26619 amine 316r FIFO 0,6 0t0 176510 pipe >> java 26619 amine 317w FIFO 0,6 0t0 176510 pipe >> java 26619 amine 318u 0000 0,7 0 14 anon_inode >> java 26619 amine 320u IPv6 176512 0t0 TCP *:29665 (LISTEN) >> java 26619 amine 321r FIFO 0,6 0t0 176513 pipe >> java 26619 amine 322w FIFO 0,6 0t0 176513 pipe >> java 26619 amine 323u 0000 0,7 0 14 anon_inode >> java 26619 amine 324r FIFO 0,6 0t0 176514 pipe >> java 26619 amine 325w FIFO 0,6 0t0 176514 pipe >> java 26619 amine 326u 0000 0,7 0 14 anon_inode >> java 26619 amine 327r FIFO 0,6 0t0 176515 pipe >> java 26619 amine 328w FIFO 0,6 0t0 176515 pipe >> java 26619 amine 329u 0000 0,7 0 14 anon_inode >> java 26619 amine 331u IPv6 176517 0t0 TCP *:16934 (LISTEN) >> java 26619 amine 332r FIFO 0,6 0t0 176518 pipe >> java 26619 amine 333w FIFO 0,6 0t0 176518 pipe >> java 26619 amine 334u 0000 0,7 0 14 anon_inode >> java 26619 amine 335r FIFO 0,6 0t0 176519 pipe >> java 26619 amine 336w FIFO 0,6 0t0 176519 pipe >> java 26619 amine 337u 0000 0,7 0 14 anon_inode >> java 26619 amine 338r FIFO 0,6 0t0 176520 pipe >> java 26619 amine 339w FIFO 0,6 0t0 176520 pipe >> java 26619 amine 340u 0000 0,7 0 14 anon_inode >> java 26619 amine 342u IPv6 176522 0t0 TCP *:39627 (LISTEN) >> java 26619 amine 343r FIFO 0,6 0t0 176523 pipe >> java 26619 amine 344w FIFO 0,6 0t0 176523 pipe >> java 26619 amine 345u 0000 0,7 0 14 anon_inode >> java 26619 amine 346r FIFO 0,6 0t0 176524 pipe >> java 26619 amine 347w FIFO 0,6 0t0 176524 pipe >> java 26619 amine 348u 0000 0,7 0 14 anon_inode >> java 26619 amine 349r FIFO 0,6 0t0 176525 pipe >> java 26619 amine 350w FIFO 0,6 0t0 176525 pipe >> java 26619 amine 351u 0000 0,7 0 14 anon_inode >> java 26619 amine 353u IPv6 176527 0t0 TCP *:9543 (LISTEN) >> java 26619 amine 354r FIFO 0,6 0t0 176528 pipe >> java 26619 amine 355w FIFO 0,6 0t0 176528 pipe >> java 26619 amine 356u 0000 0,7 0 14 anon_inode >> java 26619 amine 357r FIFO 0,6 0t0 176529 pipe >> java 26619 amine 358w FIFO 0,6 0t0 176529 pipe >> java 26619 amine 359u 0000 0,7 0 14 anon_inode >> java 26619 amine 360r FIFO 0,6 0t0 176530 pipe >> java 26619 amine 361w FIFO 0,6 0t0 176530 pipe >> java 26619 amine 362u 0000 0,7 0 14 anon_inode >> java 26619 amine 364u IPv6 176532 0t0 TCP *:25380 (LISTEN) >> java 26619 amine 365r FIFO 0,6 0t0 176533 pipe >> java 26619 amine 366w FIFO 0,6 0t0 176533 pipe >> java 26619 amine 367u 0000 0,7 0 14 anon_inode >> java 26619 amine 368r FIFO 0,6 0t0 176534 pipe >> java 26619 amine 369w FIFO 0,6 0t0 176534 pipe >> java 26619 amine 370u 0000 0,7 0 14 anon_inode >> java 26619 amine 371r FIFO 0,6 0t0 176535 pipe >> java 26619 amine 372w FIFO 0,6 0t0 176535 pipe >> java 26619 amine 373u 0000 0,7 0 14 anon_inode >> java 26619 amine 375u IPv6 176537 0t0 TCP *:1164 (LISTEN) >> java 26619 amine 376r FIFO 0,6 0t0 176538 pipe >> java 26619 amine 377w FIFO 0,6 0t0 176538 pipe >> java 26619 amine 378u 0000 0,7 0 14 anon_inode >> java 26619 amine 379r FIFO 0,6 0t0 176539 pipe >> java 26619 amine 380w FIFO 0,6 0t0 176539 pipe >> java 26619 amine 381u 0000 0,7 0 14 anon_inode >> java 26619 amine 382r FIFO 0,6 0t0 176540 pipe >> java 26619 amine 383w FIFO 0,6 0t0 176540 pipe >> java 26619 amine 384u 0000 0,7 0 14 anon_inode >> java 26619 amine 386u IPv6 176542 0t0 TCP *:7486 (LISTEN) >> java 26619 amine 387r FIFO 0,6 0t0 176543 pipe >> java 26619 amine 388w FIFO 0,6 0t0 176543 pipe >> java 26619 amine 389u 0000 0,7 0 14 anon_inode >> java 26619 amine 390r FIFO 0,6 0t0 176544 pipe >> java 26619 amine 391w FIFO 0,6 0t0 176544 pipe >> java 26619 amine 392u 0000 0,7 0 14 anon_inode >> java 26619 amine 393r FIFO 0,6 0t0 176545 pipe >> java 26619 amine 394w FIFO 0,6 0t0 176545 pipe >> java 26619 amine 395u 0000 0,7 0 14 anon_inode >> java 26619 amine 397u IPv6 176547 0t0 TCP *:1754 (LISTEN) >> java 26619 amine 398r FIFO 0,6 0t0 176548 pipe >> java 26619 amine 399w FIFO 0,6 0t0 176548 pipe >> java 26619 amine 400u 0000 0,7 0 14 anon_inode >> java 26619 amine 401r FIFO 0,6 0t0 176549 pipe >> java 26619 amine 402w FIFO 0,6 0t0 176549 pipe >> java 26619 amine 403u 0000 0,7 0 14 anon_inode >> java 26619 amine 404r FIFO 0,6 0t0 176550 pipe >> java 26619 amine 405w FIFO 0,6 0t0 176550 pipe >> java 26619 amine 406u 0000 0,7 0 14 anon_inode >> java 26619 amine 408u IPv6 176552 0t0 TCP *:17382 (LISTEN) >> java 26619 amine 409r FIFO 0,6 0t0 176553 pipe >> java 26619 amine 410w FIFO 0,6 0t0 176553 pipe >> java 26619 amine 411u 0000 0,7 0 14 anon_inode >> java 26619 amine 412r FIFO 0,6 0t0 176554 pipe >> java 26619 amine 413w FIFO 0,6 0t0 176554 pipe >> java 26619 amine 414u 0000 0,7 0 14 anon_inode >> java 26619 amine 415r FIFO 0,6 0t0 176555 pipe >> java 26619 amine 416w FIFO 0,6 0t0 176555 pipe >> java 26619 amine 417u 0000 0,7 0 14 anon_inode >> java 26619 amine 419u IPv6 176557 0t0 TCP *:40948 (LISTEN) >> java 26619 amine 420r FIFO 0,6 0t0 176558 pipe >> java 26619 amine 421w FIFO 0,6 0t0 176558 pipe >> java 26619 amine 422u 0000 0,7 0 14 anon_inode >> java 26619 amine 423r FIFO 0,6 0t0 176559 pipe >> java 26619 amine 424w FIFO 0,6 0t0 176559 pipe >> java 26619 amine 425u 0000 0,7 0 14 anon_inode >> java 26619 amine 426r FIFO 0,6 0t0 176560 pipe >> java 26619 amine 427w FIFO 0,6 0t0 176560 pipe >> java 26619 amine 428u 0000 0,7 0 14 anon_inode >> java 26619 amine 430u IPv6 176562 0t0 TCP *:39309 (LISTEN) >> java 26619 amine 431r FIFO 0,6 0t0 176563 pipe >> java 26619 amine 432w FIFO 0,6 0t0 176563 pipe >> java 26619 amine 433u 0000 0,7 0 14 anon_inode >> java 26619 amine 434r FIFO 0,6 0t0 176564 pipe >> java 26619 amine 435w FIFO 0,6 0t0 176564 pipe >> java 26619 amine 436u 0000 0,7 0 14 anon_inode >> java 26619 amine 437r FIFO 0,6 0t0 176565 pipe >> java 26619 amine 438w FIFO 0,6 0t0 176565 pipe >> java 26619 amine 439u 0000 0,7 0 14 anon_inode >> java 26619 amine 441u IPv6 176567 0t0 TCP *:6732 (LISTEN) >> java 26619 amine 442r FIFO 0,6 0t0 176568 pipe >> java 26619 amine 443w FIFO 0,6 0t0 176568 pipe >> java 26619 amine 444u 0000 0,7 0 14 anon_inode >> java 26619 amine 445r FIFO 0,6 0t0 176569 pipe >> java 26619 amine 446w FIFO 0,6 0t0 176569 pipe >> java 26619 amine 447u 0000 0,7 0 14 anon_inode >> java 26619 amine 448r FIFO 0,6 0t0 176570 pipe >> java 26619 amine 449w FIFO 0,6 0t0 176570 pipe >> java 26619 amine 450u 0000 0,7 0 14 anon_inode >> java 26619 amine 452u IPv6 176572 0t0 TCP *:13872 (LISTEN) >> java 26619 amine 453r FIFO 0,6 0t0 176573 pipe >> java 26619 amine 454w FIFO 0,6 0t0 176573 pipe >> java 26619 amine 455u 0000 0,7 0 14 anon_inode >> java 26619 amine 456r FIFO 0,6 0t0 176574 pipe >> java 26619 amine 457w FIFO 0,6 0t0 176574 pipe >> java 26619 amine 458u 0000 0,7 0 14 anon_inode >> java 26619 amine 459r FIFO 0,6 0t0 176575 pipe >> java 26619 amine 460w FIFO 0,6 0t0 176575 pipe >> java 26619 amine 461u 0000 0,7 0 14 anon_inode >> java 26619 amine 463u IPv6 176577 0t0 TCP *:19881 (LISTEN) >> java 26619 amine 464r FIFO 0,6 0t0 176578 pipe >> java 26619 amine 465w FIFO 0,6 0t0 176578 pipe >> java 26619 amine 466u 0000 0,7 0 14 anon_inode >> java 26619 amine 467r FIFO 0,6 0t0 176579 pipe >> java 26619 amine 468w FIFO 0,6 0t0 176579 pipe >> java 26619 amine 469u 0000 0,7 0 14 anon_inode >> java 26619 amine 470r FIFO 0,6 0t0 176580 pipe >> java 26619 amine 471w FIFO 0,6 0t0 176580 pipe >> java 26619 amine 472u 0000 0,7 0 14 anon_inode >> java 26619 amine 474u IPv6 176581 0t0 TCP *:23695 (LISTEN) >> java 26619 amine 475r FIFO 0,6 0t0 176583 pipe >> java 26619 amine 476w FIFO 0,6 0t0 176583 pipe >> java 26619 amine 477u 0000 0,7 0 14 anon_inode >> java 26619 amine 478r FIFO 0,6 0t0 176584 pipe >> java 26619 amine 479w FIFO 0,6 0t0 176584 pipe >> java 26619 amine 480u 0000 0,7 0 14 anon_inode >> java 26619 amine 481r FIFO 0,6 0t0 176585 pipe >> java 26619 amine 482w FIFO 0,6 0t0 176585 pipe > > > Here is my ulimit -a: > > $ ulimit -a >> core file size (blocks, -c) 0 >> data seg size (kbytes, -d) unlimited >> scheduling priority (-e) 30 >> file size (blocks, -f) unlimited >> pending signals (-i) 24560 >> max locked memory (kbytes, -l) 40000 >> max memory size (kbytes, -m) unlimited >> open files (-n) 1024 >> pipe size (512 bytes, -p) 8 >> POSIX message queues (bytes, -q) 819200 >> real-time priority (-r) 65 >> stack size (kbytes, -s) 8192 >> cpu time (seconds, -t) unlimited >> max user processes (-u) 24560 >> virtual memory (kbytes, -v) unlimited >> file locks (-x) unlimited > > > System information: > > Java 1.6.0_11. > > ArchLinux x86 with Linux Kernel 2.6.28. >> > > I am not sure why it would reach this limit so early, or how to solve it. I > think using a single Selector for all sockets would be a start. Is this > possible with the current design of xSocket? Perhaps there is a way to > handle large amount of sockets that I am not aware of. I would like to > continue using xSocket for my project, and any help is appreciated. > > Thank you, > Amine > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > xSocket-develop mailing list > xSo...@li... > https://lists.sourceforge.net/lists/listinfo/xsocket-develop > > |
|
From: Gregor R. <gre...@go...> - 2009-01-19 06:58:49
|
Hi Amine, xSocket give you 3 options to send data. By default the write operation will be synchronous, that means the write call returns after the data is written (into the OS-internal SO_SNDBUF). If you set the FlushMode to async, the write method will return immediately. The write operation(s) will be done in the background. xSocket uses an internal second-level buffer to do this. If you have written a large amount of data and you closes the connection, xSocket tries to flush all the data of the second-level buffer before the connection will be closed physically. If you want to avoid large second-level write buffer or to have more control over the flowcontrol, you can use xSocket's IWriteCompletionHandler support. Please see chapter 25 of the tutorial. Gregor 2009/1/18 Amine Haddad <ami...@gm...> > Hi Gregor, > > Thank you for the prompt reply. I have a problem with this logic - what > happens if the data in the queue is larger than your connection can spare? > For example, the data in the queue is 1MB and you can only send 10KB/s, and > I call the close() method? > > Amine > > > On Sun, Jan 18, 2009 at 12:08 PM, Gregor Roth <gre...@go...>wrote: > >> Hi Amine, >> >> if you close the connection, all data of the write queue will be flushed >> automatically. This is especially true for flushMode Async. If you write >> data in (default) flushMode Sync, the write method returns only if the data >> ids written. >> >> Gregor >> >> >> 2009/1/18 Amine Haddad <ami...@gm...> >> >>> Hello, >>> >>> How am I able to close a non-blocking connection only after all the data >>> queued to be sent has been sent? I am using xSocket-2.3.2. >>> >>> Thanks, >>> Amine >>> >>> >>> ------------------------------------------------------------------------------ >>> This SF.net email is sponsored by: >>> SourcForge Community >>> SourceForge wants to tell your story. >>> http://p.sf.net/sfu/sf-spreadtheword >>> _______________________________________________ >>> xSocket-develop mailing list >>> xSo...@li... >>> https://lists.sourceforge.net/lists/listinfo/xsocket-develop >>> >>> >> > |
|
From: Gregor R. <gre...@go...> - 2009-01-19 06:56:03
|
Hi Kirk, by calling the server's getOpenConnections() you will get all the server-side connections. Please note, that this method is not defined by the IServer interface. For an example see http://xsocket.svn.sourceforge.net/viewvc/xsocket/xsocket/core/trunk/src/test/java/org/xsocket/connection/NotifyAllClientsTest.java?view=markup Gregor 2009/1/18 Kirk Chang <ki...@pc...> > Hi, > > How do I send a String("Hello all") to all clients connected ? > > I am using INonBlockingConnection to connect to clients. > > > Thanks, > Kirk > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > xSocket-develop mailing list > xSo...@li... > https://lists.sourceforge.net/lists/listinfo/xsocket-develop > > |
|
From: Mohamed M. <m0....@gm...> - 2009-01-19 04:05:52
|
I forgot to state that I am using Windows XP with 4GB of ram and Q6600
Quad Core processor.
On Sun, Jan 18, 2009 at 11:04 PM, Mohamed Mansour
<m0....@gm...> wrote:
> Hello, I ran the exact same program and I got up to 393, I cannot even
> open a browser and browse the net, I have to kill the program.
>
>
> On Sun, Jan 18, 2009 at 10:39 PM, Amine Haddad <ami...@gm...> wrote:
>> Hello,
>>
>> I wanted to see how many sockets I could have listening in my program and it
>> seems that 42 is the limit. Once it tries to create socket 43, it throws an
>> IOException: "too many open files". I was hoping for at least a couple
>> hundred.
>>
>> Here is some sample code:
>>
>>> Random random = new Random();
>>> for(int i = 0;i<1000;i++) {
>>> System.out.println(i + " | Creating server..");
>>> try {
>>> IServer server = new Server(random.nextInt(40000) + 1024,
>>> new DummyHandler());
>>>
>>> server.start();
>>> } catch (UnknownHostException e) {
>>> e.printStackTrace();
>>> } catch (IOException e) {
>>> e.printStackTrace();
>>> }
>>> System.out.println(i + " | Created server!");
>>> }
>>
>> Here is the output:
>>
>>> 0 | Creating server..
>>> 0 | Created server!
>>> 1 | Creating server..
>>> 1 | Created server!
>>> 2 | Creating server..
>>> 2 | Created server!
>>> 3 | Creating server..
>>> 3 | Created server!
>>> 4 | Creating server..
>>> 4 | Created server!
>>> 5 | Creating server..
>>> 5 | Created server!
>>> 6 | Creating server..
>>> 6 | Created server!
>>> 7 | Creating server..
>>> 7 | Created server!
>>> 8 | Creating server..
>>> 8 | Created server!
>>> 9 | Creating server..
>>> 9 | Created server!
>>> 10 | Creating server..
>>> 10 | Created server!
>>> 11 | Creating server..
>>> 11 | Created server!
>>> 12 | Creating server..
>>> 12 | Created server!
>>> 13 | Creating server..
>>> 13 | Created server!
>>> 14 | Creating server..
>>> 14 | Created server!
>>> 15 | Creating server..
>>> 15 | Created server!
>>> 16 | Creating server..
>>> 16 | Created server!
>>> 17 | Creating server..
>>> 17 | Created server!
>>> 18 | Creating server..
>>> 18 | Created server!
>>> 19 | Creating server..
>>> 19 | Created server!
>>> 20 | Creating server..
>>> 20 | Created server!
>>> 21 | Creating server..
>>> 21 | Created server!
>>> 22 | Creating server..
>>> 22 | Created server!
>>> 23 | Creating server..
>>> 23 | Created server!
>>> 24 | Creating server..
>>> 24 | Created server!
>>> 25 | Creating server..
>>> 25 | Created server!
>>> 26 | Creating server..
>>> 26 | Created server!
>>> 27 | Creating server..
>>> 27 | Created server!
>>> 28 | Creating server..
>>> 28 | Created server!
>>> 29 | Creating server..
>>> 29 | Created server!
>>> 30 | Creating server..
>>> 30 | Created server!
>>> 31 | Creating server..
>>> 31 | Created server!
>>> 32 | Creating server..
>>> 32 | Created server!
>>> 33 | Creating server..
>>> 33 | Created server!
>>> 34 | Creating server..
>>> 34 | Created server!
>>> 35 | Creating server..
>>> 35 | Created server!
>>> 36 | Creating server..
>>> 36 | Created server!
>>> 37 | Creating server..
>>> 37 | Created server!
>>> 38 | Creating server..
>>> 38 | Created server!
>>> 39 | Creating server..
>>> 39 | Created server!
>>> 40 | Creating server..
>>> 40 | Created server!
>>> 41 | Creating server..
>>> 41 | Created server!
>>> 42 | Creating server..
>>> Jan 18, 2009 10:16:31 PM org.xsocket.connection.IoSocketDispatcher <init>
>>> SEVERE: exception occured while opening selector. Reason:
>>> java.io.IOException: Too many open files
>>> Exception in thread "main" java.lang.RuntimeException: exception occured
>>> while opening selector. Reason: java.io.IOException: Too many open files
>>> at
>>> org.xsocket.connection.IoSocketDispatcher.<init>(IoSocketDispatcher.java:147)
>>> at
>>> org.xsocket.connection.IoSocketDispatcherPool.updateDispatcher(IoSocketDispatcherPool.java:184)
>>> at
>>> org.xsocket.connection.IoSocketDispatcherPool.setDispatcherSize(IoSocketDispatcherPool.java:285)
>>> at
>>> org.xsocket.connection.IoSocketDispatcherPool.<init>(IoSocketDispatcherPool.java:80)
>>> at
>>> org.xsocket.connection.IoSocketDispatcherPool.<init>(IoSocketDispatcherPool.java:75)
>>> at org.xsocket.connection.IoAcceptor.<init>(IoAcceptor.java:123)
>>> at org.xsocket.connection.IoAcceptor.<init>(IoAcceptor.java:97)
>>> at
>>> org.xsocket.connection.IoProvider.createAcceptor(IoProvider.java:399)
>>> at org.xsocket.connection.Server.<init>(Server.java:399)
>>> at org.xsocket.connection.Server.<init>(Server.java:168)
>>> at org.endra.ftpserver.Main.<init>(Main.java:18)
>>> at org.endra.ftpserver.Main.main(Main.java:31)
>>> Caused by: java.io.IOException: Too many open files
>>> at sun.nio.ch.EPollArrayWrapper.epollCreate(Native Method)
>>> at sun.nio.ch.EPollArrayWrapper.<init>(EPollArrayWrapper.java:68)
>>> at sun.nio.ch.EPollSelectorImpl.<init>(EPollSelectorImpl.java:52)
>>> at
>>> sun.nio.ch.EPollSelectorProvider.openSelector(EPollSelectorProvider.java:18)
>>> at java.nio.channels.Selector.open(Selector.java:209)
>>> at
>>> org.xsocket.connection.IoSocketDispatcher.<init>(IoSocketDispatcher.java:143)
>>> ... 11 more
>>
>> Here is the list of files opened by the program:
>>
>>> COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
>>> java 26619 amine cwd DIR 8,6 4096 4227120
>>> /home/amine/personal/sync/projects/java-ftpd/workspace/ftpd
>>> java 26619 amine rtd DIR 8,5 4096 2 /
>>> java 26619 amine txt REG 8,5 47308 1213979
>>> /opt/java/jre/bin/java
>>> java 26619 amine mem REG 8,5 8561454 1221260
>>> /opt/java/jre/lib/i386/server/libjvm.so
>>> java 26619 amine mem REG 8,5 841071 1214062
>>> /opt/java/jre/lib/ext/localedata.jar
>>> java 26619 amine mem REG 8,5 95830 1221210
>>> /opt/java/jre/lib/i386/libnet.so
>>> java 26619 amine mem REG 8,6 634629 4228080
>>> /home/amine/personal/sync/projects/java-ftpd/workspace/ftpd/Libraries/mina-core-2.0.0-M4.jar
>>> java 26619 amine mem REG 8,5 1561088 379531
>>> /usr/lib/locale/locale-archive
>>> java 26619 amine mem REG 8,5 50853661 1214026
>>> /opt/java/jre/lib/rt.jar
>>> java 26619 amine mem REG 8,5 37081 1221241
>>> /opt/java/jre/lib/i386/libnio.so
>>> java 26619 amine mem REG 8,5 76438 1221232
>>> /opt/java/jre/lib/i386/libzip.so
>>> java 26619 amine mem REG 8,5 189159 1221245
>>> /opt/java/jre/lib/i386/libjava.so
>>> java 26619 amine mem REG 8,5 97109 196641 /lib/libnsl-2.9.so
>>> java 26619 amine mem REG 8,6 309811 4227339
>>> /home/amine/personal/sync/projects/java-ftpd/workspace/ftpd/Libraries/xSocket-2.3.2.jar
>>> java 26619 amine mem REG 8,5 56701 1221207
>>> /opt/java/jre/lib/i386/libverify.so
>>> java 26619 amine mem REG 8,5 32768 442421
>>> /tmp/hsperfdata_amine/26619
>>> java 26619 amine mem REG 8,5 39252 196631 /lib/librt-2.9.so
>>> java 26619 amine mem REG 8,5 180840 196619 /lib/libm-2.9.so
>>> java 26619 amine mem REG 8,5 1554407 196650 /lib/libc-2.9.so
>>> java 26619 amine mem REG 8,5 13419 196620 /lib/libdl-2.9.so
>>> java 26619 amine mem REG 8,5 38142 1221262
>>> /opt/java/jre/lib/i386/jli/libjli.so
>>> java 26619 amine mem REG 8,5 119210 196626
>>> /lib/libpthread-2.9.so
>>> java 26619 amine mem REG 8,6 8815 4228092
>>> /home/amine/personal/sync/projects/java-ftpd/workspace/ftpd/Libraries/slf4j-jdk14-1.5.6.jar
>>> java 26619 amine mem REG 8,6 22338 4228087
>>> /home/amine/personal/sync/projects/java-ftpd/workspace/ftpd/Libraries/slf4j-api-1.5.6.jar
>>> java 26619 amine mem REG 8,5 45752 196630
>>> /lib/libnss_files-2.9.so
>>> java 26619 amine mem REG 8,5 38694 1221264
>>> /opt/java/jre/lib/i386/native_threads/libhpi.so
>>> java 26619 amine mem REG 8,5 132825 196649 /lib/ld-2.9.so
>>> java 26619 amine 0r FIFO 0,6 0t0 176172 pipe
>>> java 26619 amine 1w FIFO 0,6 0t0 176173 pipe
>>> java 26619 amine 2w FIFO 0,6 0t0 176174 pipe
>>> java 26619 amine 3w REG 8,5 50853661 1214026
>>> /opt/java/jre/lib/rt.jar
>>> java 26619 amine 4r REG 8,6 634629 4228080
>>> /home/amine/personal/sync/projects/java-ftpd/workspace/ftpd/Libraries/mina-core-2.0.0-M4.jar
>>> java 26619 amine 5r REG 8,6 22338 4228087
>>> /home/amine/personal/sync/projects/java-ftpd/workspace/ftpd/Libraries/slf4j-api-1.5.6.jar
>>> java 26619 amine 6r REG 8,6 8815 4228092
>>> /home/amine/personal/sync/projects/java-ftpd/workspace/ftpd/Libraries/slf4j-jdk14-1.5.6.jar
>>> java 26619 amine 7r REG 8,6 309811 4227339
>>> /home/amine/personal/sync/projects/java-ftpd/workspace/ftpd/Libraries/xSocket-2.3.2.jar
>>> java 26619 amine 8r CHR 1,8 0t0 2209 /dev/random
>>> java 26619 amine 9r CHR 1,9 0t0 2220 /dev/urandom
>>> java 26619 amine 10r IPv6 176369 0t0 TCP *:23028 (LISTEN)
>>> java 26619 amine 11r FIFO 0,6 0t0 176373 pipe
>>> java 26619 amine 12u sock 0,4 0t0 176371 can't identify
>>> protocol
>>> java 26619 amine 13u FIFO 0,6 0t0 176373 pipe
>>> java 26619 amine 14r 0000 0,7 0 14 anon_inode
>>> java 26619 amine 15r FIFO 0,6 0t0 176374 pipe
>>> java 26619 amine 16r FIFO 0,6 0t0 176374 pipe
>>> java 26619 amine 17r 0000 0,7 0 14 anon_inode
>>> java 26619 amine 18r FIFO 0,6 0t0 176375 pipe
>>> java 26619 amine 19r FIFO 0,6 0t0 176375 pipe
>>> java 26619 amine 20r 0000 0,7 0 14 anon_inode
>>> java 26619 amine 21r FIFO 0,6 0t0 176379 pipe
>>> java 26619 amine 22r FIFO 0,6 0t0 176379 pipe
>>> java 26619 amine 23u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 24u IPv6 176376 0t0 TCP *:3238 (LISTEN)
>>> java 26619 amine 25r FIFO 0,6 0t0 176377 pipe
>>> java 26619 amine 26r FIFO 0,6 0t0 176377 pipe
>>> java 26619 amine 27r 0000 0,7 0 14 anon_inode
>>> java 26619 amine 28r FIFO 0,6 0t0 176378 pipe
>>> java 26619 amine 29r FIFO 0,6 0t0 176378 pipe
>>> java 26619 amine 30r 0000 0,7 0 14 anon_inode
>>> java 26619 amine 31r IPv6 176380 0t0 TCP *:28121 (LISTEN)
>>> java 26619 amine 32r FIFO 0,6 0t0 176381 pipe
>>> java 26619 amine 33r FIFO 0,6 0t0 176381 pipe
>>> java 26619 amine 34r 0000 0,7 0 14 anon_inode
>>> java 26619 amine 35r FIFO 0,6 0t0 176382 pipe
>>> java 26619 amine 36r FIFO 0,6 0t0 176382 pipe
>>> java 26619 amine 37r 0000 0,7 0 14 anon_inode
>>> java 26619 amine 38r FIFO 0,6 0t0 176383 pipe
>>> java 26619 amine 39w FIFO 0,6 0t0 176383 pipe
>>> java 26619 amine 40r 0000 0,7 0 14 anon_inode
>>> java 26619 amine 41r IPv6 176384 0t0 TCP *:12757 (LISTEN)
>>> java 26619 amine 42u FIFO 0,6 0t0 176385 pipe
>>> java 26619 amine 43r FIFO 0,6 0t0 176385 pipe
>>> java 26619 amine 44r 0000 0,7 0 14 anon_inode
>>> java 26619 amine 45r FIFO 0,6 0t0 176386 pipe
>>> java 26619 amine 46r FIFO 0,6 0t0 176386 pipe
>>> java 26619 amine 47r 0000 0,7 0 14 anon_inode
>>> java 26619 amine 48r REG 8,5 841071 1214062
>>> /opt/java/jre/lib/ext/localedata.jar
>>> java 26619 amine 49r FIFO 0,6 0t0 176387 pipe
>>> java 26619 amine 50r FIFO 0,6 0t0 176387 pipe
>>> java 26619 amine 51r 0000 0,7 0 14 anon_inode
>>> java 26619 amine 52r IPv6 176388 0t0 TCP *:26021 (LISTEN)
>>> java 26619 amine 57r FIFO 0,6 0t0 176393 pipe
>>> java 26619 amine 58r FIFO 0,6 0t0 176393 pipe
>>> java 26619 amine 59r 0000 0,7 0 14 anon_inode
>>> java 26619 amine 60r FIFO 0,6 0t0 176394 pipe
>>> java 26619 amine 61r FIFO 0,6 0t0 176394 pipe
>>> java 26619 amine 62r 0000 0,7 0 14 anon_inode
>>> java 26619 amine 63r FIFO 0,6 0t0 176395 pipe
>>> java 26619 amine 64r FIFO 0,6 0t0 176395 pipe
>>> java 26619 amine 65r 0000 0,7 0 14 anon_inode
>>> java 26619 amine 67r IPv6 176397 0t0 TCP *:8870 (LISTEN)
>>> java 26619 amine 68r FIFO 0,6 0t0 176398 pipe
>>> java 26619 amine 69r FIFO 0,6 0t0 176398 pipe
>>> java 26619 amine 70r 0000 0,7 0 14 anon_inode
>>> java 26619 amine 71r FIFO 0,6 0t0 176399 pipe
>>> java 26619 amine 72r FIFO 0,6 0t0 176399 pipe
>>> java 26619 amine 73r 0000 0,7 0 14 anon_inode
>>> java 26619 amine 74r FIFO 0,6 0t0 176400 pipe
>>> java 26619 amine 75r FIFO 0,6 0t0 176400 pipe
>>> java 26619 amine 76r 0000 0,7 0 14 anon_inode
>>> java 26619 amine 78r IPv6 176402 0t0 TCP *:6739 (LISTEN)
>>> java 26619 amine 79r FIFO 0,6 0t0 176403 pipe
>>> java 26619 amine 80r FIFO 0,6 0t0 176403 pipe
>>> java 26619 amine 81r 0000 0,7 0 14 anon_inode
>>> java 26619 amine 82r FIFO 0,6 0t0 176404 pipe
>>> java 26619 amine 83r FIFO 0,6 0t0 176404 pipe
>>> java 26619 amine 84r 0000 0,7 0 14 anon_inode
>>> java 26619 amine 85r FIFO 0,6 0t0 176405 pipe
>>> java 26619 amine 86r FIFO 0,6 0t0 176405 pipe
>>> java 26619 amine 87r 0000 0,7 0 14 anon_inode
>>> java 26619 amine 89r IPv6 176407 0t0 TCP *:39981 (LISTEN)
>>> java 26619 amine 90r FIFO 0,6 0t0 176408 pipe
>>> java 26619 amine 91r FIFO 0,6 0t0 176408 pipe
>>> java 26619 amine 92r 0000 0,7 0 14 anon_inode
>>> java 26619 amine 93r FIFO 0,6 0t0 176409 pipe
>>> java 26619 amine 94r FIFO 0,6 0t0 176409 pipe
>>> java 26619 amine 95r 0000 0,7 0 14 anon_inode
>>> java 26619 amine 96r FIFO 0,6 0t0 176410 pipe
>>> java 26619 amine 97r FIFO 0,6 0t0 176410 pipe
>>> java 26619 amine 98r 0000 0,7 0 14 anon_inode
>>> java 26619 amine 100r IPv6 176412 0t0 TCP *:17367 (LISTEN)
>>> java 26619 amine 101r FIFO 0,6 0t0 176413 pipe
>>> java 26619 amine 102r FIFO 0,6 0t0 176413 pipe
>>> java 26619 amine 103r 0000 0,7 0 14 anon_inode
>>> java 26619 amine 104r FIFO 0,6 0t0 176414 pipe
>>> java 26619 amine 105r FIFO 0,6 0t0 176414 pipe
>>> java 26619 amine 106r 0000 0,7 0 14 anon_inode
>>> java 26619 amine 107r FIFO 0,6 0t0 176415 pipe
>>> java 26619 amine 108r FIFO 0,6 0t0 176415 pipe
>>> java 26619 amine 109r 0000 0,7 0 14 anon_inode
>>> java 26619 amine 111r IPv6 176417 0t0 TCP *:8546 (LISTEN)
>>> java 26619 amine 112r FIFO 0,6 0t0 176418 pipe
>>> java 26619 amine 113r FIFO 0,6 0t0 176418 pipe
>>> java 26619 amine 114r 0000 0,7 0 14 anon_inode
>>> java 26619 amine 115r FIFO 0,6 0t0 176419 pipe
>>> java 26619 amine 116r FIFO 0,6 0t0 176419 pipe
>>> java 26619 amine 117r 0000 0,7 0 14 anon_inode
>>> java 26619 amine 118r FIFO 0,6 0t0 176420 pipe
>>> java 26619 amine 119r FIFO 0,6 0t0 176420 pipe
>>> java 26619 amine 120r 0000 0,7 0 14 anon_inode
>>> java 26619 amine 122r IPv6 176422 0t0 TCP *:34761 (LISTEN)
>>> java 26619 amine 123r FIFO 0,6 0t0 176423 pipe
>>> java 26619 amine 124r FIFO 0,6 0t0 176423 pipe
>>> java 26619 amine 125w 0000 0,7 0 14 anon_inode
>>> java 26619 amine 126w FIFO 0,6 0t0 176424 pipe
>>> java 26619 amine 127u FIFO 0,6 0t0 176424 pipe
>>> java 26619 amine 128r 0000 0,7 0 14 anon_inode
>>> java 26619 amine 129w FIFO 0,6 0t0 176425 pipe
>>> java 26619 amine 130r FIFO 0,6 0t0 176425 pipe
>>> java 26619 amine 131w 0000 0,7 0 14 anon_inode
>>> java 26619 amine 133u IPv6 176427 0t0 TCP *:15774 (LISTEN)
>>> java 26619 amine 134u FIFO 0,6 0t0 176428 pipe
>>> java 26619 amine 135u FIFO 0,6 0t0 176428 pipe
>>> java 26619 amine 136u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 137r FIFO 0,6 0t0 176429 pipe
>>> java 26619 amine 138r FIFO 0,6 0t0 176429 pipe
>>> java 26619 amine 139r 0000 0,7 0 14 anon_inode
>>> java 26619 amine 140u FIFO 0,6 0t0 176430 pipe
>>> java 26619 amine 141r FIFO 0,6 0t0 176430 pipe
>>> java 26619 amine 142u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 144r IPv6 176432 0t0 TCP *:29114 (LISTEN)
>>> java 26619 amine 145r FIFO 0,6 0t0 176433 pipe
>>> java 26619 amine 146r FIFO 0,6 0t0 176433 pipe
>>> java 26619 amine 147r 0000 0,7 0 14 anon_inode
>>> java 26619 amine 148r FIFO 0,6 0t0 176434 pipe
>>> java 26619 amine 149r FIFO 0,6 0t0 176434 pipe
>>> java 26619 amine 150r 0000 0,7 0 14 anon_inode
>>> java 26619 amine 151r FIFO 0,6 0t0 176435 pipe
>>> java 26619 amine 152r FIFO 0,6 0t0 176435 pipe
>>> java 26619 amine 153r 0000 0,7 0 14 anon_inode
>>> java 26619 amine 154r IPv6 176436 0t0 TCP *:28531 (LISTEN)
>>> java 26619 amine 155r FIFO 0,6 0t0 176438 pipe
>>> java 26619 amine 157r FIFO 0,6 0t0 176438 pipe
>>> java 26619 amine 158r 0000 0,7 0 14 anon_inode
>>> java 26619 amine 159r FIFO 0,6 0t0 176439 pipe
>>> java 26619 amine 160r FIFO 0,6 0t0 176439 pipe
>>> java 26619 amine 161r 0000 0,7 0 14 anon_inode
>>> java 26619 amine 162r FIFO 0,6 0t0 176440 pipe
>>> java 26619 amine 163w FIFO 0,6 0t0 176440 pipe
>>> java 26619 amine 164r 0000 0,7 0 14 anon_inode
>>> java 26619 amine 166r IPv6 176442 0t0 TCP *:1657 (LISTEN)
>>> java 26619 amine 167r FIFO 0,6 0t0 176443 pipe
>>> java 26619 amine 168r FIFO 0,6 0t0 176443 pipe
>>> java 26619 amine 169r 0000 0,7 0 14 anon_inode
>>> java 26619 amine 170r FIFO 0,6 0t0 176444 pipe
>>> java 26619 amine 171r FIFO 0,6 0t0 176444 pipe
>>> java 26619 amine 172r 0000 0,7 0 14 anon_inode
>>> java 26619 amine 173r FIFO 0,6 0t0 176445 pipe
>>> java 26619 amine 174r FIFO 0,6 0t0 176445 pipe
>>> java 26619 amine 175r 0000 0,7 0 14 anon_inode
>>> java 26619 amine 176r IPv6 176446 0t0 TCP *:24786 (LISTEN)
>>> java 26619 amine 177r FIFO 0,6 0t0 176448 pipe
>>> java 26619 amine 179w FIFO 0,6 0t0 176448 pipe
>>> java 26619 amine 180u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 181r FIFO 0,6 0t0 176449 pipe
>>> java 26619 amine 182w FIFO 0,6 0t0 176449 pipe
>>> java 26619 amine 183u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 184r FIFO 0,6 0t0 176450 pipe
>>> java 26619 amine 185w FIFO 0,6 0t0 176450 pipe
>>> java 26619 amine 186u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 188u IPv6 176452 0t0 TCP *:7526 (LISTEN)
>>> java 26619 amine 189r FIFO 0,6 0t0 176453 pipe
>>> java 26619 amine 190w FIFO 0,6 0t0 176453 pipe
>>> java 26619 amine 191u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 192r FIFO 0,6 0t0 176454 pipe
>>> java 26619 amine 193w FIFO 0,6 0t0 176454 pipe
>>> java 26619 amine 194u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 195r FIFO 0,6 0t0 176455 pipe
>>> java 26619 amine 196w FIFO 0,6 0t0 176455 pipe
>>> java 26619 amine 197u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 199u IPv6 176457 0t0 TCP *:37646 (LISTEN)
>>> java 26619 amine 200r FIFO 0,6 0t0 176458 pipe
>>> java 26619 amine 201w FIFO 0,6 0t0 176458 pipe
>>> java 26619 amine 202u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 203r FIFO 0,6 0t0 176459 pipe
>>> java 26619 amine 204w FIFO 0,6 0t0 176459 pipe
>>> java 26619 amine 205u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 206r FIFO 0,6 0t0 176460 pipe
>>> java 26619 amine 207w FIFO 0,6 0t0 176460 pipe
>>> java 26619 amine 208u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 210u IPv6 176462 0t0 TCP *:9826 (LISTEN)
>>> java 26619 amine 211r FIFO 0,6 0t0 176463 pipe
>>> java 26619 amine 212w FIFO 0,6 0t0 176463 pipe
>>> java 26619 amine 213u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 214r FIFO 0,6 0t0 176464 pipe
>>> java 26619 amine 215w FIFO 0,6 0t0 176464 pipe
>>> java 26619 amine 216u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 217r FIFO 0,6 0t0 176465 pipe
>>> java 26619 amine 218w FIFO 0,6 0t0 176465 pipe
>>> java 26619 amine 219u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 221u IPv6 176467 0t0 TCP *:22903 (LISTEN)
>>> java 26619 amine 222r FIFO 0,6 0t0 176468 pipe
>>> java 26619 amine 223w FIFO 0,6 0t0 176468 pipe
>>> java 26619 amine 224u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 225r FIFO 0,6 0t0 176469 pipe
>>> java 26619 amine 226w FIFO 0,6 0t0 176469 pipe
>>> java 26619 amine 227u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 228r FIFO 0,6 0t0 176470 pipe
>>> java 26619 amine 229w FIFO 0,6 0t0 176470 pipe
>>> java 26619 amine 230u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 232u IPv6 176472 0t0 TCP *:6900 (LISTEN)
>>> java 26619 amine 233r FIFO 0,6 0t0 176473 pipe
>>> java 26619 amine 234w FIFO 0,6 0t0 176473 pipe
>>> java 26619 amine 235u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 236r FIFO 0,6 0t0 176474 pipe
>>> java 26619 amine 237w FIFO 0,6 0t0 176474 pipe
>>> java 26619 amine 238u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 239r FIFO 0,6 0t0 176475 pipe
>>> java 26619 amine 240w FIFO 0,6 0t0 176475 pipe
>>> java 26619 amine 241u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 243u IPv6 176477 0t0 TCP *:17306 (LISTEN)
>>> java 26619 amine 244r FIFO 0,6 0t0 176478 pipe
>>> java 26619 amine 245w FIFO 0,6 0t0 176478 pipe
>>> java 26619 amine 246u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 247r FIFO 0,6 0t0 176479 pipe
>>> java 26619 amine 248w FIFO 0,6 0t0 176479 pipe
>>> java 26619 amine 249u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 250r FIFO 0,6 0t0 176480 pipe
>>> java 26619 amine 251w FIFO 0,6 0t0 176480 pipe
>>> java 26619 amine 252u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 254u IPv6 176482 0t0 TCP *:39151 (LISTEN)
>>> java 26619 amine 255r FIFO 0,6 0t0 176483 pipe
>>> java 26619 amine 256w FIFO 0,6 0t0 176483 pipe
>>> java 26619 amine 257u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 258r FIFO 0,6 0t0 176484 pipe
>>> java 26619 amine 259w FIFO 0,6 0t0 176484 pipe
>>> java 26619 amine 260u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 261r FIFO 0,6 0t0 176485 pipe
>>> java 26619 amine 262w FIFO 0,6 0t0 176485 pipe
>>> java 26619 amine 263u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 265u IPv6 176487 0t0 TCP *:32994 (LISTEN)
>>> java 26619 amine 266r FIFO 0,6 0t0 176488 pipe
>>> java 26619 amine 267w FIFO 0,6 0t0 176488 pipe
>>> java 26619 amine 268u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 269r FIFO 0,6 0t0 176489 pipe
>>> java 26619 amine 270w FIFO 0,6 0t0 176489 pipe
>>> java 26619 amine 271u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 272r FIFO 0,6 0t0 176490 pipe
>>> java 26619 amine 273w FIFO 0,6 0t0 176490 pipe
>>> java 26619 amine 274u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 276u IPv6 176492 0t0 TCP *:31418 (LISTEN)
>>> java 26619 amine 277r FIFO 0,6 0t0 176493 pipe
>>> java 26619 amine 278w FIFO 0,6 0t0 176493 pipe
>>> java 26619 amine 279u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 280r FIFO 0,6 0t0 176494 pipe
>>> java 26619 amine 281w FIFO 0,6 0t0 176494 pipe
>>> java 26619 amine 282u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 283r FIFO 0,6 0t0 176495 pipe
>>> java 26619 amine 284w FIFO 0,6 0t0 176495 pipe
>>> java 26619 amine 285u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 287u IPv6 176497 0t0 TCP *:26210 (LISTEN)
>>> java 26619 amine 288r FIFO 0,6 0t0 176498 pipe
>>> java 26619 amine 289w FIFO 0,6 0t0 176498 pipe
>>> java 26619 amine 290u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 291r FIFO 0,6 0t0 176499 pipe
>>> java 26619 amine 292w FIFO 0,6 0t0 176499 pipe
>>> java 26619 amine 293u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 294r FIFO 0,6 0t0 176500 pipe
>>> java 26619 amine 295w FIFO 0,6 0t0 176500 pipe
>>> java 26619 amine 296u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 298u IPv6 176502 0t0 TCP *:37630 (LISTEN)
>>> java 26619 amine 299r FIFO 0,6 0t0 176503 pipe
>>> java 26619 amine 300w FIFO 0,6 0t0 176503 pipe
>>> java 26619 amine 301u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 302r FIFO 0,6 0t0 176504 pipe
>>> java 26619 amine 303w FIFO 0,6 0t0 176504 pipe
>>> java 26619 amine 304u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 305r FIFO 0,6 0t0 176505 pipe
>>> java 26619 amine 306w FIFO 0,6 0t0 176505 pipe
>>> java 26619 amine 307u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 308u IPv6 176506 0t0 TCP *:1551 (LISTEN)
>>> java 26619 amine 309r FIFO 0,6 0t0 176507 pipe
>>> java 26619 amine 310w FIFO 0,6 0t0 176507 pipe
>>> java 26619 amine 311u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 312r FIFO 0,6 0t0 176508 pipe
>>> java 26619 amine 313w FIFO 0,6 0t0 176508 pipe
>>> java 26619 amine 314u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 316r FIFO 0,6 0t0 176510 pipe
>>> java 26619 amine 317w FIFO 0,6 0t0 176510 pipe
>>> java 26619 amine 318u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 320u IPv6 176512 0t0 TCP *:29665 (LISTEN)
>>> java 26619 amine 321r FIFO 0,6 0t0 176513 pipe
>>> java 26619 amine 322w FIFO 0,6 0t0 176513 pipe
>>> java 26619 amine 323u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 324r FIFO 0,6 0t0 176514 pipe
>>> java 26619 amine 325w FIFO 0,6 0t0 176514 pipe
>>> java 26619 amine 326u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 327r FIFO 0,6 0t0 176515 pipe
>>> java 26619 amine 328w FIFO 0,6 0t0 176515 pipe
>>> java 26619 amine 329u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 331u IPv6 176517 0t0 TCP *:16934 (LISTEN)
>>> java 26619 amine 332r FIFO 0,6 0t0 176518 pipe
>>> java 26619 amine 333w FIFO 0,6 0t0 176518 pipe
>>> java 26619 amine 334u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 335r FIFO 0,6 0t0 176519 pipe
>>> java 26619 amine 336w FIFO 0,6 0t0 176519 pipe
>>> java 26619 amine 337u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 338r FIFO 0,6 0t0 176520 pipe
>>> java 26619 amine 339w FIFO 0,6 0t0 176520 pipe
>>> java 26619 amine 340u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 342u IPv6 176522 0t0 TCP *:39627 (LISTEN)
>>> java 26619 amine 343r FIFO 0,6 0t0 176523 pipe
>>> java 26619 amine 344w FIFO 0,6 0t0 176523 pipe
>>> java 26619 amine 345u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 346r FIFO 0,6 0t0 176524 pipe
>>> java 26619 amine 347w FIFO 0,6 0t0 176524 pipe
>>> java 26619 amine 348u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 349r FIFO 0,6 0t0 176525 pipe
>>> java 26619 amine 350w FIFO 0,6 0t0 176525 pipe
>>> java 26619 amine 351u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 353u IPv6 176527 0t0 TCP *:9543 (LISTEN)
>>> java 26619 amine 354r FIFO 0,6 0t0 176528 pipe
>>> java 26619 amine 355w FIFO 0,6 0t0 176528 pipe
>>> java 26619 amine 356u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 357r FIFO 0,6 0t0 176529 pipe
>>> java 26619 amine 358w FIFO 0,6 0t0 176529 pipe
>>> java 26619 amine 359u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 360r FIFO 0,6 0t0 176530 pipe
>>> java 26619 amine 361w FIFO 0,6 0t0 176530 pipe
>>> java 26619 amine 362u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 364u IPv6 176532 0t0 TCP *:25380 (LISTEN)
>>> java 26619 amine 365r FIFO 0,6 0t0 176533 pipe
>>> java 26619 amine 366w FIFO 0,6 0t0 176533 pipe
>>> java 26619 amine 367u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 368r FIFO 0,6 0t0 176534 pipe
>>> java 26619 amine 369w FIFO 0,6 0t0 176534 pipe
>>> java 26619 amine 370u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 371r FIFO 0,6 0t0 176535 pipe
>>> java 26619 amine 372w FIFO 0,6 0t0 176535 pipe
>>> java 26619 amine 373u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 375u IPv6 176537 0t0 TCP *:1164 (LISTEN)
>>> java 26619 amine 376r FIFO 0,6 0t0 176538 pipe
>>> java 26619 amine 377w FIFO 0,6 0t0 176538 pipe
>>> java 26619 amine 378u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 379r FIFO 0,6 0t0 176539 pipe
>>> java 26619 amine 380w FIFO 0,6 0t0 176539 pipe
>>> java 26619 amine 381u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 382r FIFO 0,6 0t0 176540 pipe
>>> java 26619 amine 383w FIFO 0,6 0t0 176540 pipe
>>> java 26619 amine 384u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 386u IPv6 176542 0t0 TCP *:7486 (LISTEN)
>>> java 26619 amine 387r FIFO 0,6 0t0 176543 pipe
>>> java 26619 amine 388w FIFO 0,6 0t0 176543 pipe
>>> java 26619 amine 389u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 390r FIFO 0,6 0t0 176544 pipe
>>> java 26619 amine 391w FIFO 0,6 0t0 176544 pipe
>>> java 26619 amine 392u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 393r FIFO 0,6 0t0 176545 pipe
>>> java 26619 amine 394w FIFO 0,6 0t0 176545 pipe
>>> java 26619 amine 395u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 397u IPv6 176547 0t0 TCP *:1754 (LISTEN)
>>> java 26619 amine 398r FIFO 0,6 0t0 176548 pipe
>>> java 26619 amine 399w FIFO 0,6 0t0 176548 pipe
>>> java 26619 amine 400u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 401r FIFO 0,6 0t0 176549 pipe
>>> java 26619 amine 402w FIFO 0,6 0t0 176549 pipe
>>> java 26619 amine 403u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 404r FIFO 0,6 0t0 176550 pipe
>>> java 26619 amine 405w FIFO 0,6 0t0 176550 pipe
>>> java 26619 amine 406u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 408u IPv6 176552 0t0 TCP *:17382 (LISTEN)
>>> java 26619 amine 409r FIFO 0,6 0t0 176553 pipe
>>> java 26619 amine 410w FIFO 0,6 0t0 176553 pipe
>>> java 26619 amine 411u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 412r FIFO 0,6 0t0 176554 pipe
>>> java 26619 amine 413w FIFO 0,6 0t0 176554 pipe
>>> java 26619 amine 414u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 415r FIFO 0,6 0t0 176555 pipe
>>> java 26619 amine 416w FIFO 0,6 0t0 176555 pipe
>>> java 26619 amine 417u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 419u IPv6 176557 0t0 TCP *:40948 (LISTEN)
>>> java 26619 amine 420r FIFO 0,6 0t0 176558 pipe
>>> java 26619 amine 421w FIFO 0,6 0t0 176558 pipe
>>> java 26619 amine 422u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 423r FIFO 0,6 0t0 176559 pipe
>>> java 26619 amine 424w FIFO 0,6 0t0 176559 pipe
>>> java 26619 amine 425u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 426r FIFO 0,6 0t0 176560 pipe
>>> java 26619 amine 427w FIFO 0,6 0t0 176560 pipe
>>> java 26619 amine 428u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 430u IPv6 176562 0t0 TCP *:39309 (LISTEN)
>>> java 26619 amine 431r FIFO 0,6 0t0 176563 pipe
>>> java 26619 amine 432w FIFO 0,6 0t0 176563 pipe
>>> java 26619 amine 433u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 434r FIFO 0,6 0t0 176564 pipe
>>> java 26619 amine 435w FIFO 0,6 0t0 176564 pipe
>>> java 26619 amine 436u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 437r FIFO 0,6 0t0 176565 pipe
>>> java 26619 amine 438w FIFO 0,6 0t0 176565 pipe
>>> java 26619 amine 439u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 441u IPv6 176567 0t0 TCP *:6732 (LISTEN)
>>> java 26619 amine 442r FIFO 0,6 0t0 176568 pipe
>>> java 26619 amine 443w FIFO 0,6 0t0 176568 pipe
>>> java 26619 amine 444u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 445r FIFO 0,6 0t0 176569 pipe
>>> java 26619 amine 446w FIFO 0,6 0t0 176569 pipe
>>> java 26619 amine 447u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 448r FIFO 0,6 0t0 176570 pipe
>>> java 26619 amine 449w FIFO 0,6 0t0 176570 pipe
>>> java 26619 amine 450u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 452u IPv6 176572 0t0 TCP *:13872 (LISTEN)
>>> java 26619 amine 453r FIFO 0,6 0t0 176573 pipe
>>> java 26619 amine 454w FIFO 0,6 0t0 176573 pipe
>>> java 26619 amine 455u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 456r FIFO 0,6 0t0 176574 pipe
>>> java 26619 amine 457w FIFO 0,6 0t0 176574 pipe
>>> java 26619 amine 458u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 459r FIFO 0,6 0t0 176575 pipe
>>> java 26619 amine 460w FIFO 0,6 0t0 176575 pipe
>>> java 26619 amine 461u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 463u IPv6 176577 0t0 TCP *:19881 (LISTEN)
>>> java 26619 amine 464r FIFO 0,6 0t0 176578 pipe
>>> java 26619 amine 465w FIFO 0,6 0t0 176578 pipe
>>> java 26619 amine 466u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 467r FIFO 0,6 0t0 176579 pipe
>>> java 26619 amine 468w FIFO 0,6 0t0 176579 pipe
>>> java 26619 amine 469u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 470r FIFO 0,6 0t0 176580 pipe
>>> java 26619 amine 471w FIFO 0,6 0t0 176580 pipe
>>> java 26619 amine 472u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 474u IPv6 176581 0t0 TCP *:23695 (LISTEN)
>>> java 26619 amine 475r FIFO 0,6 0t0 176583 pipe
>>> java 26619 amine 476w FIFO 0,6 0t0 176583 pipe
>>> java 26619 amine 477u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 478r FIFO 0,6 0t0 176584 pipe
>>> java 26619 amine 479w FIFO 0,6 0t0 176584 pipe
>>> java 26619 amine 480u 0000 0,7 0 14 anon_inode
>>> java 26619 amine 481r FIFO 0,6 0t0 176585 pipe
>>> java 26619 amine 482w FIFO 0,6 0t0 176585 pipe
>>
>> Here is my ulimit -a:
>>
>>> $ ulimit -a
>>> core file size (blocks, -c) 0
>>> data seg size (kbytes, -d) unlimited
>>> scheduling priority (-e) 30
>>> file size (blocks, -f) unlimited
>>> pending signals (-i) 24560
>>> max locked memory (kbytes, -l) 40000
>>> max memory size (kbytes, -m) unlimited
>>> open files (-n) 1024
>>> pipe size (512 bytes, -p) 8
>>> POSIX message queues (bytes, -q) 819200
>>> real-time priority (-r) 65
>>> stack size (kbytes, -s) 8192
>>> cpu time (seconds, -t) unlimited
>>> max user processes (-u) 24560
>>> virtual memory (kbytes, -v) unlimited
>>> file locks (-x) unlimited
>>
>> System information:
>>
>>> Java 1.6.0_11.
>>>
>>> ArchLinux x86 with Linux Kernel 2.6.28.
>>
>> I am not sure why it would reach this limit so early, or how to solve it. I
>> think using a single Selector for all sockets would be a start. Is this
>> possible with the current design of xSocket? Perhaps there is a way to
>> handle large amount of sockets that I am not aware of. I would like to
>> continue using xSocket for my project, and any help is appreciated.
>>
>> Thank you,
>> Amine
>>
>
|
|
From: Mohamed M. <m0....@gm...> - 2009-01-19 04:05:10
|
Hello, I ran the exact same program and I got up to 393, I cannot even
open a browser and browse the net, I have to kill the program.
On Sun, Jan 18, 2009 at 10:39 PM, Amine Haddad <ami...@gm...> wrote:
> Hello,
>
> I wanted to see how many sockets I could have listening in my program and it
> seems that 42 is the limit. Once it tries to create socket 43, it throws an
> IOException: "too many open files". I was hoping for at least a couple
> hundred.
>
> Here is some sample code:
>
>> Random random = new Random();
>> for(int i = 0;i<1000;i++) {
>> System.out.println(i + " | Creating server..");
>> try {
>> IServer server = new Server(random.nextInt(40000) + 1024,
>> new DummyHandler());
>>
>> server.start();
>> } catch (UnknownHostException e) {
>> e.printStackTrace();
>> } catch (IOException e) {
>> e.printStackTrace();
>> }
>> System.out.println(i + " | Created server!");
>> }
>
> Here is the output:
>
>> 0 | Creating server..
>> 0 | Created server!
>> 1 | Creating server..
>> 1 | Created server!
>> 2 | Creating server..
>> 2 | Created server!
>> 3 | Creating server..
>> 3 | Created server!
>> 4 | Creating server..
>> 4 | Created server!
>> 5 | Creating server..
>> 5 | Created server!
>> 6 | Creating server..
>> 6 | Created server!
>> 7 | Creating server..
>> 7 | Created server!
>> 8 | Creating server..
>> 8 | Created server!
>> 9 | Creating server..
>> 9 | Created server!
>> 10 | Creating server..
>> 10 | Created server!
>> 11 | Creating server..
>> 11 | Created server!
>> 12 | Creating server..
>> 12 | Created server!
>> 13 | Creating server..
>> 13 | Created server!
>> 14 | Creating server..
>> 14 | Created server!
>> 15 | Creating server..
>> 15 | Created server!
>> 16 | Creating server..
>> 16 | Created server!
>> 17 | Creating server..
>> 17 | Created server!
>> 18 | Creating server..
>> 18 | Created server!
>> 19 | Creating server..
>> 19 | Created server!
>> 20 | Creating server..
>> 20 | Created server!
>> 21 | Creating server..
>> 21 | Created server!
>> 22 | Creating server..
>> 22 | Created server!
>> 23 | Creating server..
>> 23 | Created server!
>> 24 | Creating server..
>> 24 | Created server!
>> 25 | Creating server..
>> 25 | Created server!
>> 26 | Creating server..
>> 26 | Created server!
>> 27 | Creating server..
>> 27 | Created server!
>> 28 | Creating server..
>> 28 | Created server!
>> 29 | Creating server..
>> 29 | Created server!
>> 30 | Creating server..
>> 30 | Created server!
>> 31 | Creating server..
>> 31 | Created server!
>> 32 | Creating server..
>> 32 | Created server!
>> 33 | Creating server..
>> 33 | Created server!
>> 34 | Creating server..
>> 34 | Created server!
>> 35 | Creating server..
>> 35 | Created server!
>> 36 | Creating server..
>> 36 | Created server!
>> 37 | Creating server..
>> 37 | Created server!
>> 38 | Creating server..
>> 38 | Created server!
>> 39 | Creating server..
>> 39 | Created server!
>> 40 | Creating server..
>> 40 | Created server!
>> 41 | Creating server..
>> 41 | Created server!
>> 42 | Creating server..
>> Jan 18, 2009 10:16:31 PM org.xsocket.connection.IoSocketDispatcher <init>
>> SEVERE: exception occured while opening selector. Reason:
>> java.io.IOException: Too many open files
>> Exception in thread "main" java.lang.RuntimeException: exception occured
>> while opening selector. Reason: java.io.IOException: Too many open files
>> at
>> org.xsocket.connection.IoSocketDispatcher.<init>(IoSocketDispatcher.java:147)
>> at
>> org.xsocket.connection.IoSocketDispatcherPool.updateDispatcher(IoSocketDispatcherPool.java:184)
>> at
>> org.xsocket.connection.IoSocketDispatcherPool.setDispatcherSize(IoSocketDispatcherPool.java:285)
>> at
>> org.xsocket.connection.IoSocketDispatcherPool.<init>(IoSocketDispatcherPool.java:80)
>> at
>> org.xsocket.connection.IoSocketDispatcherPool.<init>(IoSocketDispatcherPool.java:75)
>> at org.xsocket.connection.IoAcceptor.<init>(IoAcceptor.java:123)
>> at org.xsocket.connection.IoAcceptor.<init>(IoAcceptor.java:97)
>> at
>> org.xsocket.connection.IoProvider.createAcceptor(IoProvider.java:399)
>> at org.xsocket.connection.Server.<init>(Server.java:399)
>> at org.xsocket.connection.Server.<init>(Server.java:168)
>> at org.endra.ftpserver.Main.<init>(Main.java:18)
>> at org.endra.ftpserver.Main.main(Main.java:31)
>> Caused by: java.io.IOException: Too many open files
>> at sun.nio.ch.EPollArrayWrapper.epollCreate(Native Method)
>> at sun.nio.ch.EPollArrayWrapper.<init>(EPollArrayWrapper.java:68)
>> at sun.nio.ch.EPollSelectorImpl.<init>(EPollSelectorImpl.java:52)
>> at
>> sun.nio.ch.EPollSelectorProvider.openSelector(EPollSelectorProvider.java:18)
>> at java.nio.channels.Selector.open(Selector.java:209)
>> at
>> org.xsocket.connection.IoSocketDispatcher.<init>(IoSocketDispatcher.java:143)
>> ... 11 more
>
> Here is the list of files opened by the program:
>
>> COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
>> java 26619 amine cwd DIR 8,6 4096 4227120
>> /home/amine/personal/sync/projects/java-ftpd/workspace/ftpd
>> java 26619 amine rtd DIR 8,5 4096 2 /
>> java 26619 amine txt REG 8,5 47308 1213979
>> /opt/java/jre/bin/java
>> java 26619 amine mem REG 8,5 8561454 1221260
>> /opt/java/jre/lib/i386/server/libjvm.so
>> java 26619 amine mem REG 8,5 841071 1214062
>> /opt/java/jre/lib/ext/localedata.jar
>> java 26619 amine mem REG 8,5 95830 1221210
>> /opt/java/jre/lib/i386/libnet.so
>> java 26619 amine mem REG 8,6 634629 4228080
>> /home/amine/personal/sync/projects/java-ftpd/workspace/ftpd/Libraries/mina-core-2.0.0-M4.jar
>> java 26619 amine mem REG 8,5 1561088 379531
>> /usr/lib/locale/locale-archive
>> java 26619 amine mem REG 8,5 50853661 1214026
>> /opt/java/jre/lib/rt.jar
>> java 26619 amine mem REG 8,5 37081 1221241
>> /opt/java/jre/lib/i386/libnio.so
>> java 26619 amine mem REG 8,5 76438 1221232
>> /opt/java/jre/lib/i386/libzip.so
>> java 26619 amine mem REG 8,5 189159 1221245
>> /opt/java/jre/lib/i386/libjava.so
>> java 26619 amine mem REG 8,5 97109 196641 /lib/libnsl-2.9.so
>> java 26619 amine mem REG 8,6 309811 4227339
>> /home/amine/personal/sync/projects/java-ftpd/workspace/ftpd/Libraries/xSocket-2.3.2.jar
>> java 26619 amine mem REG 8,5 56701 1221207
>> /opt/java/jre/lib/i386/libverify.so
>> java 26619 amine mem REG 8,5 32768 442421
>> /tmp/hsperfdata_amine/26619
>> java 26619 amine mem REG 8,5 39252 196631 /lib/librt-2.9.so
>> java 26619 amine mem REG 8,5 180840 196619 /lib/libm-2.9.so
>> java 26619 amine mem REG 8,5 1554407 196650 /lib/libc-2.9.so
>> java 26619 amine mem REG 8,5 13419 196620 /lib/libdl-2.9.so
>> java 26619 amine mem REG 8,5 38142 1221262
>> /opt/java/jre/lib/i386/jli/libjli.so
>> java 26619 amine mem REG 8,5 119210 196626
>> /lib/libpthread-2.9.so
>> java 26619 amine mem REG 8,6 8815 4228092
>> /home/amine/personal/sync/projects/java-ftpd/workspace/ftpd/Libraries/slf4j-jdk14-1.5.6.jar
>> java 26619 amine mem REG 8,6 22338 4228087
>> /home/amine/personal/sync/projects/java-ftpd/workspace/ftpd/Libraries/slf4j-api-1.5.6.jar
>> java 26619 amine mem REG 8,5 45752 196630
>> /lib/libnss_files-2.9.so
>> java 26619 amine mem REG 8,5 38694 1221264
>> /opt/java/jre/lib/i386/native_threads/libhpi.so
>> java 26619 amine mem REG 8,5 132825 196649 /lib/ld-2.9.so
>> java 26619 amine 0r FIFO 0,6 0t0 176172 pipe
>> java 26619 amine 1w FIFO 0,6 0t0 176173 pipe
>> java 26619 amine 2w FIFO 0,6 0t0 176174 pipe
>> java 26619 amine 3w REG 8,5 50853661 1214026
>> /opt/java/jre/lib/rt.jar
>> java 26619 amine 4r REG 8,6 634629 4228080
>> /home/amine/personal/sync/projects/java-ftpd/workspace/ftpd/Libraries/mina-core-2.0.0-M4.jar
>> java 26619 amine 5r REG 8,6 22338 4228087
>> /home/amine/personal/sync/projects/java-ftpd/workspace/ftpd/Libraries/slf4j-api-1.5.6.jar
>> java 26619 amine 6r REG 8,6 8815 4228092
>> /home/amine/personal/sync/projects/java-ftpd/workspace/ftpd/Libraries/slf4j-jdk14-1.5.6.jar
>> java 26619 amine 7r REG 8,6 309811 4227339
>> /home/amine/personal/sync/projects/java-ftpd/workspace/ftpd/Libraries/xSocket-2.3.2.jar
>> java 26619 amine 8r CHR 1,8 0t0 2209 /dev/random
>> java 26619 amine 9r CHR 1,9 0t0 2220 /dev/urandom
>> java 26619 amine 10r IPv6 176369 0t0 TCP *:23028 (LISTEN)
>> java 26619 amine 11r FIFO 0,6 0t0 176373 pipe
>> java 26619 amine 12u sock 0,4 0t0 176371 can't identify
>> protocol
>> java 26619 amine 13u FIFO 0,6 0t0 176373 pipe
>> java 26619 amine 14r 0000 0,7 0 14 anon_inode
>> java 26619 amine 15r FIFO 0,6 0t0 176374 pipe
>> java 26619 amine 16r FIFO 0,6 0t0 176374 pipe
>> java 26619 amine 17r 0000 0,7 0 14 anon_inode
>> java 26619 amine 18r FIFO 0,6 0t0 176375 pipe
>> java 26619 amine 19r FIFO 0,6 0t0 176375 pipe
>> java 26619 amine 20r 0000 0,7 0 14 anon_inode
>> java 26619 amine 21r FIFO 0,6 0t0 176379 pipe
>> java 26619 amine 22r FIFO 0,6 0t0 176379 pipe
>> java 26619 amine 23u 0000 0,7 0 14 anon_inode
>> java 26619 amine 24u IPv6 176376 0t0 TCP *:3238 (LISTEN)
>> java 26619 amine 25r FIFO 0,6 0t0 176377 pipe
>> java 26619 amine 26r FIFO 0,6 0t0 176377 pipe
>> java 26619 amine 27r 0000 0,7 0 14 anon_inode
>> java 26619 amine 28r FIFO 0,6 0t0 176378 pipe
>> java 26619 amine 29r FIFO 0,6 0t0 176378 pipe
>> java 26619 amine 30r 0000 0,7 0 14 anon_inode
>> java 26619 amine 31r IPv6 176380 0t0 TCP *:28121 (LISTEN)
>> java 26619 amine 32r FIFO 0,6 0t0 176381 pipe
>> java 26619 amine 33r FIFO 0,6 0t0 176381 pipe
>> java 26619 amine 34r 0000 0,7 0 14 anon_inode
>> java 26619 amine 35r FIFO 0,6 0t0 176382 pipe
>> java 26619 amine 36r FIFO 0,6 0t0 176382 pipe
>> java 26619 amine 37r 0000 0,7 0 14 anon_inode
>> java 26619 amine 38r FIFO 0,6 0t0 176383 pipe
>> java 26619 amine 39w FIFO 0,6 0t0 176383 pipe
>> java 26619 amine 40r 0000 0,7 0 14 anon_inode
>> java 26619 amine 41r IPv6 176384 0t0 TCP *:12757 (LISTEN)
>> java 26619 amine 42u FIFO 0,6 0t0 176385 pipe
>> java 26619 amine 43r FIFO 0,6 0t0 176385 pipe
>> java 26619 amine 44r 0000 0,7 0 14 anon_inode
>> java 26619 amine 45r FIFO 0,6 0t0 176386 pipe
>> java 26619 amine 46r FIFO 0,6 0t0 176386 pipe
>> java 26619 amine 47r 0000 0,7 0 14 anon_inode
>> java 26619 amine 48r REG 8,5 841071 1214062
>> /opt/java/jre/lib/ext/localedata.jar
>> java 26619 amine 49r FIFO 0,6 0t0 176387 pipe
>> java 26619 amine 50r FIFO 0,6 0t0 176387 pipe
>> java 26619 amine 51r 0000 0,7 0 14 anon_inode
>> java 26619 amine 52r IPv6 176388 0t0 TCP *:26021 (LISTEN)
>> java 26619 amine 57r FIFO 0,6 0t0 176393 pipe
>> java 26619 amine 58r FIFO 0,6 0t0 176393 pipe
>> java 26619 amine 59r 0000 0,7 0 14 anon_inode
>> java 26619 amine 60r FIFO 0,6 0t0 176394 pipe
>> java 26619 amine 61r FIFO 0,6 0t0 176394 pipe
>> java 26619 amine 62r 0000 0,7 0 14 anon_inode
>> java 26619 amine 63r FIFO 0,6 0t0 176395 pipe
>> java 26619 amine 64r FIFO 0,6 0t0 176395 pipe
>> java 26619 amine 65r 0000 0,7 0 14 anon_inode
>> java 26619 amine 67r IPv6 176397 0t0 TCP *:8870 (LISTEN)
>> java 26619 amine 68r FIFO 0,6 0t0 176398 pipe
>> java 26619 amine 69r FIFO 0,6 0t0 176398 pipe
>> java 26619 amine 70r 0000 0,7 0 14 anon_inode
>> java 26619 amine 71r FIFO 0,6 0t0 176399 pipe
>> java 26619 amine 72r FIFO 0,6 0t0 176399 pipe
>> java 26619 amine 73r 0000 0,7 0 14 anon_inode
>> java 26619 amine 74r FIFO 0,6 0t0 176400 pipe
>> java 26619 amine 75r FIFO 0,6 0t0 176400 pipe
>> java 26619 amine 76r 0000 0,7 0 14 anon_inode
>> java 26619 amine 78r IPv6 176402 0t0 TCP *:6739 (LISTEN)
>> java 26619 amine 79r FIFO 0,6 0t0 176403 pipe
>> java 26619 amine 80r FIFO 0,6 0t0 176403 pipe
>> java 26619 amine 81r 0000 0,7 0 14 anon_inode
>> java 26619 amine 82r FIFO 0,6 0t0 176404 pipe
>> java 26619 amine 83r FIFO 0,6 0t0 176404 pipe
>> java 26619 amine 84r 0000 0,7 0 14 anon_inode
>> java 26619 amine 85r FIFO 0,6 0t0 176405 pipe
>> java 26619 amine 86r FIFO 0,6 0t0 176405 pipe
>> java 26619 amine 87r 0000 0,7 0 14 anon_inode
>> java 26619 amine 89r IPv6 176407 0t0 TCP *:39981 (LISTEN)
>> java 26619 amine 90r FIFO 0,6 0t0 176408 pipe
>> java 26619 amine 91r FIFO 0,6 0t0 176408 pipe
>> java 26619 amine 92r 0000 0,7 0 14 anon_inode
>> java 26619 amine 93r FIFO 0,6 0t0 176409 pipe
>> java 26619 amine 94r FIFO 0,6 0t0 176409 pipe
>> java 26619 amine 95r 0000 0,7 0 14 anon_inode
>> java 26619 amine 96r FIFO 0,6 0t0 176410 pipe
>> java 26619 amine 97r FIFO 0,6 0t0 176410 pipe
>> java 26619 amine 98r 0000 0,7 0 14 anon_inode
>> java 26619 amine 100r IPv6 176412 0t0 TCP *:17367 (LISTEN)
>> java 26619 amine 101r FIFO 0,6 0t0 176413 pipe
>> java 26619 amine 102r FIFO 0,6 0t0 176413 pipe
>> java 26619 amine 103r 0000 0,7 0 14 anon_inode
>> java 26619 amine 104r FIFO 0,6 0t0 176414 pipe
>> java 26619 amine 105r FIFO 0,6 0t0 176414 pipe
>> java 26619 amine 106r 0000 0,7 0 14 anon_inode
>> java 26619 amine 107r FIFO 0,6 0t0 176415 pipe
>> java 26619 amine 108r FIFO 0,6 0t0 176415 pipe
>> java 26619 amine 109r 0000 0,7 0 14 anon_inode
>> java 26619 amine 111r IPv6 176417 0t0 TCP *:8546 (LISTEN)
>> java 26619 amine 112r FIFO 0,6 0t0 176418 pipe
>> java 26619 amine 113r FIFO 0,6 0t0 176418 pipe
>> java 26619 amine 114r 0000 0,7 0 14 anon_inode
>> java 26619 amine 115r FIFO 0,6 0t0 176419 pipe
>> java 26619 amine 116r FIFO 0,6 0t0 176419 pipe
>> java 26619 amine 117r 0000 0,7 0 14 anon_inode
>> java 26619 amine 118r FIFO 0,6 0t0 176420 pipe
>> java 26619 amine 119r FIFO 0,6 0t0 176420 pipe
>> java 26619 amine 120r 0000 0,7 0 14 anon_inode
>> java 26619 amine 122r IPv6 176422 0t0 TCP *:34761 (LISTEN)
>> java 26619 amine 123r FIFO 0,6 0t0 176423 pipe
>> java 26619 amine 124r FIFO 0,6 0t0 176423 pipe
>> java 26619 amine 125w 0000 0,7 0 14 anon_inode
>> java 26619 amine 126w FIFO 0,6 0t0 176424 pipe
>> java 26619 amine 127u FIFO 0,6 0t0 176424 pipe
>> java 26619 amine 128r 0000 0,7 0 14 anon_inode
>> java 26619 amine 129w FIFO 0,6 0t0 176425 pipe
>> java 26619 amine 130r FIFO 0,6 0t0 176425 pipe
>> java 26619 amine 131w 0000 0,7 0 14 anon_inode
>> java 26619 amine 133u IPv6 176427 0t0 TCP *:15774 (LISTEN)
>> java 26619 amine 134u FIFO 0,6 0t0 176428 pipe
>> java 26619 amine 135u FIFO 0,6 0t0 176428 pipe
>> java 26619 amine 136u 0000 0,7 0 14 anon_inode
>> java 26619 amine 137r FIFO 0,6 0t0 176429 pipe
>> java 26619 amine 138r FIFO 0,6 0t0 176429 pipe
>> java 26619 amine 139r 0000 0,7 0 14 anon_inode
>> java 26619 amine 140u FIFO 0,6 0t0 176430 pipe
>> java 26619 amine 141r FIFO 0,6 0t0 176430 pipe
>> java 26619 amine 142u 0000 0,7 0 14 anon_inode
>> java 26619 amine 144r IPv6 176432 0t0 TCP *:29114 (LISTEN)
>> java 26619 amine 145r FIFO 0,6 0t0 176433 pipe
>> java 26619 amine 146r FIFO 0,6 0t0 176433 pipe
>> java 26619 amine 147r 0000 0,7 0 14 anon_inode
>> java 26619 amine 148r FIFO 0,6 0t0 176434 pipe
>> java 26619 amine 149r FIFO 0,6 0t0 176434 pipe
>> java 26619 amine 150r 0000 0,7 0 14 anon_inode
>> java 26619 amine 151r FIFO 0,6 0t0 176435 pipe
>> java 26619 amine 152r FIFO 0,6 0t0 176435 pipe
>> java 26619 amine 153r 0000 0,7 0 14 anon_inode
>> java 26619 amine 154r IPv6 176436 0t0 TCP *:28531 (LISTEN)
>> java 26619 amine 155r FIFO 0,6 0t0 176438 pipe
>> java 26619 amine 157r FIFO 0,6 0t0 176438 pipe
>> java 26619 amine 158r 0000 0,7 0 14 anon_inode
>> java 26619 amine 159r FIFO 0,6 0t0 176439 pipe
>> java 26619 amine 160r FIFO 0,6 0t0 176439 pipe
>> java 26619 amine 161r 0000 0,7 0 14 anon_inode
>> java 26619 amine 162r FIFO 0,6 0t0 176440 pipe
>> java 26619 amine 163w FIFO 0,6 0t0 176440 pipe
>> java 26619 amine 164r 0000 0,7 0 14 anon_inode
>> java 26619 amine 166r IPv6 176442 0t0 TCP *:1657 (LISTEN)
>> java 26619 amine 167r FIFO 0,6 0t0 176443 pipe
>> java 26619 amine 168r FIFO 0,6 0t0 176443 pipe
>> java 26619 amine 169r 0000 0,7 0 14 anon_inode
>> java 26619 amine 170r FIFO 0,6 0t0 176444 pipe
>> java 26619 amine 171r FIFO 0,6 0t0 176444 pipe
>> java 26619 amine 172r 0000 0,7 0 14 anon_inode
>> java 26619 amine 173r FIFO 0,6 0t0 176445 pipe
>> java 26619 amine 174r FIFO 0,6 0t0 176445 pipe
>> java 26619 amine 175r 0000 0,7 0 14 anon_inode
>> java 26619 amine 176r IPv6 176446 0t0 TCP *:24786 (LISTEN)
>> java 26619 amine 177r FIFO 0,6 0t0 176448 pipe
>> java 26619 amine 179w FIFO 0,6 0t0 176448 pipe
>> java 26619 amine 180u 0000 0,7 0 14 anon_inode
>> java 26619 amine 181r FIFO 0,6 0t0 176449 pipe
>> java 26619 amine 182w FIFO 0,6 0t0 176449 pipe
>> java 26619 amine 183u 0000 0,7 0 14 anon_inode
>> java 26619 amine 184r FIFO 0,6 0t0 176450 pipe
>> java 26619 amine 185w FIFO 0,6 0t0 176450 pipe
>> java 26619 amine 186u 0000 0,7 0 14 anon_inode
>> java 26619 amine 188u IPv6 176452 0t0 TCP *:7526 (LISTEN)
>> java 26619 amine 189r FIFO 0,6 0t0 176453 pipe
>> java 26619 amine 190w FIFO 0,6 0t0 176453 pipe
>> java 26619 amine 191u 0000 0,7 0 14 anon_inode
>> java 26619 amine 192r FIFO 0,6 0t0 176454 pipe
>> java 26619 amine 193w FIFO 0,6 0t0 176454 pipe
>> java 26619 amine 194u 0000 0,7 0 14 anon_inode
>> java 26619 amine 195r FIFO 0,6 0t0 176455 pipe
>> java 26619 amine 196w FIFO 0,6 0t0 176455 pipe
>> java 26619 amine 197u 0000 0,7 0 14 anon_inode
>> java 26619 amine 199u IPv6 176457 0t0 TCP *:37646 (LISTEN)
>> java 26619 amine 200r FIFO 0,6 0t0 176458 pipe
>> java 26619 amine 201w FIFO 0,6 0t0 176458 pipe
>> java 26619 amine 202u 0000 0,7 0 14 anon_inode
>> java 26619 amine 203r FIFO 0,6 0t0 176459 pipe
>> java 26619 amine 204w FIFO 0,6 0t0 176459 pipe
>> java 26619 amine 205u 0000 0,7 0 14 anon_inode
>> java 26619 amine 206r FIFO 0,6 0t0 176460 pipe
>> java 26619 amine 207w FIFO 0,6 0t0 176460 pipe
>> java 26619 amine 208u 0000 0,7 0 14 anon_inode
>> java 26619 amine 210u IPv6 176462 0t0 TCP *:9826 (LISTEN)
>> java 26619 amine 211r FIFO 0,6 0t0 176463 pipe
>> java 26619 amine 212w FIFO 0,6 0t0 176463 pipe
>> java 26619 amine 213u 0000 0,7 0 14 anon_inode
>> java 26619 amine 214r FIFO 0,6 0t0 176464 pipe
>> java 26619 amine 215w FIFO 0,6 0t0 176464 pipe
>> java 26619 amine 216u 0000 0,7 0 14 anon_inode
>> java 26619 amine 217r FIFO 0,6 0t0 176465 pipe
>> java 26619 amine 218w FIFO 0,6 0t0 176465 pipe
>> java 26619 amine 219u 0000 0,7 0 14 anon_inode
>> java 26619 amine 221u IPv6 176467 0t0 TCP *:22903 (LISTEN)
>> java 26619 amine 222r FIFO 0,6 0t0 176468 pipe
>> java 26619 amine 223w FIFO 0,6 0t0 176468 pipe
>> java 26619 amine 224u 0000 0,7 0 14 anon_inode
>> java 26619 amine 225r FIFO 0,6 0t0 176469 pipe
>> java 26619 amine 226w FIFO 0,6 0t0 176469 pipe
>> java 26619 amine 227u 0000 0,7 0 14 anon_inode
>> java 26619 amine 228r FIFO 0,6 0t0 176470 pipe
>> java 26619 amine 229w FIFO 0,6 0t0 176470 pipe
>> java 26619 amine 230u 0000 0,7 0 14 anon_inode
>> java 26619 amine 232u IPv6 176472 0t0 TCP *:6900 (LISTEN)
>> java 26619 amine 233r FIFO 0,6 0t0 176473 pipe
>> java 26619 amine 234w FIFO 0,6 0t0 176473 pipe
>> java 26619 amine 235u 0000 0,7 0 14 anon_inode
>> java 26619 amine 236r FIFO 0,6 0t0 176474 pipe
>> java 26619 amine 237w FIFO 0,6 0t0 176474 pipe
>> java 26619 amine 238u 0000 0,7 0 14 anon_inode
>> java 26619 amine 239r FIFO 0,6 0t0 176475 pipe
>> java 26619 amine 240w FIFO 0,6 0t0 176475 pipe
>> java 26619 amine 241u 0000 0,7 0 14 anon_inode
>> java 26619 amine 243u IPv6 176477 0t0 TCP *:17306 (LISTEN)
>> java 26619 amine 244r FIFO 0,6 0t0 176478 pipe
>> java 26619 amine 245w FIFO 0,6 0t0 176478 pipe
>> java 26619 amine 246u 0000 0,7 0 14 anon_inode
>> java 26619 amine 247r FIFO 0,6 0t0 176479 pipe
>> java 26619 amine 248w FIFO 0,6 0t0 176479 pipe
>> java 26619 amine 249u 0000 0,7 0 14 anon_inode
>> java 26619 amine 250r FIFO 0,6 0t0 176480 pipe
>> java 26619 amine 251w FIFO 0,6 0t0 176480 pipe
>> java 26619 amine 252u 0000 0,7 0 14 anon_inode
>> java 26619 amine 254u IPv6 176482 0t0 TCP *:39151 (LISTEN)
>> java 26619 amine 255r FIFO 0,6 0t0 176483 pipe
>> java 26619 amine 256w FIFO 0,6 0t0 176483 pipe
>> java 26619 amine 257u 0000 0,7 0 14 anon_inode
>> java 26619 amine 258r FIFO 0,6 0t0 176484 pipe
>> java 26619 amine 259w FIFO 0,6 0t0 176484 pipe
>> java 26619 amine 260u 0000 0,7 0 14 anon_inode
>> java 26619 amine 261r FIFO 0,6 0t0 176485 pipe
>> java 26619 amine 262w FIFO 0,6 0t0 176485 pipe
>> java 26619 amine 263u 0000 0,7 0 14 anon_inode
>> java 26619 amine 265u IPv6 176487 0t0 TCP *:32994 (LISTEN)
>> java 26619 amine 266r FIFO 0,6 0t0 176488 pipe
>> java 26619 amine 267w FIFO 0,6 0t0 176488 pipe
>> java 26619 amine 268u 0000 0,7 0 14 anon_inode
>> java 26619 amine 269r FIFO 0,6 0t0 176489 pipe
>> java 26619 amine 270w FIFO 0,6 0t0 176489 pipe
>> java 26619 amine 271u 0000 0,7 0 14 anon_inode
>> java 26619 amine 272r FIFO 0,6 0t0 176490 pipe
>> java 26619 amine 273w FIFO 0,6 0t0 176490 pipe
>> java 26619 amine 274u 0000 0,7 0 14 anon_inode
>> java 26619 amine 276u IPv6 176492 0t0 TCP *:31418 (LISTEN)
>> java 26619 amine 277r FIFO 0,6 0t0 176493 pipe
>> java 26619 amine 278w FIFO 0,6 0t0 176493 pipe
>> java 26619 amine 279u 0000 0,7 0 14 anon_inode
>> java 26619 amine 280r FIFO 0,6 0t0 176494 pipe
>> java 26619 amine 281w FIFO 0,6 0t0 176494 pipe
>> java 26619 amine 282u 0000 0,7 0 14 anon_inode
>> java 26619 amine 283r FIFO 0,6 0t0 176495 pipe
>> java 26619 amine 284w FIFO 0,6 0t0 176495 pipe
>> java 26619 amine 285u 0000 0,7 0 14 anon_inode
>> java 26619 amine 287u IPv6 176497 0t0 TCP *:26210 (LISTEN)
>> java 26619 amine 288r FIFO 0,6 0t0 176498 pipe
>> java 26619 amine 289w FIFO 0,6 0t0 176498 pipe
>> java 26619 amine 290u 0000 0,7 0 14 anon_inode
>> java 26619 amine 291r FIFO 0,6 0t0 176499 pipe
>> java 26619 amine 292w FIFO 0,6 0t0 176499 pipe
>> java 26619 amine 293u 0000 0,7 0 14 anon_inode
>> java 26619 amine 294r FIFO 0,6 0t0 176500 pipe
>> java 26619 amine 295w FIFO 0,6 0t0 176500 pipe
>> java 26619 amine 296u 0000 0,7 0 14 anon_inode
>> java 26619 amine 298u IPv6 176502 0t0 TCP *:37630 (LISTEN)
>> java 26619 amine 299r FIFO 0,6 0t0 176503 pipe
>> java 26619 amine 300w FIFO 0,6 0t0 176503 pipe
>> java 26619 amine 301u 0000 0,7 0 14 anon_inode
>> java 26619 amine 302r FIFO 0,6 0t0 176504 pipe
>> java 26619 amine 303w FIFO 0,6 0t0 176504 pipe
>> java 26619 amine 304u 0000 0,7 0 14 anon_inode
>> java 26619 amine 305r FIFO 0,6 0t0 176505 pipe
>> java 26619 amine 306w FIFO 0,6 0t0 176505 pipe
>> java 26619 amine 307u 0000 0,7 0 14 anon_inode
>> java 26619 amine 308u IPv6 176506 0t0 TCP *:1551 (LISTEN)
>> java 26619 amine 309r FIFO 0,6 0t0 176507 pipe
>> java 26619 amine 310w FIFO 0,6 0t0 176507 pipe
>> java 26619 amine 311u 0000 0,7 0 14 anon_inode
>> java 26619 amine 312r FIFO 0,6 0t0 176508 pipe
>> java 26619 amine 313w FIFO 0,6 0t0 176508 pipe
>> java 26619 amine 314u 0000 0,7 0 14 anon_inode
>> java 26619 amine 316r FIFO 0,6 0t0 176510 pipe
>> java 26619 amine 317w FIFO 0,6 0t0 176510 pipe
>> java 26619 amine 318u 0000 0,7 0 14 anon_inode
>> java 26619 amine 320u IPv6 176512 0t0 TCP *:29665 (LISTEN)
>> java 26619 amine 321r FIFO 0,6 0t0 176513 pipe
>> java 26619 amine 322w FIFO 0,6 0t0 176513 pipe
>> java 26619 amine 323u 0000 0,7 0 14 anon_inode
>> java 26619 amine 324r FIFO 0,6 0t0 176514 pipe
>> java 26619 amine 325w FIFO 0,6 0t0 176514 pipe
>> java 26619 amine 326u 0000 0,7 0 14 anon_inode
>> java 26619 amine 327r FIFO 0,6 0t0 176515 pipe
>> java 26619 amine 328w FIFO 0,6 0t0 176515 pipe
>> java 26619 amine 329u 0000 0,7 0 14 anon_inode
>> java 26619 amine 331u IPv6 176517 0t0 TCP *:16934 (LISTEN)
>> java 26619 amine 332r FIFO 0,6 0t0 176518 pipe
>> java 26619 amine 333w FIFO 0,6 0t0 176518 pipe
>> java 26619 amine 334u 0000 0,7 0 14 anon_inode
>> java 26619 amine 335r FIFO 0,6 0t0 176519 pipe
>> java 26619 amine 336w FIFO 0,6 0t0 176519 pipe
>> java 26619 amine 337u 0000 0,7 0 14 anon_inode
>> java 26619 amine 338r FIFO 0,6 0t0 176520 pipe
>> java 26619 amine 339w FIFO 0,6 0t0 176520 pipe
>> java 26619 amine 340u 0000 0,7 0 14 anon_inode
>> java 26619 amine 342u IPv6 176522 0t0 TCP *:39627 (LISTEN)
>> java 26619 amine 343r FIFO 0,6 0t0 176523 pipe
>> java 26619 amine 344w FIFO 0,6 0t0 176523 pipe
>> java 26619 amine 345u 0000 0,7 0 14 anon_inode
>> java 26619 amine 346r FIFO 0,6 0t0 176524 pipe
>> java 26619 amine 347w FIFO 0,6 0t0 176524 pipe
>> java 26619 amine 348u 0000 0,7 0 14 anon_inode
>> java 26619 amine 349r FIFO 0,6 0t0 176525 pipe
>> java 26619 amine 350w FIFO 0,6 0t0 176525 pipe
>> java 26619 amine 351u 0000 0,7 0 14 anon_inode
>> java 26619 amine 353u IPv6 176527 0t0 TCP *:9543 (LISTEN)
>> java 26619 amine 354r FIFO 0,6 0t0 176528 pipe
>> java 26619 amine 355w FIFO 0,6 0t0 176528 pipe
>> java 26619 amine 356u 0000 0,7 0 14 anon_inode
>> java 26619 amine 357r FIFO 0,6 0t0 176529 pipe
>> java 26619 amine 358w FIFO 0,6 0t0 176529 pipe
>> java 26619 amine 359u 0000 0,7 0 14 anon_inode
>> java 26619 amine 360r FIFO 0,6 0t0 176530 pipe
>> java 26619 amine 361w FIFO 0,6 0t0 176530 pipe
>> java 26619 amine 362u 0000 0,7 0 14 anon_inode
>> java 26619 amine 364u IPv6 176532 0t0 TCP *:25380 (LISTEN)
>> java 26619 amine 365r FIFO 0,6 0t0 176533 pipe
>> java 26619 amine 366w FIFO 0,6 0t0 176533 pipe
>> java 26619 amine 367u 0000 0,7 0 14 anon_inode
>> java 26619 amine 368r FIFO 0,6 0t0 176534 pipe
>> java 26619 amine 369w FIFO 0,6 0t0 176534 pipe
>> java 26619 amine 370u 0000 0,7 0 14 anon_inode
>> java 26619 amine 371r FIFO 0,6 0t0 176535 pipe
>> java 26619 amine 372w FIFO 0,6 0t0 176535 pipe
>> java 26619 amine 373u 0000 0,7 0 14 anon_inode
>> java 26619 amine 375u IPv6 176537 0t0 TCP *:1164 (LISTEN)
>> java 26619 amine 376r FIFO 0,6 0t0 176538 pipe
>> java 26619 amine 377w FIFO 0,6 0t0 176538 pipe
>> java 26619 amine 378u 0000 0,7 0 14 anon_inode
>> java 26619 amine 379r FIFO 0,6 0t0 176539 pipe
>> java 26619 amine 380w FIFO 0,6 0t0 176539 pipe
>> java 26619 amine 381u 0000 0,7 0 14 anon_inode
>> java 26619 amine 382r FIFO 0,6 0t0 176540 pipe
>> java 26619 amine 383w FIFO 0,6 0t0 176540 pipe
>> java 26619 amine 384u 0000 0,7 0 14 anon_inode
>> java 26619 amine 386u IPv6 176542 0t0 TCP *:7486 (LISTEN)
>> java 26619 amine 387r FIFO 0,6 0t0 176543 pipe
>> java 26619 amine 388w FIFO 0,6 0t0 176543 pipe
>> java 26619 amine 389u 0000 0,7 0 14 anon_inode
>> java 26619 amine 390r FIFO 0,6 0t0 176544 pipe
>> java 26619 amine 391w FIFO 0,6 0t0 176544 pipe
>> java 26619 amine 392u 0000 0,7 0 14 anon_inode
>> java 26619 amine 393r FIFO 0,6 0t0 176545 pipe
>> java 26619 amine 394w FIFO 0,6 0t0 176545 pipe
>> java 26619 amine 395u 0000 0,7 0 14 anon_inode
>> java 26619 amine 397u IPv6 176547 0t0 TCP *:1754 (LISTEN)
>> java 26619 amine 398r FIFO 0,6 0t0 176548 pipe
>> java 26619 amine 399w FIFO 0,6 0t0 176548 pipe
>> java 26619 amine 400u 0000 0,7 0 14 anon_inode
>> java 26619 amine 401r FIFO 0,6 0t0 176549 pipe
>> java 26619 amine 402w FIFO 0,6 0t0 176549 pipe
>> java 26619 amine 403u 0000 0,7 0 14 anon_inode
>> java 26619 amine 404r FIFO 0,6 0t0 176550 pipe
>> java 26619 amine 405w FIFO 0,6 0t0 176550 pipe
>> java 26619 amine 406u 0000 0,7 0 14 anon_inode
>> java 26619 amine 408u IPv6 176552 0t0 TCP *:17382 (LISTEN)
>> java 26619 amine 409r FIFO 0,6 0t0 176553 pipe
>> java 26619 amine 410w FIFO 0,6 0t0 176553 pipe
>> java 26619 amine 411u 0000 0,7 0 14 anon_inode
>> java 26619 amine 412r FIFO 0,6 0t0 176554 pipe
>> java 26619 amine 413w FIFO 0,6 0t0 176554 pipe
>> java 26619 amine 414u 0000 0,7 0 14 anon_inode
>> java 26619 amine 415r FIFO 0,6 0t0 176555 pipe
>> java 26619 amine 416w FIFO 0,6 0t0 176555 pipe
>> java 26619 amine 417u 0000 0,7 0 14 anon_inode
>> java 26619 amine 419u IPv6 176557 0t0 TCP *:40948 (LISTEN)
>> java 26619 amine 420r FIFO 0,6 0t0 176558 pipe
>> java 26619 amine 421w FIFO 0,6 0t0 176558 pipe
>> java 26619 amine 422u 0000 0,7 0 14 anon_inode
>> java 26619 amine 423r FIFO 0,6 0t0 176559 pipe
>> java 26619 amine 424w FIFO 0,6 0t0 176559 pipe
>> java 26619 amine 425u 0000 0,7 0 14 anon_inode
>> java 26619 amine 426r FIFO 0,6 0t0 176560 pipe
>> java 26619 amine 427w FIFO 0,6 0t0 176560 pipe
>> java 26619 amine 428u 0000 0,7 0 14 anon_inode
>> java 26619 amine 430u IPv6 176562 0t0 TCP *:39309 (LISTEN)
>> java 26619 amine 431r FIFO 0,6 0t0 176563 pipe
>> java 26619 amine 432w FIFO 0,6 0t0 176563 pipe
>> java 26619 amine 433u 0000 0,7 0 14 anon_inode
>> java 26619 amine 434r FIFO 0,6 0t0 176564 pipe
>> java 26619 amine 435w FIFO 0,6 0t0 176564 pipe
>> java 26619 amine 436u 0000 0,7 0 14 anon_inode
>> java 26619 amine 437r FIFO 0,6 0t0 176565 pipe
>> java 26619 amine 438w FIFO 0,6 0t0 176565 pipe
>> java 26619 amine 439u 0000 0,7 0 14 anon_inode
>> java 26619 amine 441u IPv6 176567 0t0 TCP *:6732 (LISTEN)
>> java 26619 amine 442r FIFO 0,6 0t0 176568 pipe
>> java 26619 amine 443w FIFO 0,6 0t0 176568 pipe
>> java 26619 amine 444u 0000 0,7 0 14 anon_inode
>> java 26619 amine 445r FIFO 0,6 0t0 176569 pipe
>> java 26619 amine 446w FIFO 0,6 0t0 176569 pipe
>> java 26619 amine 447u 0000 0,7 0 14 anon_inode
>> java 26619 amine 448r FIFO 0,6 0t0 176570 pipe
>> java 26619 amine 449w FIFO 0,6 0t0 176570 pipe
>> java 26619 amine 450u 0000 0,7 0 14 anon_inode
>> java 26619 amine 452u IPv6 176572 0t0 TCP *:13872 (LISTEN)
>> java 26619 amine 453r FIFO 0,6 0t0 176573 pipe
>> java 26619 amine 454w FIFO 0,6 0t0 176573 pipe
>> java 26619 amine 455u 0000 0,7 0 14 anon_inode
>> java 26619 amine 456r FIFO 0,6 0t0 176574 pipe
>> java 26619 amine 457w FIFO 0,6 0t0 176574 pipe
>> java 26619 amine 458u 0000 0,7 0 14 anon_inode
>> java 26619 amine 459r FIFO 0,6 0t0 176575 pipe
>> java 26619 amine 460w FIFO 0,6 0t0 176575 pipe
>> java 26619 amine 461u 0000 0,7 0 14 anon_inode
>> java 26619 amine 463u IPv6 176577 0t0 TCP *:19881 (LISTEN)
>> java 26619 amine 464r FIFO 0,6 0t0 176578 pipe
>> java 26619 amine 465w FIFO 0,6 0t0 176578 pipe
>> java 26619 amine 466u 0000 0,7 0 14 anon_inode
>> java 26619 amine 467r FIFO 0,6 0t0 176579 pipe
>> java 26619 amine 468w FIFO 0,6 0t0 176579 pipe
>> java 26619 amine 469u 0000 0,7 0 14 anon_inode
>> java 26619 amine 470r FIFO 0,6 0t0 176580 pipe
>> java 26619 amine 471w FIFO 0,6 0t0 176580 pipe
>> java 26619 amine 472u 0000 0,7 0 14 anon_inode
>> java 26619 amine 474u IPv6 176581 0t0 TCP *:23695 (LISTEN)
>> java 26619 amine 475r FIFO 0,6 0t0 176583 pipe
>> java 26619 amine 476w FIFO 0,6 0t0 176583 pipe
>> java 26619 amine 477u 0000 0,7 0 14 anon_inode
>> java 26619 amine 478r FIFO 0,6 0t0 176584 pipe
>> java 26619 amine 479w FIFO 0,6 0t0 176584 pipe
>> java 26619 amine 480u 0000 0,7 0 14 anon_inode
>> java 26619 amine 481r FIFO 0,6 0t0 176585 pipe
>> java 26619 amine 482w FIFO 0,6 0t0 176585 pipe
>
> Here is my ulimit -a:
>
>> $ ulimit -a
>> core file size (blocks, -c) 0
>> data seg size (kbytes, -d) unlimited
>> scheduling priority (-e) 30
>> file size (blocks, -f) unlimited
>> pending signals (-i) 24560
>> max locked memory (kbytes, -l) 40000
>> max memory size (kbytes, -m) unlimited
>> open files (-n) 1024
>> pipe size (512 bytes, -p) 8
>> POSIX message queues (bytes, -q) 819200
>> real-time priority (-r) 65
>> stack size (kbytes, -s) 8192
>> cpu time (seconds, -t) unlimited
>> max user processes (-u) 24560
>> virtual memory (kbytes, -v) unlimited
>> file locks (-x) unlimited
>
> System information:
>
>> Java 1.6.0_11.
>>
>> ArchLinux x86 with Linux Kernel 2.6.28.
>
> I am not sure why it would reach this limit so early, or how to solve it. I
> think using a single Selector for all sockets would be a start. Is this
> possible with the current design of xSocket? Perhaps there is a way to
> handle large amount of sockets that I am not aware of. I would like to
> continue using xSocket for my project, and any help is appreciated.
>
> Thank you,
> Amine
>
|
|
From: Amine H. <ami...@gm...> - 2009-01-19 03:40:05
|
Hello,
I wanted to see how many sockets I could have listening in my program and it
seems that 42 is the limit. Once it tries to create socket 43, it throws an
IOException: "too many open files". I was hoping for at least a couple
hundred.
Here is some sample code:
Random random = new Random();
> for(int i = 0;i<1000;i++) {
> System.out.println(i + " | Creating server..");
> try {
> IServer server = new Server(random.nextInt(40000) + 1024,
> new DummyHandler());
>
server.start();
> } catch (UnknownHostException e) {
> e.printStackTrace();
> } catch (IOException e) {
> e.printStackTrace();
> }
> System.out.println(i + " | Created server!");
> }
Here is the output:
0 | Creating server..
> 0 | Created server!
> 1 | Creating server..
> 1 | Created server!
> 2 | Creating server..
> 2 | Created server!
> 3 | Creating server..
> 3 | Created server!
> 4 | Creating server..
> 4 | Created server!
> 5 | Creating server..
> 5 | Created server!
> 6 | Creating server..
> 6 | Created server!
> 7 | Creating server..
> 7 | Created server!
> 8 | Creating server..
> 8 | Created server!
> 9 | Creating server..
> 9 | Created server!
> 10 | Creating server..
> 10 | Created server!
> 11 | Creating server..
> 11 | Created server!
> 12 | Creating server..
> 12 | Created server!
> 13 | Creating server..
> 13 | Created server!
> 14 | Creating server..
> 14 | Created server!
> 15 | Creating server..
> 15 | Created server!
> 16 | Creating server..
> 16 | Created server!
> 17 | Creating server..
> 17 | Created server!
> 18 | Creating server..
> 18 | Created server!
> 19 | Creating server..
> 19 | Created server!
> 20 | Creating server..
> 20 | Created server!
> 21 | Creating server..
> 21 | Created server!
> 22 | Creating server..
> 22 | Created server!
> 23 | Creating server..
> 23 | Created server!
> 24 | Creating server..
> 24 | Created server!
> 25 | Creating server..
> 25 | Created server!
> 26 | Creating server..
> 26 | Created server!
> 27 | Creating server..
> 27 | Created server!
> 28 | Creating server..
> 28 | Created server!
> 29 | Creating server..
> 29 | Created server!
> 30 | Creating server..
> 30 | Created server!
> 31 | Creating server..
> 31 | Created server!
> 32 | Creating server..
> 32 | Created server!
> 33 | Creating server..
> 33 | Created server!
> 34 | Creating server..
> 34 | Created server!
> 35 | Creating server..
> 35 | Created server!
> 36 | Creating server..
> 36 | Created server!
> 37 | Creating server..
> 37 | Created server!
> 38 | Creating server..
> 38 | Created server!
> 39 | Creating server..
> 39 | Created server!
> 40 | Creating server..
> 40 | Created server!
> 41 | Creating server..
> 41 | Created server!
> 42 | Creating server..
> Jan 18, 2009 10:16:31 PM org.xsocket.connection.IoSocketDispatcher <init>
> SEVERE: exception occured while opening selector. Reason:
> java.io.IOException: Too many open files
> Exception in thread "main" java.lang.RuntimeException: exception occured
> while opening selector. Reason: java.io.IOException: Too many open files
> at
> org.xsocket.connection.IoSocketDispatcher.<init>(IoSocketDispatcher.java:147)
> at
> org.xsocket.connection.IoSocketDispatcherPool.updateDispatcher(IoSocketDispatcherPool.java:184)
> at
> org.xsocket.connection.IoSocketDispatcherPool.setDispatcherSize(IoSocketDispatcherPool.java:285)
> at
> org.xsocket.connection.IoSocketDispatcherPool.<init>(IoSocketDispatcherPool.java:80)
> at
> org.xsocket.connection.IoSocketDispatcherPool.<init>(IoSocketDispatcherPool.java:75)
> at org.xsocket.connection.IoAcceptor.<init>(IoAcceptor.java:123)
> at org.xsocket.connection.IoAcceptor.<init>(IoAcceptor.java:97)
> at
> org.xsocket.connection.IoProvider.createAcceptor(IoProvider.java:399)
> at org.xsocket.connection.Server.<init>(Server.java:399)
> at org.xsocket.connection.Server.<init>(Server.java:168)
> at org.endra.ftpserver.Main.<init>(Main.java:18)
> at org.endra.ftpserver.Main.main(Main.java:31)
> Caused by: java.io.IOException: Too many open files
> at sun.nio.ch.EPollArrayWrapper.epollCreate(Native Method)
> at sun.nio.ch.EPollArrayWrapper.<init>(EPollArrayWrapper.java:68)
> at sun.nio.ch.EPollSelectorImpl.<init>(EPollSelectorImpl.java:52)
> at
> sun.nio.ch.EPollSelectorProvider.openSelector(EPollSelectorProvider.java:18)
> at java.nio.channels.Selector.open(Selector.java:209)
> at
> org.xsocket.connection.IoSocketDispatcher.<init>(IoSocketDispatcher.java:143)
> ... 11 more
>
Here is the list of files opened by the program:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
> java 26619 amine cwd DIR 8,6 4096 4227120
> /home/amine/personal/sync/projects/java-ftpd/workspace/ftpd
> java 26619 amine rtd DIR 8,5 4096 2 /
> java 26619 amine txt REG 8,5 47308 1213979
> /opt/java/jre/bin/java
> java 26619 amine mem REG 8,5 8561454 1221260
> /opt/java/jre/lib/i386/server/libjvm.so
> java 26619 amine mem REG 8,5 841071 1214062
> /opt/java/jre/lib/ext/localedata.jar
> java 26619 amine mem REG 8,5 95830 1221210
> /opt/java/jre/lib/i386/libnet.so
> java 26619 amine mem REG 8,6 634629 4228080
> /home/amine/personal/sync/projects/java-ftpd/workspace/ftpd/Libraries/mina-core-2.0.0-M4.jar
> java 26619 amine mem REG 8,5 1561088 379531
> /usr/lib/locale/locale-archive
> java 26619 amine mem REG 8,5 50853661 1214026
> /opt/java/jre/lib/rt.jar
> java 26619 amine mem REG 8,5 37081 1221241
> /opt/java/jre/lib/i386/libnio.so
> java 26619 amine mem REG 8,5 76438 1221232
> /opt/java/jre/lib/i386/libzip.so
> java 26619 amine mem REG 8,5 189159 1221245
> /opt/java/jre/lib/i386/libjava.so
> java 26619 amine mem REG 8,5 97109 196641 /lib/libnsl-2.9.so
> java 26619 amine mem REG 8,6 309811 4227339
> /home/amine/personal/sync/projects/java-ftpd/workspace/ftpd/Libraries/xSocket-2.3.2.jar
> java 26619 amine mem REG 8,5 56701 1221207
> /opt/java/jre/lib/i386/libverify.so
> java 26619 amine mem REG 8,5 32768 442421
> /tmp/hsperfdata_amine/26619
> java 26619 amine mem REG 8,5 39252 196631 /lib/librt-2.9.so
> java 26619 amine mem REG 8,5 180840 196619 /lib/libm-2.9.so
> java 26619 amine mem REG 8,5 1554407 196650 /lib/libc-2.9.so
> java 26619 amine mem REG 8,5 13419 196620 /lib/libdl-2.9.so
> java 26619 amine mem REG 8,5 38142 1221262
> /opt/java/jre/lib/i386/jli/libjli.so
> java 26619 amine mem REG 8,5 119210 196626 /lib/
> libpthread-2.9.so
> java 26619 amine mem REG 8,6 8815 4228092
> /home/amine/personal/sync/projects/java-ftpd/workspace/ftpd/Libraries/slf4j-jdk14-1.5.6.jar
> java 26619 amine mem REG 8,6 22338 4228087
> /home/amine/personal/sync/projects/java-ftpd/workspace/ftpd/Libraries/slf4j-api-1.5.6.jar
> java 26619 amine mem REG 8,5 45752 196630 /lib/
> libnss_files-2.9.so
> java 26619 amine mem REG 8,5 38694 1221264
> /opt/java/jre/lib/i386/native_threads/libhpi.so
> java 26619 amine mem REG 8,5 132825 196649 /lib/ld-2.9.so
> java 26619 amine 0r FIFO 0,6 0t0 176172 pipe
> java 26619 amine 1w FIFO 0,6 0t0 176173 pipe
> java 26619 amine 2w FIFO 0,6 0t0 176174 pipe
> java 26619 amine 3w REG 8,5 50853661 1214026
> /opt/java/jre/lib/rt.jar
> java 26619 amine 4r REG 8,6 634629 4228080
> /home/amine/personal/sync/projects/java-ftpd/workspace/ftpd/Libraries/mina-core-2.0.0-M4.jar
> java 26619 amine 5r REG 8,6 22338 4228087
> /home/amine/personal/sync/projects/java-ftpd/workspace/ftpd/Libraries/slf4j-api-1.5.6.jar
> java 26619 amine 6r REG 8,6 8815 4228092
> /home/amine/personal/sync/projects/java-ftpd/workspace/ftpd/Libraries/slf4j-jdk14-1.5.6.jar
> java 26619 amine 7r REG 8,6 309811 4227339
> /home/amine/personal/sync/projects/java-ftpd/workspace/ftpd/Libraries/xSocket-2.3.2.jar
> java 26619 amine 8r CHR 1,8 0t0 2209 /dev/random
> java 26619 amine 9r CHR 1,9 0t0 2220 /dev/urandom
> java 26619 amine 10r IPv6 176369 0t0 TCP *:23028 (LISTEN)
> java 26619 amine 11r FIFO 0,6 0t0 176373 pipe
> java 26619 amine 12u sock 0,4 0t0 176371 can't identify
> protocol
> java 26619 amine 13u FIFO 0,6 0t0 176373 pipe
> java 26619 amine 14r 0000 0,7 0 14 anon_inode
> java 26619 amine 15r FIFO 0,6 0t0 176374 pipe
> java 26619 amine 16r FIFO 0,6 0t0 176374 pipe
> java 26619 amine 17r 0000 0,7 0 14 anon_inode
> java 26619 amine 18r FIFO 0,6 0t0 176375 pipe
> java 26619 amine 19r FIFO 0,6 0t0 176375 pipe
> java 26619 amine 20r 0000 0,7 0 14 anon_inode
> java 26619 amine 21r FIFO 0,6 0t0 176379 pipe
> java 26619 amine 22r FIFO 0,6 0t0 176379 pipe
> java 26619 amine 23u 0000 0,7 0 14 anon_inode
> java 26619 amine 24u IPv6 176376 0t0 TCP *:3238 (LISTEN)
> java 26619 amine 25r FIFO 0,6 0t0 176377 pipe
> java 26619 amine 26r FIFO 0,6 0t0 176377 pipe
> java 26619 amine 27r 0000 0,7 0 14 anon_inode
> java 26619 amine 28r FIFO 0,6 0t0 176378 pipe
> java 26619 amine 29r FIFO 0,6 0t0 176378 pipe
> java 26619 amine 30r 0000 0,7 0 14 anon_inode
> java 26619 amine 31r IPv6 176380 0t0 TCP *:28121 (LISTEN)
> java 26619 amine 32r FIFO 0,6 0t0 176381 pipe
> java 26619 amine 33r FIFO 0,6 0t0 176381 pipe
> java 26619 amine 34r 0000 0,7 0 14 anon_inode
> java 26619 amine 35r FIFO 0,6 0t0 176382 pipe
> java 26619 amine 36r FIFO 0,6 0t0 176382 pipe
> java 26619 amine 37r 0000 0,7 0 14 anon_inode
> java 26619 amine 38r FIFO 0,6 0t0 176383 pipe
> java 26619 amine 39w FIFO 0,6 0t0 176383 pipe
> java 26619 amine 40r 0000 0,7 0 14 anon_inode
> java 26619 amine 41r IPv6 176384 0t0 TCP *:12757 (LISTEN)
> java 26619 amine 42u FIFO 0,6 0t0 176385 pipe
> java 26619 amine 43r FIFO 0,6 0t0 176385 pipe
> java 26619 amine 44r 0000 0,7 0 14 anon_inode
> java 26619 amine 45r FIFO 0,6 0t0 176386 pipe
> java 26619 amine 46r FIFO 0,6 0t0 176386 pipe
> java 26619 amine 47r 0000 0,7 0 14 anon_inode
> java 26619 amine 48r REG 8,5 841071 1214062
> /opt/java/jre/lib/ext/localedata.jar
> java 26619 amine 49r FIFO 0,6 0t0 176387 pipe
> java 26619 amine 50r FIFO 0,6 0t0 176387 pipe
> java 26619 amine 51r 0000 0,7 0 14 anon_inode
> java 26619 amine 52r IPv6 176388 0t0 TCP *:26021 (LISTEN)
> java 26619 amine 57r FIFO 0,6 0t0 176393 pipe
> java 26619 amine 58r FIFO 0,6 0t0 176393 pipe
> java 26619 amine 59r 0000 0,7 0 14 anon_inode
> java 26619 amine 60r FIFO 0,6 0t0 176394 pipe
> java 26619 amine 61r FIFO 0,6 0t0 176394 pipe
> java 26619 amine 62r 0000 0,7 0 14 anon_inode
> java 26619 amine 63r FIFO 0,6 0t0 176395 pipe
> java 26619 amine 64r FIFO 0,6 0t0 176395 pipe
> java 26619 amine 65r 0000 0,7 0 14 anon_inode
> java 26619 amine 67r IPv6 176397 0t0 TCP *:8870 (LISTEN)
> java 26619 amine 68r FIFO 0,6 0t0 176398 pipe
> java 26619 amine 69r FIFO 0,6 0t0 176398 pipe
> java 26619 amine 70r 0000 0,7 0 14 anon_inode
> java 26619 amine 71r FIFO 0,6 0t0 176399 pipe
> java 26619 amine 72r FIFO 0,6 0t0 176399 pipe
> java 26619 amine 73r 0000 0,7 0 14 anon_inode
> java 26619 amine 74r FIFO 0,6 0t0 176400 pipe
> java 26619 amine 75r FIFO 0,6 0t0 176400 pipe
> java 26619 amine 76r 0000 0,7 0 14 anon_inode
> java 26619 amine 78r IPv6 176402 0t0 TCP *:6739 (LISTEN)
> java 26619 amine 79r FIFO 0,6 0t0 176403 pipe
> java 26619 amine 80r FIFO 0,6 0t0 176403 pipe
> java 26619 amine 81r 0000 0,7 0 14 anon_inode
> java 26619 amine 82r FIFO 0,6 0t0 176404 pipe
> java 26619 amine 83r FIFO 0,6 0t0 176404 pipe
> java 26619 amine 84r 0000 0,7 0 14 anon_inode
> java 26619 amine 85r FIFO 0,6 0t0 176405 pipe
> java 26619 amine 86r FIFO 0,6 0t0 176405 pipe
> java 26619 amine 87r 0000 0,7 0 14 anon_inode
> java 26619 amine 89r IPv6 176407 0t0 TCP *:39981 (LISTEN)
> java 26619 amine 90r FIFO 0,6 0t0 176408 pipe
> java 26619 amine 91r FIFO 0,6 0t0 176408 pipe
> java 26619 amine 92r 0000 0,7 0 14 anon_inode
> java 26619 amine 93r FIFO 0,6 0t0 176409 pipe
> java 26619 amine 94r FIFO 0,6 0t0 176409 pipe
> java 26619 amine 95r 0000 0,7 0 14 anon_inode
> java 26619 amine 96r FIFO 0,6 0t0 176410 pipe
> java 26619 amine 97r FIFO 0,6 0t0 176410 pipe
> java 26619 amine 98r 0000 0,7 0 14 anon_inode
> java 26619 amine 100r IPv6 176412 0t0 TCP *:17367 (LISTEN)
> java 26619 amine 101r FIFO 0,6 0t0 176413 pipe
> java 26619 amine 102r FIFO 0,6 0t0 176413 pipe
> java 26619 amine 103r 0000 0,7 0 14 anon_inode
> java 26619 amine 104r FIFO 0,6 0t0 176414 pipe
> java 26619 amine 105r FIFO 0,6 0t0 176414 pipe
> java 26619 amine 106r 0000 0,7 0 14 anon_inode
> java 26619 amine 107r FIFO 0,6 0t0 176415 pipe
> java 26619 amine 108r FIFO 0,6 0t0 176415 pipe
> java 26619 amine 109r 0000 0,7 0 14 anon_inode
> java 26619 amine 111r IPv6 176417 0t0 TCP *:8546 (LISTEN)
> java 26619 amine 112r FIFO 0,6 0t0 176418 pipe
> java 26619 amine 113r FIFO 0,6 0t0 176418 pipe
> java 26619 amine 114r 0000 0,7 0 14 anon_inode
> java 26619 amine 115r FIFO 0,6 0t0 176419 pipe
> java 26619 amine 116r FIFO 0,6 0t0 176419 pipe
> java 26619 amine 117r 0000 0,7 0 14 anon_inode
> java 26619 amine 118r FIFO 0,6 0t0 176420 pipe
> java 26619 amine 119r FIFO 0,6 0t0 176420 pipe
> java 26619 amine 120r 0000 0,7 0 14 anon_inode
> java 26619 amine 122r IPv6 176422 0t0 TCP *:34761 (LISTEN)
> java 26619 amine 123r FIFO 0,6 0t0 176423 pipe
> java 26619 amine 124r FIFO 0,6 0t0 176423 pipe
> java 26619 amine 125w 0000 0,7 0 14 anon_inode
> java 26619 amine 126w FIFO 0,6 0t0 176424 pipe
> java 26619 amine 127u FIFO 0,6 0t0 176424 pipe
> java 26619 amine 128r 0000 0,7 0 14 anon_inode
> java 26619 amine 129w FIFO 0,6 0t0 176425 pipe
> java 26619 amine 130r FIFO 0,6 0t0 176425 pipe
> java 26619 amine 131w 0000 0,7 0 14 anon_inode
> java 26619 amine 133u IPv6 176427 0t0 TCP *:15774 (LISTEN)
> java 26619 amine 134u FIFO 0,6 0t0 176428 pipe
> java 26619 amine 135u FIFO 0,6 0t0 176428 pipe
> java 26619 amine 136u 0000 0,7 0 14 anon_inode
> java 26619 amine 137r FIFO 0,6 0t0 176429 pipe
> java 26619 amine 138r FIFO 0,6 0t0 176429 pipe
> java 26619 amine 139r 0000 0,7 0 14 anon_inode
> java 26619 amine 140u FIFO 0,6 0t0 176430 pipe
> java 26619 amine 141r FIFO 0,6 0t0 176430 pipe
> java 26619 amine 142u 0000 0,7 0 14 anon_inode
> java 26619 amine 144r IPv6 176432 0t0 TCP *:29114 (LISTEN)
> java 26619 amine 145r FIFO 0,6 0t0 176433 pipe
> java 26619 amine 146r FIFO 0,6 0t0 176433 pipe
> java 26619 amine 147r 0000 0,7 0 14 anon_inode
> java 26619 amine 148r FIFO 0,6 0t0 176434 pipe
> java 26619 amine 149r FIFO 0,6 0t0 176434 pipe
> java 26619 amine 150r 0000 0,7 0 14 anon_inode
> java 26619 amine 151r FIFO 0,6 0t0 176435 pipe
> java 26619 amine 152r FIFO 0,6 0t0 176435 pipe
> java 26619 amine 153r 0000 0,7 0 14 anon_inode
> java 26619 amine 154r IPv6 176436 0t0 TCP *:28531 (LISTEN)
> java 26619 amine 155r FIFO 0,6 0t0 176438 pipe
> java 26619 amine 157r FIFO 0,6 0t0 176438 pipe
> java 26619 amine 158r 0000 0,7 0 14 anon_inode
> java 26619 amine 159r FIFO 0,6 0t0 176439 pipe
> java 26619 amine 160r FIFO 0,6 0t0 176439 pipe
> java 26619 amine 161r 0000 0,7 0 14 anon_inode
> java 26619 amine 162r FIFO 0,6 0t0 176440 pipe
> java 26619 amine 163w FIFO 0,6 0t0 176440 pipe
> java 26619 amine 164r 0000 0,7 0 14 anon_inode
> java 26619 amine 166r IPv6 176442 0t0 TCP *:1657 (LISTEN)
> java 26619 amine 167r FIFO 0,6 0t0 176443 pipe
> java 26619 amine 168r FIFO 0,6 0t0 176443 pipe
> java 26619 amine 169r 0000 0,7 0 14 anon_inode
> java 26619 amine 170r FIFO 0,6 0t0 176444 pipe
> java 26619 amine 171r FIFO 0,6 0t0 176444 pipe
> java 26619 amine 172r 0000 0,7 0 14 anon_inode
> java 26619 amine 173r FIFO 0,6 0t0 176445 pipe
> java 26619 amine 174r FIFO 0,6 0t0 176445 pipe
> java 26619 amine 175r 0000 0,7 0 14 anon_inode
> java 26619 amine 176r IPv6 176446 0t0 TCP *:24786 (LISTEN)
> java 26619 amine 177r FIFO 0,6 0t0 176448 pipe
> java 26619 amine 179w FIFO 0,6 0t0 176448 pipe
> java 26619 amine 180u 0000 0,7 0 14 anon_inode
> java 26619 amine 181r FIFO 0,6 0t0 176449 pipe
> java 26619 amine 182w FIFO 0,6 0t0 176449 pipe
> java 26619 amine 183u 0000 0,7 0 14 anon_inode
> java 26619 amine 184r FIFO 0,6 0t0 176450 pipe
> java 26619 amine 185w FIFO 0,6 0t0 176450 pipe
> java 26619 amine 186u 0000 0,7 0 14 anon_inode
> java 26619 amine 188u IPv6 176452 0t0 TCP *:7526 (LISTEN)
> java 26619 amine 189r FIFO 0,6 0t0 176453 pipe
> java 26619 amine 190w FIFO 0,6 0t0 176453 pipe
> java 26619 amine 191u 0000 0,7 0 14 anon_inode
> java 26619 amine 192r FIFO 0,6 0t0 176454 pipe
> java 26619 amine 193w FIFO 0,6 0t0 176454 pipe
> java 26619 amine 194u 0000 0,7 0 14 anon_inode
> java 26619 amine 195r FIFO 0,6 0t0 176455 pipe
> java 26619 amine 196w FIFO 0,6 0t0 176455 pipe
> java 26619 amine 197u 0000 0,7 0 14 anon_inode
> java 26619 amine 199u IPv6 176457 0t0 TCP *:37646 (LISTEN)
> java 26619 amine 200r FIFO 0,6 0t0 176458 pipe
> java 26619 amine 201w FIFO 0,6 0t0 176458 pipe
> java 26619 amine 202u 0000 0,7 0 14 anon_inode
> java 26619 amine 203r FIFO 0,6 0t0 176459 pipe
> java 26619 amine 204w FIFO 0,6 0t0 176459 pipe
> java 26619 amine 205u 0000 0,7 0 14 anon_inode
> java 26619 amine 206r FIFO 0,6 0t0 176460 pipe
> java 26619 amine 207w FIFO 0,6 0t0 176460 pipe
> java 26619 amine 208u 0000 0,7 0 14 anon_inode
> java 26619 amine 210u IPv6 176462 0t0 TCP *:9826 (LISTEN)
> java 26619 amine 211r FIFO 0,6 0t0 176463 pipe
> java 26619 amine 212w FIFO 0,6 0t0 176463 pipe
> java 26619 amine 213u 0000 0,7 0 14 anon_inode
> java 26619 amine 214r FIFO 0,6 0t0 176464 pipe
> java 26619 amine 215w FIFO 0,6 0t0 176464 pipe
> java 26619 amine 216u 0000 0,7 0 14 anon_inode
> java 26619 amine 217r FIFO 0,6 0t0 176465 pipe
> java 26619 amine 218w FIFO 0,6 0t0 176465 pipe
> java 26619 amine 219u 0000 0,7 0 14 anon_inode
> java 26619 amine 221u IPv6 176467 0t0 TCP *:22903 (LISTEN)
> java 26619 amine 222r FIFO 0,6 0t0 176468 pipe
> java 26619 amine 223w FIFO 0,6 0t0 176468 pipe
> java 26619 amine 224u 0000 0,7 0 14 anon_inode
> java 26619 amine 225r FIFO 0,6 0t0 176469 pipe
> java 26619 amine 226w FIFO 0,6 0t0 176469 pipe
> java 26619 amine 227u 0000 0,7 0 14 anon_inode
> java 26619 amine 228r FIFO 0,6 0t0 176470 pipe
> java 26619 amine 229w FIFO 0,6 0t0 176470 pipe
> java 26619 amine 230u 0000 0,7 0 14 anon_inode
> java 26619 amine 232u IPv6 176472 0t0 TCP *:6900 (LISTEN)
> java 26619 amine 233r FIFO 0,6 0t0 176473 pipe
> java 26619 amine 234w FIFO 0,6 0t0 176473 pipe
> java 26619 amine 235u 0000 0,7 0 14 anon_inode
> java 26619 amine 236r FIFO 0,6 0t0 176474 pipe
> java 26619 amine 237w FIFO 0,6 0t0 176474 pipe
> java 26619 amine 238u 0000 0,7 0 14 anon_inode
> java 26619 amine 239r FIFO 0,6 0t0 176475 pipe
> java 26619 amine 240w FIFO 0,6 0t0 176475 pipe
> java 26619 amine 241u 0000 0,7 0 14 anon_inode
> java 26619 amine 243u IPv6 176477 0t0 TCP *:17306 (LISTEN)
> java 26619 amine 244r FIFO 0,6 0t0 176478 pipe
> java 26619 amine 245w FIFO 0,6 0t0 176478 pipe
> java 26619 amine 246u 0000 0,7 0 14 anon_inode
> java 26619 amine 247r FIFO 0,6 0t0 176479 pipe
> java 26619 amine 248w FIFO 0,6 0t0 176479 pipe
> java 26619 amine 249u 0000 0,7 0 14 anon_inode
> java 26619 amine 250r FIFO 0,6 0t0 176480 pipe
> java 26619 amine 251w FIFO 0,6 0t0 176480 pipe
> java 26619 amine 252u 0000 0,7 0 14 anon_inode
> java 26619 amine 254u IPv6 176482 0t0 TCP *:39151 (LISTEN)
> java 26619 amine 255r FIFO 0,6 0t0 176483 pipe
> java 26619 amine 256w FIFO 0,6 0t0 176483 pipe
> java 26619 amine 257u 0000 0,7 0 14 anon_inode
> java 26619 amine 258r FIFO 0,6 0t0 176484 pipe
> java 26619 amine 259w FIFO 0,6 0t0 176484 pipe
> java 26619 amine 260u 0000 0,7 0 14 anon_inode
> java 26619 amine 261r FIFO 0,6 0t0 176485 pipe
> java 26619 amine 262w FIFO 0,6 0t0 176485 pipe
> java 26619 amine 263u 0000 0,7 0 14 anon_inode
> java 26619 amine 265u IPv6 176487 0t0 TCP *:32994 (LISTEN)
> java 26619 amine 266r FIFO 0,6 0t0 176488 pipe
> java 26619 amine 267w FIFO 0,6 0t0 176488 pipe
> java 26619 amine 268u 0000 0,7 0 14 anon_inode
> java 26619 amine 269r FIFO 0,6 0t0 176489 pipe
> java 26619 amine 270w FIFO 0,6 0t0 176489 pipe
> java 26619 amine 271u 0000 0,7 0 14 anon_inode
> java 26619 amine 272r FIFO 0,6 0t0 176490 pipe
> java 26619 amine 273w FIFO 0,6 0t0 176490 pipe
> java 26619 amine 274u 0000 0,7 0 14 anon_inode
> java 26619 amine 276u IPv6 176492 0t0 TCP *:31418 (LISTEN)
> java 26619 amine 277r FIFO 0,6 0t0 176493 pipe
> java 26619 amine 278w FIFO 0,6 0t0 176493 pipe
> java 26619 amine 279u 0000 0,7 0 14 anon_inode
> java 26619 amine 280r FIFO 0,6 0t0 176494 pipe
> java 26619 amine 281w FIFO 0,6 0t0 176494 pipe
> java 26619 amine 282u 0000 0,7 0 14 anon_inode
> java 26619 amine 283r FIFO 0,6 0t0 176495 pipe
> java 26619 amine 284w FIFO 0,6 0t0 176495 pipe
> java 26619 amine 285u 0000 0,7 0 14 anon_inode
> java 26619 amine 287u IPv6 176497 0t0 TCP *:26210 (LISTEN)
> java 26619 amine 288r FIFO 0,6 0t0 176498 pipe
> java 26619 amine 289w FIFO 0,6 0t0 176498 pipe
> java 26619 amine 290u 0000 0,7 0 14 anon_inode
> java 26619 amine 291r FIFO 0,6 0t0 176499 pipe
> java 26619 amine 292w FIFO 0,6 0t0 176499 pipe
> java 26619 amine 293u 0000 0,7 0 14 anon_inode
> java 26619 amine 294r FIFO 0,6 0t0 176500 pipe
> java 26619 amine 295w FIFO 0,6 0t0 176500 pipe
> java 26619 amine 296u 0000 0,7 0 14 anon_inode
> java 26619 amine 298u IPv6 176502 0t0 TCP *:37630 (LISTEN)
> java 26619 amine 299r FIFO 0,6 0t0 176503 pipe
> java 26619 amine 300w FIFO 0,6 0t0 176503 pipe
> java 26619 amine 301u 0000 0,7 0 14 anon_inode
> java 26619 amine 302r FIFO 0,6 0t0 176504 pipe
> java 26619 amine 303w FIFO 0,6 0t0 176504 pipe
> java 26619 amine 304u 0000 0,7 0 14 anon_inode
> java 26619 amine 305r FIFO 0,6 0t0 176505 pipe
> java 26619 amine 306w FIFO 0,6 0t0 176505 pipe
> java 26619 amine 307u 0000 0,7 0 14 anon_inode
> java 26619 amine 308u IPv6 176506 0t0 TCP *:1551 (LISTEN)
> java 26619 amine 309r FIFO 0,6 0t0 176507 pipe
> java 26619 amine 310w FIFO 0,6 0t0 176507 pipe
> java 26619 amine 311u 0000 0,7 0 14 anon_inode
> java 26619 amine 312r FIFO 0,6 0t0 176508 pipe
> java 26619 amine 313w FIFO 0,6 0t0 176508 pipe
> java 26619 amine 314u 0000 0,7 0 14 anon_inode
> java 26619 amine 316r FIFO 0,6 0t0 176510 pipe
> java 26619 amine 317w FIFO 0,6 0t0 176510 pipe
> java 26619 amine 318u 0000 0,7 0 14 anon_inode
> java 26619 amine 320u IPv6 176512 0t0 TCP *:29665 (LISTEN)
> java 26619 amine 321r FIFO 0,6 0t0 176513 pipe
> java 26619 amine 322w FIFO 0,6 0t0 176513 pipe
> java 26619 amine 323u 0000 0,7 0 14 anon_inode
> java 26619 amine 324r FIFO 0,6 0t0 176514 pipe
> java 26619 amine 325w FIFO 0,6 0t0 176514 pipe
> java 26619 amine 326u 0000 0,7 0 14 anon_inode
> java 26619 amine 327r FIFO 0,6 0t0 176515 pipe
> java 26619 amine 328w FIFO 0,6 0t0 176515 pipe
> java 26619 amine 329u 0000 0,7 0 14 anon_inode
> java 26619 amine 331u IPv6 176517 0t0 TCP *:16934 (LISTEN)
> java 26619 amine 332r FIFO 0,6 0t0 176518 pipe
> java 26619 amine 333w FIFO 0,6 0t0 176518 pipe
> java 26619 amine 334u 0000 0,7 0 14 anon_inode
> java 26619 amine 335r FIFO 0,6 0t0 176519 pipe
> java 26619 amine 336w FIFO 0,6 0t0 176519 pipe
> java 26619 amine 337u 0000 0,7 0 14 anon_inode
> java 26619 amine 338r FIFO 0,6 0t0 176520 pipe
> java 26619 amine 339w FIFO 0,6 0t0 176520 pipe
> java 26619 amine 340u 0000 0,7 0 14 anon_inode
> java 26619 amine 342u IPv6 176522 0t0 TCP *:39627 (LISTEN)
> java 26619 amine 343r FIFO 0,6 0t0 176523 pipe
> java 26619 amine 344w FIFO 0,6 0t0 176523 pipe
> java 26619 amine 345u 0000 0,7 0 14 anon_inode
> java 26619 amine 346r FIFO 0,6 0t0 176524 pipe
> java 26619 amine 347w FIFO 0,6 0t0 176524 pipe
> java 26619 amine 348u 0000 0,7 0 14 anon_inode
> java 26619 amine 349r FIFO 0,6 0t0 176525 pipe
> java 26619 amine 350w FIFO 0,6 0t0 176525 pipe
> java 26619 amine 351u 0000 0,7 0 14 anon_inode
> java 26619 amine 353u IPv6 176527 0t0 TCP *:9543 (LISTEN)
> java 26619 amine 354r FIFO 0,6 0t0 176528 pipe
> java 26619 amine 355w FIFO 0,6 0t0 176528 pipe
> java 26619 amine 356u 0000 0,7 0 14 anon_inode
> java 26619 amine 357r FIFO 0,6 0t0 176529 pipe
> java 26619 amine 358w FIFO 0,6 0t0 176529 pipe
> java 26619 amine 359u 0000 0,7 0 14 anon_inode
> java 26619 amine 360r FIFO 0,6 0t0 176530 pipe
> java 26619 amine 361w FIFO 0,6 0t0 176530 pipe
> java 26619 amine 362u 0000 0,7 0 14 anon_inode
> java 26619 amine 364u IPv6 176532 0t0 TCP *:25380 (LISTEN)
> java 26619 amine 365r FIFO 0,6 0t0 176533 pipe
> java 26619 amine 366w FIFO 0,6 0t0 176533 pipe
> java 26619 amine 367u 0000 0,7 0 14 anon_inode
> java 26619 amine 368r FIFO 0,6 0t0 176534 pipe
> java 26619 amine 369w FIFO 0,6 0t0 176534 pipe
> java 26619 amine 370u 0000 0,7 0 14 anon_inode
> java 26619 amine 371r FIFO 0,6 0t0 176535 pipe
> java 26619 amine 372w FIFO 0,6 0t0 176535 pipe
> java 26619 amine 373u 0000 0,7 0 14 anon_inode
> java 26619 amine 375u IPv6 176537 0t0 TCP *:1164 (LISTEN)
> java 26619 amine 376r FIFO 0,6 0t0 176538 pipe
> java 26619 amine 377w FIFO 0,6 0t0 176538 pipe
> java 26619 amine 378u 0000 0,7 0 14 anon_inode
> java 26619 amine 379r FIFO 0,6 0t0 176539 pipe
> java 26619 amine 380w FIFO 0,6 0t0 176539 pipe
> java 26619 amine 381u 0000 0,7 0 14 anon_inode
> java 26619 amine 382r FIFO 0,6 0t0 176540 pipe
> java 26619 amine 383w FIFO 0,6 0t0 176540 pipe
> java 26619 amine 384u 0000 0,7 0 14 anon_inode
> java 26619 amine 386u IPv6 176542 0t0 TCP *:7486 (LISTEN)
> java 26619 amine 387r FIFO 0,6 0t0 176543 pipe
> java 26619 amine 388w FIFO 0,6 0t0 176543 pipe
> java 26619 amine 389u 0000 0,7 0 14 anon_inode
> java 26619 amine 390r FIFO 0,6 0t0 176544 pipe
> java 26619 amine 391w FIFO 0,6 0t0 176544 pipe
> java 26619 amine 392u 0000 0,7 0 14 anon_inode
> java 26619 amine 393r FIFO 0,6 0t0 176545 pipe
> java 26619 amine 394w FIFO 0,6 0t0 176545 pipe
> java 26619 amine 395u 0000 0,7 0 14 anon_inode
> java 26619 amine 397u IPv6 176547 0t0 TCP *:1754 (LISTEN)
> java 26619 amine 398r FIFO 0,6 0t0 176548 pipe
> java 26619 amine 399w FIFO 0,6 0t0 176548 pipe
> java 26619 amine 400u 0000 0,7 0 14 anon_inode
> java 26619 amine 401r FIFO 0,6 0t0 176549 pipe
> java 26619 amine 402w FIFO 0,6 0t0 176549 pipe
> java 26619 amine 403u 0000 0,7 0 14 anon_inode
> java 26619 amine 404r FIFO 0,6 0t0 176550 pipe
> java 26619 amine 405w FIFO 0,6 0t0 176550 pipe
> java 26619 amine 406u 0000 0,7 0 14 anon_inode
> java 26619 amine 408u IPv6 176552 0t0 TCP *:17382 (LISTEN)
> java 26619 amine 409r FIFO 0,6 0t0 176553 pipe
> java 26619 amine 410w FIFO 0,6 0t0 176553 pipe
> java 26619 amine 411u 0000 0,7 0 14 anon_inode
> java 26619 amine 412r FIFO 0,6 0t0 176554 pipe
> java 26619 amine 413w FIFO 0,6 0t0 176554 pipe
> java 26619 amine 414u 0000 0,7 0 14 anon_inode
> java 26619 amine 415r FIFO 0,6 0t0 176555 pipe
> java 26619 amine 416w FIFO 0,6 0t0 176555 pipe
> java 26619 amine 417u 0000 0,7 0 14 anon_inode
> java 26619 amine 419u IPv6 176557 0t0 TCP *:40948 (LISTEN)
> java 26619 amine 420r FIFO 0,6 0t0 176558 pipe
> java 26619 amine 421w FIFO 0,6 0t0 176558 pipe
> java 26619 amine 422u 0000 0,7 0 14 anon_inode
> java 26619 amine 423r FIFO 0,6 0t0 176559 pipe
> java 26619 amine 424w FIFO 0,6 0t0 176559 pipe
> java 26619 amine 425u 0000 0,7 0 14 anon_inode
> java 26619 amine 426r FIFO 0,6 0t0 176560 pipe
> java 26619 amine 427w FIFO 0,6 0t0 176560 pipe
> java 26619 amine 428u 0000 0,7 0 14 anon_inode
> java 26619 amine 430u IPv6 176562 0t0 TCP *:39309 (LISTEN)
> java 26619 amine 431r FIFO 0,6 0t0 176563 pipe
> java 26619 amine 432w FIFO 0,6 0t0 176563 pipe
> java 26619 amine 433u 0000 0,7 0 14 anon_inode
> java 26619 amine 434r FIFO 0,6 0t0 176564 pipe
> java 26619 amine 435w FIFO 0,6 0t0 176564 pipe
> java 26619 amine 436u 0000 0,7 0 14 anon_inode
> java 26619 amine 437r FIFO 0,6 0t0 176565 pipe
> java 26619 amine 438w FIFO 0,6 0t0 176565 pipe
> java 26619 amine 439u 0000 0,7 0 14 anon_inode
> java 26619 amine 441u IPv6 176567 0t0 TCP *:6732 (LISTEN)
> java 26619 amine 442r FIFO 0,6 0t0 176568 pipe
> java 26619 amine 443w FIFO 0,6 0t0 176568 pipe
> java 26619 amine 444u 0000 0,7 0 14 anon_inode
> java 26619 amine 445r FIFO 0,6 0t0 176569 pipe
> java 26619 amine 446w FIFO 0,6 0t0 176569 pipe
> java 26619 amine 447u 0000 0,7 0 14 anon_inode
> java 26619 amine 448r FIFO 0,6 0t0 176570 pipe
> java 26619 amine 449w FIFO 0,6 0t0 176570 pipe
> java 26619 amine 450u 0000 0,7 0 14 anon_inode
> java 26619 amine 452u IPv6 176572 0t0 TCP *:13872 (LISTEN)
> java 26619 amine 453r FIFO 0,6 0t0 176573 pipe
> java 26619 amine 454w FIFO 0,6 0t0 176573 pipe
> java 26619 amine 455u 0000 0,7 0 14 anon_inode
> java 26619 amine 456r FIFO 0,6 0t0 176574 pipe
> java 26619 amine 457w FIFO 0,6 0t0 176574 pipe
> java 26619 amine 458u 0000 0,7 0 14 anon_inode
> java 26619 amine 459r FIFO 0,6 0t0 176575 pipe
> java 26619 amine 460w FIFO 0,6 0t0 176575 pipe
> java 26619 amine 461u 0000 0,7 0 14 anon_inode
> java 26619 amine 463u IPv6 176577 0t0 TCP *:19881 (LISTEN)
> java 26619 amine 464r FIFO 0,6 0t0 176578 pipe
> java 26619 amine 465w FIFO 0,6 0t0 176578 pipe
> java 26619 amine 466u 0000 0,7 0 14 anon_inode
> java 26619 amine 467r FIFO 0,6 0t0 176579 pipe
> java 26619 amine 468w FIFO 0,6 0t0 176579 pipe
> java 26619 amine 469u 0000 0,7 0 14 anon_inode
> java 26619 amine 470r FIFO 0,6 0t0 176580 pipe
> java 26619 amine 471w FIFO 0,6 0t0 176580 pipe
> java 26619 amine 472u 0000 0,7 0 14 anon_inode
> java 26619 amine 474u IPv6 176581 0t0 TCP *:23695 (LISTEN)
> java 26619 amine 475r FIFO 0,6 0t0 176583 pipe
> java 26619 amine 476w FIFO 0,6 0t0 176583 pipe
> java 26619 amine 477u 0000 0,7 0 14 anon_inode
> java 26619 amine 478r FIFO 0,6 0t0 176584 pipe
> java 26619 amine 479w FIFO 0,6 0t0 176584 pipe
> java 26619 amine 480u 0000 0,7 0 14 anon_inode
> java 26619 amine 481r FIFO 0,6 0t0 176585 pipe
> java 26619 amine 482w FIFO 0,6 0t0 176585 pipe
Here is my ulimit -a:
$ ulimit -a
> core file size (blocks, -c) 0
> data seg size (kbytes, -d) unlimited
> scheduling priority (-e) 30
> file size (blocks, -f) unlimited
> pending signals (-i) 24560
> max locked memory (kbytes, -l) 40000
> max memory size (kbytes, -m) unlimited
> open files (-n) 1024
> pipe size (512 bytes, -p) 8
> POSIX message queues (bytes, -q) 819200
> real-time priority (-r) 65
> stack size (kbytes, -s) 8192
> cpu time (seconds, -t) unlimited
> max user processes (-u) 24560
> virtual memory (kbytes, -v) unlimited
> file locks (-x) unlimited
System information:
Java 1.6.0_11.
ArchLinux x86 with Linux Kernel 2.6.28.
>
I am not sure why it would reach this limit so early, or how to solve it. I
think using a single Selector for all sockets would be a start. Is this
possible with the current design of xSocket? Perhaps there is a way to
handle large amount of sockets that I am not aware of. I would like to
continue using xSocket for my project, and any help is appreciated.
Thank you,
Amine
|
|
From: Kirk C. <ki...@pc...> - 2009-01-18 17:50:13
|
Hi,
How do I send a String("Hello all") to all clients connected ?
I am using INonBlockingConnection to connect to clients.
Thanks,
Kirk
|
|
From: Gregor R. <gre...@go...> - 2009-01-18 17:08:51
|
Hi Amine, if you close the connection, all data of the write queue will be flushed automatically. This is especially true for flushMode Async. If you write data in (default) flushMode Sync, the write method returns only if the data ids written. Gregor 2009/1/18 Amine Haddad <ami...@gm...> > Hello, > > How am I able to close a non-blocking connection only after all the data > queued to be sent has been sent? I am using xSocket-2.3.2. > > Thanks, > Amine > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > xSocket-develop mailing list > xSo...@li... > https://lists.sourceforge.net/lists/listinfo/xsocket-develop > > |
|
From: Amine H. <ami...@gm...> - 2009-01-18 16:46:10
|
Hello, How am I able to close a non-blocking connection only after all the data queued to be sent has been sent? I am using xSocket-2.3.2. Thanks, Amine |
|
From: Gregor R. <gre...@go...> - 2009-01-04 18:42:23
|
Hi, by default xSocket is in synchronous mode Gregor 2009/1/4 Gil Vernik <Gi...@so...> > Hi there, > > I would like to use xSocket to handle a stream of data which is received > via TCP protocol in synchronous way. I also use Spring framework. > > There is an example in the documentation, how to set up a handler and a > server : > > <?xml version="1.0" encoding="UTF-8"?> > > > > <beans xmlns="http://www.springframework.org/schema/beans" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > xsi:schemaLocation="http://www.springframework.org/schema/beans > > > http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"> > > > > <bean id="server" class="org.xsocket.connection.Server" > scope="singleton"> > > <constructor-arg type="int" value="8787"/> > > <constructor-arg type="org.xsocket.connection.IHandler" > ref="Handler"/> > > </bean> > > > > <bean id="Handler" class="org.xsocket.connection.EchoHandler" > scope="prototype"/> > > </beans> > > > > > > The question is : Does this flow works in synchronous mode? > > > > Thanks, > > Gil. > > This message contains confidential information and is intended only for the > individual named. If you are not the named addressee you should not > disseminate, distribute or copy this e-mail. Please notify the sender > immediately by e-mail if you have received this e-mail by mistake and delete > this e-mail from your system. E-mail transmission cannot be guaranteed to be > secure or error-free as information could be intercepted, corrupted, lost, > destroyed, arrive late or incomplete, or contain viruses. The sender > therefore does not accept liability for any errors or omissions in the > contents of this message, which arise as a result of e-mail transmission. If > verification is required please request a hard-copy version. > > > ------------------------------------------------------------------------------ > > _______________________________________________ > xSocket-develop mailing list > xSo...@li... > https://lists.sourceforge.net/lists/listinfo/xsocket-develop > > |
|
From: Gil V. <Gi...@so...> - 2009-01-04 16:04:11
|
Hi there, I would like to use xSocket to handle a stream of data which is received via TCP protocol in synchronous way. I also use Spring framework. There is an example in the documentation, how to set up a handler and a server : <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"> <bean id="server" class="org.xsocket.connection.Server" scope="singleton"> <constructor-arg type="int" value="8787"/> <constructor-arg type="org.xsocket.connection.IHandler" ref="Handler"/> </bean> <bean id="Handler" class="org.xsocket.connection.EchoHandler" scope="prototype"/> </beans> The question is : Does this flow works in synchronous mode? Thanks, Gil. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. |
|
From: Gregor R. <gre...@go...> - 2008-12-30 11:16:48
|
Hi,
xSocket V2.3.1, xSocket-multiplexed V2.1.1 xlightweb 2.4 have been released:
xSocket 2.3.1:
-----------------
a, New features:
- [*] interface IDestroyable added
- [connection] NonBlockingCnnection/BlockingConnection - additional
constructor to determine local address of the client connection
b, Bug fix/Implementation changes:
- [connection] NonBlockingConnection - WriteCompletionHolder callback
sync scope optimized
- [connection] BUG 'Server will call the ILifecyle onInit by preforming
run() not by setting the handler'
- [connection] NonBlockingConnectionPool BUG - implementation change:
'Pool will not auto close idle connection, if a active connection to same
address is destroyed'
- [connection] NonBlockingConnectionPool BUG - destroy will be performed
in a synchronized context
- [connection] confusing debug log messages haven been removed
- [connection] IoConnector - 'throwing java.lang.IllegalStateException in
updateTimeoutCheckPeriod()' fixed
- [connection] AbytractNonBlockingStream transferFrom(FileChannel)
implementation uses MappedByteBuffer
- [connection] DataConverter - method toBytes(ByteBuffer[] buffers) has
been performance optimized
- [connection] AbstractNonblockingSream - method onPostRead() replaced by
onPostRead(ByteBuffer[])
- [connection] BUG 'closing server does not release all resources' fixed
- [connection] Server - shutdown message enhanced
xSocket-multiplexed 2.1.1:
--------------------------------
a, New features:
- Auto version check: writing a warning log if wrong xSocket version is
used
b, Bug fix/Implementation changes:
-
xLightweb 2.4:
-----------------
a, New features:
- ISessionManager - method getSessionMap() added
- JMX support for session manager
- HttpServer - setSessionMaxInactiveIntervalSec(...) &
getSessionMaxInactiveIntervalSec() added
- IFutureResponse added
- IHttpClientEndpoint - method IFutureResponse send(IHttpRequest
request) added
- Auto version check: writing a warning log if wrong xSocket version is
used
b, Bug fix/Implementation changes:
- BUG 'HttpClient redirected request does not contains cookie header'
- BUG [2418447] 'charset decoding function failed'
- confusing debug log messages has been removed
Gregor
|
|
From: Gregor R. <gre...@go...> - 2008-12-17 07:05:01
|
Hi Serguei, unfortunately no workaround exists. The next version of xSocket (which will be released in 1 or 2 weeks) will support additional constructors. See http://xsocket.svn.sourceforge.net/viewvc/xsocket/xsocket/core/trunk/src/test/java/org/xsocket/connection/ClientLocalAddressTest.java?view=markup Gregor 2008/12/16 Serguei Belikov <sbe...@tu...> > Hi, > > In some cases in multi-homed environment it is often required to specify > client IP address and port. It looks like this binding is not supported > in current version of xsocket. > Does a simple work-around exists? What are chances that appropriate > constructors will be added in the future? > > -- > Regards, > Serguei Belikov > > > > > ------------------------------------------------------------------------------ > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. > The future of the web can't happen without you. Join us at MIX09 to help > pave the way to the Next Web now. Learn more and register at > > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ > _______________________________________________ > xSocket-develop mailing list > xSo...@li... > https://lists.sourceforge.net/lists/listinfo/xsocket-develop > |
|
From: Serguei B. <sbe...@tu...> - 2008-12-16 23:22:49
|
Hi, In some cases in multi-homed environment it is often required to specify client IP address and port. It looks like this binding is not supported in current version of xsocket. Does a simple work-around exists? What are chances that appropriate constructors will be added in the future? -- Regards, Serguei Belikov |
|
From: Gregor R. <gre...@go...> - 2008-12-12 17:47:55
|
Hi Jens, data will be segmented on the network level. If the onData() method is called, it is not predictable how many bytes will be received. This causes that each NonBlockingConnection read method will throw a BufferUnderflowException, if not enough data is available An example for reading mutlipart records can be found in the tutorial chapter 13 -16: http://xsocket.sourceforge.net/core/tutorial/V2/TutorialCore.htm Gregor 2008/12/12 Jens Ramhorst <jen...@ju...> > Hello, > I have a big problem. > I am new to xSocket and my written Server close every connection after > two packets without reason. > The packagesize is equal. > Example: > The first 2 bytes of data are the length of all data, that the client > send. In this example 1492 bytes. With the nbc.readByte-Method i try to > read all 1492 bytes. But after 2 packages (for e.g. 500 bytes) the Sever > close the connection and System.out.println is never reached. > I looked with wireshark and after the first packege the server send ACK, > after the second the server send ACK and FIN,ACK. > The Code: > public boolean onData(INonBlockingConnection nbc) throws IOException, > BufferUnderflowException, ClosedChannelException, > MaxReadSizeExceededException { > byte[] lengthArray = new byte[2]; > for (int i=0; i<2; i++) { > lengthArray[i] = > ByteKit.fromUnsignedInt(nbc.readByte()); // Reads the complete length of > data the client send > } > int length = > ByteKit.chartoInt((byte)0,(byte)0,lengthArray[0],lengthArray[1]); // The > length of data > byte dataArray[] = new byte[length]; > dataArray = nbc.readBytesByLength(length); // Read all data > in array > System.out.println("Done"!); // Never reached > } > > Has anybody an idea. > Best regards. > Jens > > > ------------------------------------------------------------------------------ > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. > The future of the web can't happen without you. Join us at MIX09 to help > pave the way to the Next Web now. Learn more and register at > > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ > _______________________________________________ > xSocket-develop mailing list > xSo...@li... > https://lists.sourceforge.net/lists/listinfo/xsocket-develop > |
|
From: Jens R. <jen...@ju...> - 2008-12-12 12:38:37
|
Hello,
I have a big problem.
I am new to xSocket and my written Server close every connection after
two packets without reason.
The packagesize is equal.
Example:
The first 2 bytes of data are the length of all data, that the client
send. In this example 1492 bytes. With the nbc.readByte-Method i try to
read all 1492 bytes. But after 2 packages (for e.g. 500 bytes) the Sever
close the connection and System.out.println is never reached.
I looked with wireshark and after the first packege the server send ACK,
after the second the server send ACK and FIN,ACK.
The Code:
public boolean onData(INonBlockingConnection nbc) throws IOException,
BufferUnderflowException, ClosedChannelException,
MaxReadSizeExceededException {
byte[] lengthArray = new byte[2];
for (int i=0; i<2; i++) {
lengthArray[i] =
ByteKit.fromUnsignedInt(nbc.readByte()); // Reads the complete length of
data the client send
}
int length =
ByteKit.chartoInt((byte)0,(byte)0,lengthArray[0],lengthArray[1]); // The
length of data
byte dataArray[] = new byte[length];
dataArray = nbc.readBytesByLength(length); // Read all data
in array
System.out.println("Done"!); // Never reached
}
Has anybody an idea.
Best regards.
Jens
|
|
From: Gregor R. <gre...@go...> - 2008-12-10 18:37:43
|
Hi, the version file is nothing new. It is located in the src\main\resources\org\xsocket directory. The version file will be created automatically by running the maven build. It is also checked in Gregor 2008/12/10 beijing welcome <wel...@gm...> > oh, i see > > by the way, could you show me the changelog of that? i just want to > know where is the version file. > > 2008/12/10 Gregor Roth <gre...@go...> > > >> ... yes some classes have been modified. The error you got is caused by a >> missing version file which will be created within the build process. I've >> update the trunk to be more robust. >> >> Please note, that this exception will not occured by using released >> versions >> >> Gregor >> >> >> >> 2008/12/10 beijing welcome <wel...@gm...> >> >>> i just synced the code to >>> http://xsocket.svn.sourceforge.net/viewvc/xsocket/xsocket/core/trunk/src/ >>> when i run EchoServerTest, >>> >>> >>> Exception in thread "xServer" java.lang.RuntimeException: >>> java.lang.NullPointerException >>> at org.xsocket.connection.Server.run(Server.java:497) >>> at java.lang.Thread.run(Unknown Source) >>> Caused by: java.lang.NullPointerException >>> at java.io.Reader.<init>(Unknown Source) >>> at java.io.InputStreamReader.<init>(Unknown Source) >>> at >>> org.xsocket.connection.ConnectionUtils.readVersionFile(ConnectionUtils.java:384) >>> at >>> org.xsocket.connection.ConnectionUtils.getImplementationVersion(ConnectionUtils.java:354) >>> at >>> org.xsocket.connection.Server.getImplementationVersion(Server.java:886) >>> at >>> org.xsocket.connection.Server$LifeCycleHandler.onConnected(Server.java:933) >>> at org.xsocket.connection.IoAcceptor.listen(IoAcceptor.java:199) >>> at org.xsocket.connection.Server.run(Server.java:493) >>> ... 1 more >>> >>> >>> any changing in Server.java? >>> it worked for me before. >>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, >>> Nevada. >>> The future of the web can't happen without you. Join us at MIX09 to help >>> pave the way to the Next Web now. Learn more and register at >>> >>> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ >>> _______________________________________________ >>> xSocket-develop mailing list >>> xSo...@li... >>> https://lists.sourceforge.net/lists/listinfo/xsocket-develop >>> >>> >> > |
|
From: beijing w. <wel...@gm...> - 2008-12-10 17:49:53
|
oh, i see by the way, could you show me the changelog of that? i just want to know where is the version file. 2008/12/10 Gregor Roth <gre...@go...> > > ... yes some classes have been modified. The error you got is caused by a > missing version file which will be created within the build process. I've > update the trunk to be more robust. > > Please note, that this exception will not occured by using released > versions > > Gregor > > > > 2008/12/10 beijing welcome <wel...@gm...> > >> i just synced the code to >> http://xsocket.svn.sourceforge.net/viewvc/xsocket/xsocket/core/trunk/src/ >> when i run EchoServerTest, >> >> >> Exception in thread "xServer" java.lang.RuntimeException: >> java.lang.NullPointerException >> at org.xsocket.connection.Server.run(Server.java:497) >> at java.lang.Thread.run(Unknown Source) >> Caused by: java.lang.NullPointerException >> at java.io.Reader.<init>(Unknown Source) >> at java.io.InputStreamReader.<init>(Unknown Source) >> at >> org.xsocket.connection.ConnectionUtils.readVersionFile(ConnectionUtils.java:384) >> at >> org.xsocket.connection.ConnectionUtils.getImplementationVersion(ConnectionUtils.java:354) >> at >> org.xsocket.connection.Server.getImplementationVersion(Server.java:886) >> at >> org.xsocket.connection.Server$LifeCycleHandler.onConnected(Server.java:933) >> at org.xsocket.connection.IoAcceptor.listen(IoAcceptor.java:199) >> at org.xsocket.connection.Server.run(Server.java:493) >> ... 1 more >> >> >> any changing in Server.java? >> it worked for me before. >> >> >> >> >> ------------------------------------------------------------------------------ >> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, >> Nevada. >> The future of the web can't happen without you. Join us at MIX09 to help >> pave the way to the Next Web now. Learn more and register at >> >> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ >> _______________________________________________ >> xSocket-develop mailing list >> xSo...@li... >> https://lists.sourceforge.net/lists/listinfo/xsocket-develop >> >> > |
|
From: Gregor R. <gre...@go...> - 2008-12-10 11:54:33
|
Hi sly, as a static typed language java requires that the type of a variable is defined at declaration time. This variable can only be set with the data of the declared type. This means you can not set the string-typed variable with an object of type NonBlockingConnection. Gregor 2008/12/10 <jun...@wp...> > Hi, > > Is it possible to use string from a string variable as a name for new > created nbc? What method should I use? > > String name = "nbc"; > > name = new NonBlockingConnection(...) // name should be "nbc" > > regards, > sly > > ---------------------------------------------------- > Skąd pochodzi Twoje nazwisko? > Sprawdź sam, kliknij: > > http://klik.wp.pl/?adr=http%3A%2F%2Fcorto.www.wp.pl%2Fas%2Fbliscy.html&sid=565 > > > > > ------------------------------------------------------------------------------ > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. > The future of the web can't happen without you. Join us at MIX09 to help > pave the way to the Next Web now. Learn more and register at > > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ > _______________________________________________ > xSocket-develop mailing list > xSo...@li... > https://lists.sourceforge.net/lists/listinfo/xsocket-develop > |
|
From: <jun...@wp...> - 2008-12-10 09:57:25
|
Hi, Is it possible to use string from a string variable as a name for new created nbc? What method should I use? String name = "nbc"; name = new NonBlockingConnection(...) // name should be "nbc" regards, sly ---------------------------------------------------- Skąd pochodzi Twoje nazwisko? Sprawdź sam, kliknij: http://klik.wp.pl/?adr=http%3A%2F%2Fcorto.www.wp.pl%2Fas%2Fbliscy.html&sid=565 |
|
From: <jun...@wp...> - 2008-12-10 09:41:27
|
ok, I found what was wrong. I forgot to write after "class Handler implements IDataHandler, ..." <span style="font-weight: bold;">IConnectHandler<br><br></span>regards,<br>sly<span style="font-weight: bold;"><br></span>
<pre class="text"><br></pre><br>Dnia 9-12-2008 o godz. 18:46 Gregor Roth napisał(a):
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">... yes, this is enough<br><br>Gregor <br><br><div class="gmail_quote">2008/12/9 <span dir="ltr"><jun...@wp...></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>What does it mean "if implemented" ? Is it enough to write, as I did, in IDataHandler<div class="Ih2E3d"><br><br> public boolean onConnect(INonBlockingConnection nbc) throws IOException {<br>
System.out.println("Connected!!!!!");<br>
return true;<br>
}<br><br></div>?<br><br>regards,<br>sly<br><br><br>Dnia 9-12-2008 o godz. 14:28 Gregor Roth napisał(a):
<div><div></div><div class="Wj3C7c"><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">Hi,<br><br>the onConnect method will be called by xsocket (if implemented), after the incoming client connection is established. This means if your flash-client connects your server, the onConnect-Method will be called automatically. <br>
<br>Often the onConnect method is used to set connection properties (e.g. a bad IP address -> connection.setWriteTransferRate) or to send a greeting message to the client (e.g. smtp -> connection.write("220 <a href="http://mx0.gmx.net" target="_blank">mx0.gmx.net</a> GMX Mailservices ESMTP") )<br>
<br>Gregor <br><br><br><br><div class="gmail_quote">2008/12/9 <span dir="ltr"><jun...@wp...></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
hi,<br>
<br>
My java application with xsocket server communicate with Flash client.<br>
Method onData works. But how to trigger onConnect method? It should be<br>
triggered when my Flash client connects, right? Do I have to send<br>
additional manually some kind of greetings message in order to trigger<br>
onConnnnect method?<br>
<br>
Hier is my code<br>
<br>
<Main.java><br>
<br>
srv = new Server(8091, new xSocketDataHandler());<br>
srv.start();<br>
<br>
<xSocketDataHandler.java><br>
<br>
package xsocketserver;<br>
<br>
import java.io.IOException;<br>
import java.nio.BufferUnderflowException;<br>
import java.nio.channels.ClosedChannelException;<br>
import org.xsocket.*;<br>
import org.xsocket.connection.*;<br>
<br>
public class xSocketDataHandler implements IDataHandler<br>
<br>
<br>
{<br>
public INonBlockingConnection nbc;<br>
<br>
public boolean onConnect(INonBlockingConnection nbc) throws IOException {<br>
System.out.println("Connected!!!!!");<br>
return true;<br>
}<br>
<br>
public boolean onDisconnect(INonBlockingConnection nbc) throws<br>
IOException {<br>
System.out.println("Disconected!!!!!!!!!!!!!!!!");<br>
return true;<br>
}<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
public boolean onData(INonBlockingConnection nbc) throws IOException,<br>
BufferUnderflowException, ClosedChannelException,<br>
MaxReadSizeExceededException<br>
{<br>
try<br>
{<br>
String data = nbc.readStringByDelimiter("\0");<br>
<br>
<br>
System.out.println("Reciving Data");<br>
<br>
<br>
if(data.equalsIgnoreCase("SHUTDOWN"))<br>
Main.shutdownServer();<br>
<br>
<br>
}<br>
catch(Exception ex)<br>
{<br>
System.out.println(ex.getMessage());<br>
}<br>
<br>
return true;<br>
}<br>
}<br>
<br>
regards,<br>
sly<br>
<br>
----------------------------------------------------<br>
Przyjdź za najlepiej ROCKUJĄCY "Sylwester z Sylwestrem"<br>
w Hotelu Nadmorskim w Gdyni - Kliknij:<br>
<a href="http://klik.wp.pl/?adr=http%3A%2F%2Fwww.nadmorski.pl%2Fsylwester_gdynia%2F&sid=579" target="_blank">http://klik.wp.pl/?adr=http%3A%2F%2Fwww.nadmorski.pl%2Fsylwester_gdynia%2F&sid=579</a><br>
<br>
<br>
<br>
------------------------------------------------------------------------------<br>
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.<br>
The future of the web can't happen without you. Join us at MIX09 to help<br>
pave the way to the Next Web now. Learn more and register at<br>
<a href="http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/" target="_blank">http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/</a><br>
_______________________________________________<br>
xSocket-develop mailing list<br>
<a href="mailto:xSo...@li..." target="_blank">xSo...@li...</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/xsocket-develop" target="_blank">https://lists.sourceforge.net/lists/listinfo/xsocket-develop</a><br>
</blockquote></div><br>
</blockquote><br><br><br><br><br></div></div>----------------------------------------------------<br>Objawienia Matki Boskiej w Lourdes... Stygmaty Teresy Neumann... <br>Zobacz, które cuda uznaje Kościół!<br><a href="http://klik.wp.pl/?adr=http://corto.www.wp.pl/as/kosciol.html&sid=580" target="_blank">http://klik.wp.pl/?adr=http://corto.www.wp.pl/as/kosciol.html&sid=580</a>
</blockquote></div><br>
</blockquote><br><br><br /><br /><br />----------------------------------------------------<br />Co to był za GOOOOOOOOOL! <br />Cyknąłeś taką akcję? <br />Wrzuć foty na <A HREF="http://klik.wp.pl/?adr=http://pikeo.pl&sid=578" TARGET="_blank">http://klik.wp.pl/?adr=http://pikeo.pl&sid=578</A>
|
|
From: Gregor R. <gre...@go...> - 2008-12-10 09:23:44
|
... yes some classes have been modified. The error you got is caused by a missing version file which will be created within the build process. I've update the trunk to be more robust. Please note, that this exception will not occured by using released versions Gregor 2008/12/10 beijing welcome <wel...@gm...> > i just synced the code to > http://xsocket.svn.sourceforge.net/viewvc/xsocket/xsocket/core/trunk/src/ > when i run EchoServerTest, > > > Exception in thread "xServer" java.lang.RuntimeException: > java.lang.NullPointerException > at org.xsocket.connection.Server.run(Server.java:497) > at java.lang.Thread.run(Unknown Source) > Caused by: java.lang.NullPointerException > at java.io.Reader.<init>(Unknown Source) > at java.io.InputStreamReader.<init>(Unknown Source) > at > org.xsocket.connection.ConnectionUtils.readVersionFile(ConnectionUtils.java:384) > at > org.xsocket.connection.ConnectionUtils.getImplementationVersion(ConnectionUtils.java:354) > at org.xsocket.connection.Server.getImplementationVersion(Server.java:886) > at > org.xsocket.connection.Server$LifeCycleHandler.onConnected(Server.java:933) > at org.xsocket.connection.IoAcceptor.listen(IoAcceptor.java:199) > at org.xsocket.connection.Server.run(Server.java:493) > ... 1 more > > > any changing in Server.java? > it worked for me before. > > > > > ------------------------------------------------------------------------------ > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. > The future of the web can't happen without you. Join us at MIX09 to help > pave the way to the Next Web now. Learn more and register at > > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ > _______________________________________________ > xSocket-develop mailing list > xSo...@li... > https://lists.sourceforge.net/lists/listinfo/xsocket-develop > > |
|
From: beijing w. <wel...@gm...> - 2008-12-10 08:20:40
|
i just synced the code to http://xsocket.svn.sourceforge.net/viewvc/xsocket/xsocket/core/trunk/src/ when i run EchoServerTest, Exception in thread "xServer" java.lang.RuntimeException: java.lang.NullPointerException at org.xsocket.connection.Server.run(Server.java:497) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NullPointerException at java.io.Reader.<init>(Unknown Source) at java.io.InputStreamReader.<init>(Unknown Source) at org.xsocket.connection.ConnectionUtils.readVersionFile(ConnectionUtils.java:384) at org.xsocket.connection.ConnectionUtils.getImplementationVersion(ConnectionUtils.java:354) at org.xsocket.connection.Server.getImplementationVersion(Server.java:886) at org.xsocket.connection.Server$LifeCycleHandler.onConnected(Server.java:933) at org.xsocket.connection.IoAcceptor.listen(IoAcceptor.java:199) at org.xsocket.connection.Server.run(Server.java:493) ... 1 more any changing in Server.java? it worked for me before. |
|
From: Gregor R. <gre...@go...> - 2008-12-09 17:47:02
|
... yes, this is enough
Gregor
2008/12/9 <jun...@wp...>
> Hi,
>
> What does it mean "if implemented" ? Is it enough to write, as I did, in
> IDataHandler
>
> public boolean onConnect(INonBlockingConnection nbc) throws IOException {
> System.out.println("Connected!!!!!");
> return true;
> }
>
> ?
>
> regards,
> sly
>
>
> Dnia 9-12-2008 o godz. 14:28 Gregor Roth napisał(a):
>
> Hi,
>
> the onConnect method will be called by xsocket (if implemented), after the
> incoming client connection is established. This means if your flash-client
> connects your server, the onConnect-Method will be called automatically.
>
> Often the onConnect method is used to set connection properties (e.g. a bad
> IP address -> connection.setWriteTransferRate) or to send a greeting message
> to the client (e.g. smtp -> connection.write("220 mx0.gmx.net GMX
> Mailservices ESMTP") )
>
> Gregor
>
>
>
> 2008/12/9 <jun...@wp...>
>
>> hi,
>>
>> My java application with xsocket server communicate with Flash client.
>> Method onData works. But how to trigger onConnect method? It should be
>> triggered when my Flash client connects, right? Do I have to send
>> additional manually some kind of greetings message in order to trigger
>> onConnnnect method?
>>
>> Hier is my code
>>
>> <Main.java>
>>
>> srv = new Server(8091, new xSocketDataHandler());
>> srv.start();
>>
>> <xSocketDataHandler.java>
>>
>> package xsocketserver;
>>
>> import java.io.IOException;
>> import java.nio.BufferUnderflowException;
>> import java.nio.channels.ClosedChannelException;
>> import org.xsocket.*;
>> import org.xsocket.connection.*;
>>
>> public class xSocketDataHandler implements IDataHandler
>>
>>
>> {
>> public INonBlockingConnection nbc;
>>
>> public boolean onConnect(INonBlockingConnection nbc) throws IOException
>> {
>> System.out.println("Connected!!!!!");
>> return true;
>> }
>>
>> public boolean onDisconnect(INonBlockingConnection nbc) throws
>> IOException {
>> System.out.println("Disconected!!!!!!!!!!!!!!!!");
>> return true;
>> }
>>
>>
>>
>>
>>
>>
>>
>> public boolean onData(INonBlockingConnection nbc) throws IOException,
>> BufferUnderflowException, ClosedChannelException,
>> MaxReadSizeExceededException
>> {
>> try
>> {
>> String data = nbc.readStringByDelimiter("\0");
>>
>>
>> System.out.println("Reciving Data");
>>
>>
>> if(data.equalsIgnoreCase("SHUTDOWN"))
>> Main.shutdownServer();
>>
>>
>> }
>> catch(Exception ex)
>> {
>> System.out.println(ex.getMessage());
>> }
>>
>> return true;
>> }
>> }
>>
>> regards,
>> sly
>>
>> ----------------------------------------------------
>> Przyjdź za najlepiej ROCKUJĄCY "Sylwester z Sylwestrem"
>> w Hotelu Nadmorskim w Gdyni - Kliknij:
>>
>> http://klik.wp.pl/?adr=http%3A%2F%2Fwww.nadmorski.pl%2Fsylwester_gdynia%2F&sid=579
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas,
>> Nevada.
>> The future of the web can't happen without you. Join us at MIX09 to help
>> pave the way to the Next Web now. Learn more and register at
>>
>> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
>> _______________________________________________
>> xSocket-develop mailing list
>> xSo...@li...
>> https://lists.sourceforge.net/lists/listinfo/xsocket-develop
>>
>
>
>
>
>
>
> ----------------------------------------------------
> Objawienia Matki Boskiej w Lourdes... Stygmaty Teresy Neumann...
> Zobacz, które cuda uznaje Kościół!
> http://klik.wp.pl/?adr=http://corto.www.wp.pl/as/kosciol.html&sid=580 |
|
From: <jun...@wp...> - 2008-12-09 17:21:02
|
Hi,<br><br>What does it mean "if implemented" ? Is it enough to write, as I did, in IDataHandler<br><br> public boolean onConnect(INonBlockingConnection nbc) throws IOException {<br>
System.out.println("Connected!!!!!");<br>
return true;<br>
}<br><br>?<br><br>regards,<br>sly<br><br><br>Dnia 9-12-2008 o godz. 14:28 Gregor Roth napisał(a):
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">Hi,<br><br>the onConnect method will be called by xsocket (if implemented), after the incoming client connection is established. This means if your flash-client connects your server, the onConnect-Method will be called automatically. <br>
<br>Often the onConnect method is used to set connection properties (e.g. a bad IP address -> connection.setWriteTransferRate) or to send a greeting message to the client (e.g. smtp -> connection.write("220 <a href="http://mx0.gmx.net">mx0.gmx.net</a> GMX Mailservices ESMTP") )<br>
<br>Gregor <br><br><br><br><div class="gmail_quote">2008/12/9 <span dir="ltr"><jun...@wp...></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
hi,<br>
<br>
My java application with xsocket server communicate with Flash client.<br>
Method onData works. But how to trigger onConnect method? It should be<br>
triggered when my Flash client connects, right? Do I have to send<br>
additional manually some kind of greetings message in order to trigger<br>
onConnnnect method?<br>
<br>
Hier is my code<br>
<br>
<Main.java><br>
<br>
srv = new Server(8091, new xSocketDataHandler());<br>
srv.start();<br>
<br>
<xSocketDataHandler.java><br>
<br>
package xsocketserver;<br>
<br>
import java.io.IOException;<br>
import java.nio.BufferUnderflowException;<br>
import java.nio.channels.ClosedChannelException;<br>
import org.xsocket.*;<br>
import org.xsocket.connection.*;<br>
<br>
public class xSocketDataHandler implements IDataHandler<br>
<br>
<br>
{<br>
public INonBlockingConnection nbc;<br>
<br>
public boolean onConnect(INonBlockingConnection nbc) throws IOException {<br>
System.out.println("Connected!!!!!");<br>
return true;<br>
}<br>
<br>
public boolean onDisconnect(INonBlockingConnection nbc) throws<br>
IOException {<br>
System.out.println("Disconected!!!!!!!!!!!!!!!!");<br>
return true;<br>
}<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
public boolean onData(INonBlockingConnection nbc) throws IOException,<br>
BufferUnderflowException, ClosedChannelException,<br>
MaxReadSizeExceededException<br>
{<br>
try<br>
{<br>
String data = nbc.readStringByDelimiter("\0");<br>
<br>
<br>
System.out.println("Reciving Data");<br>
<br>
<br>
if(data.equalsIgnoreCase("SHUTDOWN"))<br>
Main.shutdownServer();<br>
<br>
<br>
}<br>
catch(Exception ex)<br>
{<br>
System.out.println(ex.getMessage());<br>
}<br>
<br>
return true;<br>
}<br>
}<br>
<br>
regards,<br>
sly<br>
<br>
----------------------------------------------------<br>
Przyjdź za najlepiej ROCKUJĄCY "Sylwester z Sylwestrem"<br>
w Hotelu Nadmorskim w Gdyni - Kliknij:<br>
<a href="http://klik.wp.pl/?adr=http%3A%2F%2Fwww.nadmorski.pl%2Fsylwester_gdynia%2F&sid=579" target="_blank">http://klik.wp.pl/?adr=http%3A%2F%2Fwww.nadmorski.pl%2Fsylwester_gdynia%2F&sid=579</a><br>
<br>
<br>
<br>
------------------------------------------------------------------------------<br>
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.<br>
The future of the web can't happen without you. Join us at MIX09 to help<br>
pave the way to the Next Web now. Learn more and register at<br>
<a href="http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/" target="_blank">http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/</a><br>
_______________________________________________<br>
xSocket-develop mailing list<br>
<a href="mailto:xSo...@li...">xSo...@li...</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/xsocket-develop" target="_blank">https://lists.sourceforge.net/lists/listinfo/xsocket-develop</a><br>
</blockquote></div><br>
</blockquote><br><br><br /><br /><br />----------------------------------------------------<br />Objawienia Matki Boskiej w Lourdes... Stygmaty Teresy Neumann... <br />Zobacz, które cuda uznaje Kościół!<br /><A HREF="http://klik.wp.pl/?adr=http://corto.www.wp.pl/as/kosciol.html&sid=580" TARGET="_blank">http://klik.wp.pl/?adr=http://corto.www.wp.pl/as/kosciol.html&sid=580</A>
|