?????????????????
???????????? ???????[ 2013/6/5 9:43:32 ] ????????
???????????????????????????????η?????????????????????????????????ip?????????????????
pomelo@debian:~/socktest$ cat /proc/sys/net/ipv4/ip_local_port_range
2048 65500
?????????????ip??????6??????????????????????50??????ip????300???????????????????50?512M????????????????????????????????棺
????1???????????ν?????????6??????
????2????ο????????????
??????????java??д??????????????????????????????????????????java????????6?????????????????????????????????????????java?????????OOM??512M??治???????????????2??????????????6??????????????????????????????????????????????????????Щ???????????????????濪?????????????????????????????????????Щ???????
????????????£?????????????????????????????????浽????????У??????????????????е????????
private static int n = 0;
private static Socket[] sockList = null;
static {
n = Integer.valueOf(Config.getProperty("socket.num"));
sockList = new Socket[n];
}
public void connect(String host?? int port) throws UnknownHostException {
Socket so = null;
long sleepTime = Integer.valueOf(Config.getProperty("socket.sleep"));
for (int i=0;i<n;i++) {
try {
so = new Socket(host?? port);
sockList[i] = so;
Thread.sleep(sleepTime);
} catch (IOException e) {
logger.error(e.getMessage());
} catch (InterruptedException e) {
}
}
}
???????????????ο???????????????????????????shell????????ssh???ò???????????????????????????????????????????ssh????????????????????????????????????ssh???????????????????????????????????????ip?б???????????
??????????????????????????????????????????????????????????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11