- 浏览: 254923 次
- 性别:
- 来自: 北京
文章分类
最新评论
-
soho00147:
我的想法是在这个插件的基础上编写更加强大的插件,扫描目录时发现 ...
maven增量编译的思考 -
soho00147:
如果没有变动则 maven install
使用时,直接 ...
maven增量编译的思考 -
soho00147:
可以参考这个插件,这个插件是对maven项目以module级别 ...
maven增量编译的思考
根本原因是socket资源不足,导致连接失败, 下面是对exception的分析:
1. java.net.BindException: Address already in use.
It may be caused by the port resources are not released quickly after we call socket.close(), but be in TIME_WAIT state for some time. Below is the result.
380g7x09:/opt # netstat -na|grep TIME_WAIT|wc -l
28851
380g7x09:/opt # netstat -na|grep TIME_WAIT|grep 8080|wc -l
22326
The solution is maybe to set following parameter to 1. Or do we have other solutions?
380g7x09:/opt # sysctl -a|grep net.ipv4.tcp_tw
net.ipv4.tcp_tw_recycle = 0
net.ipv4.tcp_tw_reuse = 0
2. java.net.SocketException: Too many open files
Could we enlarge the "open files" ulimit? Currently it is 1024. FYI.
380g7x09:/opt # ulimit -a
core file size (blocks, -c) 1
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 127424
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) 13873868
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 127424
virtual memory (kbytes, -v) 26479520
file locks (-x) unlimited
/etc/security/limits.conf
例如,把用户nmcman的limit设成8192:
nmcman soft nofile 8192
从代码角度,可以设置SO_REUSEADDR这个Socket Option:
socket.setReuseAddress(true);
使用lsof可以找出所有打开的FD, 发现很多Socket显示"can't identify protocol
"。 这个通常是由于socket用完后没有close导致的。Code改动如下:
finally{
if(socket != null)
try {
socket.close();
} catch (IOException e) {
}
}
Wed Jun 20 17:02:03 CEST 2012
->4205<-
=== begin lsof -p 22160 ===
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
。。。
java 22160 nmcman 712u sock 0,7 0t0 882473171 can't identify protocol
java 22160 nmcman 713u sock 0,7 0t0 882472188 can't identify protocol
java 22160 nmcman 714u sock 0,7 0t0 882467758 can't identify protocol
java 22160 nmcman 715u sock 0,7 0t0 882472189 can't identify protocol
java 22160 nmcman 716u sock 0,7 0t0 882470568 can't identify protocol
java 22160 nmcman 717u sock 0,7 0t0 882473172 can't identify protocol
java 22160 nmcman 718u sock 0,7 0t0 882468704 can't identify protocol
java 22160 nmcman 719u sock 0,7 0t0 882470569 can't identify protocol
java 22160 nmcman 720u sock 0,7 0t0 882467759 can't identify protocol
java 22160 nmcman 721u sock 0,7 0t0 882472190 can't identify protocol
java 22160 nmcman 722u sock 0,7 0t0 882474125 can't identify protocol
java 22160 nmcman 723u sock 0,7 0t0 882473173 can't identify protocol
java 22160 nmcman 724u sock 0,7 0t0 882468705 can't identify protocol
java 22160 nmcman 725u sock 0,7 0t0 882469535 can't identify protocol
java 22160 nmcman 726u sock 0,7 0t0 882472191 can't identify protocol
java 22160 nmcman 727u sock 0,7 0t0 882473174 can't identify protocol
java 22160 nmcman 728u sock 0,7 0t0 882470570 can't identify protocol
java 22160 nmcman 729u sock 0,7 0t0 882474126 can't identify protocol
java 22160 nmcman 730u sock 0,7 0t0 882469536 can't identify protocol
java 22160 nmcman 731u sock 0,7 0t0 882468706 can't identify protocol
java 22160 nmcman 732u sock 0,7 0t0 882467760 can't identify protocol
java 22160 nmcman 733u sock 0,7 0t0 882473175 can't identify protocol
java 22160 nmcman 734u sock 0,7 0t0 882472192 can't identify protocol
java 22160 nmcman 735u sock 0,7 0t0 882469537 can't identify protocol
java 22160 nmcman 736u sock 0,7 0t0 882474127 can't identify protocol
java 22160 nmcman 737u sock 0,7 0t0 882470571 can't identify protocol
java 22160 nmcman 738u sock 0,7 0t0 882473176 can't identify protocol
java 22160 nmcman 739u sock 0,7 0t0 882467761 can't identify protocol
java 22160 nmcman 740u sock 0,7 0t0 882468707 can't identify protocol
java 22160 nmcman 741u sock 0,7 0t0 882472193 can't identify protocol
java 22160 nmcman 742u sock 0,7 0t0 882469538 can't identify protocol
java 22160 nmcman 743u sock 0,7 0t0 882470572 can't identify protocol
java 22160 nmcman 744u sock 0,7 0t0 882474128 can't identify protocol
java 22160 nmcman 745u sock 0,7 0t0 882472194 can't identify protocol
java 22160 nmcman 746u sock 0,7 0t0 882467762 can't identify protocol
java 22160 nmcman 747u sock 0,7 0t0 882468708 can't identify protocol
java 22160 nmcman 748u sock 0,7 0t0 882470573 can't identify protocol
java 22160 nmcman 749u sock 0,7 0t0 882467763 can't identify protocol
java 22160 nmcman 750u sock 0,7 0t0 882469539 can't identify protocol
java 22160 nmcman 751u sock 0,7 0t0 882468709 can't identify protocol
java 22160 nmcman 752u sock 0,7 0t0 882472195 can't identify protocol
java 22160 nmcman 753u sock 0,7 0t0 882474129 can't identify protocol
java 22160 nmcman 754u sock 0,7 0t0 882470574 can't identify protocol
java 22160 nmcman 755u sock 0,7 0t0 882467764 can't identify protocol
java 22160 nmcman 756u sock 0,7 0t0 882469540 can't identify protocol
java 22160 nmcman 757u sock 0,7 0t0 882474130 can't identify protocol
java 22160 nmcman 758u sock 0,7 0t0 882470575 can't identify protocol
java 22160 nmcman 759u sock 0,7 0t0 882467765 can't identify protocol
java 22160 nmcman 760u sock 0,7 0t0 882469541 can't identify protocol
java 22160 nmcman 761u sock 0,7 0t0 882474131 can't identify protocol
java 22160 nmcman 762u sock 0,7 0t0 882469451 can't identify protocol
java 22160 nmcman 763u sock 0,7 0t0 882470576 can't identify protocol
java 22160 nmcman 764u sock 0,7 0t0 882469542 can't identify protocol
java 22160 nmcman 765u sock 0,7 0t0 882474132 can't identify protocol
java 22160 nmcman 766u sock 0,7 0t0 882470577 can't identify protocol
java 22160 nmcman 767u sock 0,7 0t0 882469543 can't identify protocol
java 22160 nmcman 768u sock 0,7 0t0 882468710 can't identify protocol
java 22160 nmcman 769u sock 0,7 0t0 882467766 can't identify protocol
java 22160 nmcman 770u sock 0,7 0t0 882474133 can't identify protocol
java 22160 nmcman 771u sock 0,7 0t0 882469544 can't identify protocol
java 22160 nmcman 772u sock 0,7 0t0 882468711 can't identify protocol
java 22160 nmcman 773u sock 0,7 0t0 882467767 can't identify protocol
java 22160 nmcman 774u sock 0,7 0t0 882474134 can't identify protocol
java 22160 nmcman 775u sock 0,7 0t0 882469545 can't identify protocol
java 22160 nmcman 776u sock 0,7 0t0 882472196 can't identify protocol
java 22160 nmcman 777u sock 0,7 0t0 882468712 can't identify protocol
java 22160 nmcman 778u sock 0,7 0t0 882470578 can't identify protocol
java 22160 nmcman 779u sock 0,7 0t0 882467768 can't identify protocol
java 22160 nmcman 780u sock 0,7 0t0 882469546 can't identify protocol
java 22160 nmcman 781u sock 0,7 0t0 882472197 can't identify protocol
java 22160 nmcman 782u sock 0,7 0t0 882474135 can't identify protocol
java 22160 nmcman 783u sock 0,7 0t0 882468713 can't identify protocol
java 22160 nmcman 784u sock 0,7 0t0 882470579 can't identify protocol
java 22160 nmcman 785u sock 0,7 0t0 882467769 can't identify protocol
java 22160 nmcman 786u sock 0,7 0t0 882472198 can't identify protocol
java 22160 nmcman 787u sock 0,7 0t0 882474136 can't identify protocol
java 22160 nmcman 788u sock 0,7 0t0 882469547 can't identify protocol
java 22160 nmcman 789u sock 0,7 0t0 882470580 can't identify protocol
java 22160 nmcman 790u sock 0,7 0t0 882467770 can't identify protocol
java 22160 nmcman 791u sock 0,7 0t0 882467771 can't identify protocol
java 22160 nmcman 792u sock 0,7 0t0 882472199 can't identify protocol
java 22160 nmcman 793u sock 0,7 0t0 882474137 can't identify protocol
java 22160 nmcman 794u sock 0,7 0t0 882469548 can't identify protocol
java 22160 nmcman 795u sock 0,7 0t0 882470581 can't identify protocol
java 22160 nmcman 796u sock 0,7 0t0 882474138 can't identify protocol
java 22160 nmcman 797u sock 0,7 0t0 882469549 can't identify protocol
java 22160 nmcman 798u sock 0,7 0t0 882472200 can't identify protocol
java 22160 nmcman 799u sock 0,7 0t0 882467772 can't identify protocol
java 22160 nmcman 800u sock 0,7 0t0 882469550 can't identify protocol
java 22160 nmcman 801u sock 0,7 0t0 882472201 can't identify protocol
java 22160 nmcman 802u sock 0,7 0t0 882474139 can't identify protocol
java 22160 nmcman 803u sock 0,7 0t0 882467773 can't identify protocol
java 22160 nmcman 804u sock 0,7 0t0 882469551 can't identify protocol
java 22160 nmcman 805u sock 0,7 0t0 882468715 can't identify protocol
java 22160 nmcman 806u sock 0,7 0t0 882474140 can't identify protocol
java 22160 nmcman 807u sock 0,7 0t0 882472202 can't identify protocol
java 22160 nmcman 808u sock 0,7 0t0 882469552 can't identify protocol
java 22160 nmcman 809u sock 0,7 0t0 882468716 can't identify protocol
java 22160 nmcman 810u sock 0,7 0t0 882474141 can't identify protocol
java 22160 nmcman 811u sock 0,7 0t0 882467774 can't identify protocol
java 22160 nmcman 812u sock 0,7 0t0 882472203 can't identify protocol
用strace -p <pid>能查看系统调用, 下面看到的应该是某些socket没有close完成。
[pid 22910] close(1022 <unfinished ...>
1. java.net.BindException: Address already in use.
It may be caused by the port resources are not released quickly after we call socket.close(), but be in TIME_WAIT state for some time. Below is the result.
380g7x09:/opt # netstat -na|grep TIME_WAIT|wc -l
28851
380g7x09:/opt # netstat -na|grep TIME_WAIT|grep 8080|wc -l
22326
The solution is maybe to set following parameter to 1. Or do we have other solutions?
380g7x09:/opt # sysctl -a|grep net.ipv4.tcp_tw
net.ipv4.tcp_tw_recycle = 0
net.ipv4.tcp_tw_reuse = 0
2. java.net.SocketException: Too many open files
Could we enlarge the "open files" ulimit? Currently it is 1024. FYI.
380g7x09:/opt # ulimit -a
core file size (blocks, -c) 1
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 127424
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) 13873868
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 127424
virtual memory (kbytes, -v) 26479520
file locks (-x) unlimited
/etc/security/limits.conf
例如,把用户nmcman的limit设成8192:
nmcman soft nofile 8192
从代码角度,可以设置SO_REUSEADDR这个Socket Option:
socket.setReuseAddress(true);
使用lsof可以找出所有打开的FD, 发现很多Socket显示"can't identify protocol
"。 这个通常是由于socket用完后没有close导致的。Code改动如下:
finally{
if(socket != null)
try {
socket.close();
} catch (IOException e) {
}
}
Wed Jun 20 17:02:03 CEST 2012
->4205<-
=== begin lsof -p 22160 ===
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
。。。
java 22160 nmcman 712u sock 0,7 0t0 882473171 can't identify protocol
java 22160 nmcman 713u sock 0,7 0t0 882472188 can't identify protocol
java 22160 nmcman 714u sock 0,7 0t0 882467758 can't identify protocol
java 22160 nmcman 715u sock 0,7 0t0 882472189 can't identify protocol
java 22160 nmcman 716u sock 0,7 0t0 882470568 can't identify protocol
java 22160 nmcman 717u sock 0,7 0t0 882473172 can't identify protocol
java 22160 nmcman 718u sock 0,7 0t0 882468704 can't identify protocol
java 22160 nmcman 719u sock 0,7 0t0 882470569 can't identify protocol
java 22160 nmcman 720u sock 0,7 0t0 882467759 can't identify protocol
java 22160 nmcman 721u sock 0,7 0t0 882472190 can't identify protocol
java 22160 nmcman 722u sock 0,7 0t0 882474125 can't identify protocol
java 22160 nmcman 723u sock 0,7 0t0 882473173 can't identify protocol
java 22160 nmcman 724u sock 0,7 0t0 882468705 can't identify protocol
java 22160 nmcman 725u sock 0,7 0t0 882469535 can't identify protocol
java 22160 nmcman 726u sock 0,7 0t0 882472191 can't identify protocol
java 22160 nmcman 727u sock 0,7 0t0 882473174 can't identify protocol
java 22160 nmcman 728u sock 0,7 0t0 882470570 can't identify protocol
java 22160 nmcman 729u sock 0,7 0t0 882474126 can't identify protocol
java 22160 nmcman 730u sock 0,7 0t0 882469536 can't identify protocol
java 22160 nmcman 731u sock 0,7 0t0 882468706 can't identify protocol
java 22160 nmcman 732u sock 0,7 0t0 882467760 can't identify protocol
java 22160 nmcman 733u sock 0,7 0t0 882473175 can't identify protocol
java 22160 nmcman 734u sock 0,7 0t0 882472192 can't identify protocol
java 22160 nmcman 735u sock 0,7 0t0 882469537 can't identify protocol
java 22160 nmcman 736u sock 0,7 0t0 882474127 can't identify protocol
java 22160 nmcman 737u sock 0,7 0t0 882470571 can't identify protocol
java 22160 nmcman 738u sock 0,7 0t0 882473176 can't identify protocol
java 22160 nmcman 739u sock 0,7 0t0 882467761 can't identify protocol
java 22160 nmcman 740u sock 0,7 0t0 882468707 can't identify protocol
java 22160 nmcman 741u sock 0,7 0t0 882472193 can't identify protocol
java 22160 nmcman 742u sock 0,7 0t0 882469538 can't identify protocol
java 22160 nmcman 743u sock 0,7 0t0 882470572 can't identify protocol
java 22160 nmcman 744u sock 0,7 0t0 882474128 can't identify protocol
java 22160 nmcman 745u sock 0,7 0t0 882472194 can't identify protocol
java 22160 nmcman 746u sock 0,7 0t0 882467762 can't identify protocol
java 22160 nmcman 747u sock 0,7 0t0 882468708 can't identify protocol
java 22160 nmcman 748u sock 0,7 0t0 882470573 can't identify protocol
java 22160 nmcman 749u sock 0,7 0t0 882467763 can't identify protocol
java 22160 nmcman 750u sock 0,7 0t0 882469539 can't identify protocol
java 22160 nmcman 751u sock 0,7 0t0 882468709 can't identify protocol
java 22160 nmcman 752u sock 0,7 0t0 882472195 can't identify protocol
java 22160 nmcman 753u sock 0,7 0t0 882474129 can't identify protocol
java 22160 nmcman 754u sock 0,7 0t0 882470574 can't identify protocol
java 22160 nmcman 755u sock 0,7 0t0 882467764 can't identify protocol
java 22160 nmcman 756u sock 0,7 0t0 882469540 can't identify protocol
java 22160 nmcman 757u sock 0,7 0t0 882474130 can't identify protocol
java 22160 nmcman 758u sock 0,7 0t0 882470575 can't identify protocol
java 22160 nmcman 759u sock 0,7 0t0 882467765 can't identify protocol
java 22160 nmcman 760u sock 0,7 0t0 882469541 can't identify protocol
java 22160 nmcman 761u sock 0,7 0t0 882474131 can't identify protocol
java 22160 nmcman 762u sock 0,7 0t0 882469451 can't identify protocol
java 22160 nmcman 763u sock 0,7 0t0 882470576 can't identify protocol
java 22160 nmcman 764u sock 0,7 0t0 882469542 can't identify protocol
java 22160 nmcman 765u sock 0,7 0t0 882474132 can't identify protocol
java 22160 nmcman 766u sock 0,7 0t0 882470577 can't identify protocol
java 22160 nmcman 767u sock 0,7 0t0 882469543 can't identify protocol
java 22160 nmcman 768u sock 0,7 0t0 882468710 can't identify protocol
java 22160 nmcman 769u sock 0,7 0t0 882467766 can't identify protocol
java 22160 nmcman 770u sock 0,7 0t0 882474133 can't identify protocol
java 22160 nmcman 771u sock 0,7 0t0 882469544 can't identify protocol
java 22160 nmcman 772u sock 0,7 0t0 882468711 can't identify protocol
java 22160 nmcman 773u sock 0,7 0t0 882467767 can't identify protocol
java 22160 nmcman 774u sock 0,7 0t0 882474134 can't identify protocol
java 22160 nmcman 775u sock 0,7 0t0 882469545 can't identify protocol
java 22160 nmcman 776u sock 0,7 0t0 882472196 can't identify protocol
java 22160 nmcman 777u sock 0,7 0t0 882468712 can't identify protocol
java 22160 nmcman 778u sock 0,7 0t0 882470578 can't identify protocol
java 22160 nmcman 779u sock 0,7 0t0 882467768 can't identify protocol
java 22160 nmcman 780u sock 0,7 0t0 882469546 can't identify protocol
java 22160 nmcman 781u sock 0,7 0t0 882472197 can't identify protocol
java 22160 nmcman 782u sock 0,7 0t0 882474135 can't identify protocol
java 22160 nmcman 783u sock 0,7 0t0 882468713 can't identify protocol
java 22160 nmcman 784u sock 0,7 0t0 882470579 can't identify protocol
java 22160 nmcman 785u sock 0,7 0t0 882467769 can't identify protocol
java 22160 nmcman 786u sock 0,7 0t0 882472198 can't identify protocol
java 22160 nmcman 787u sock 0,7 0t0 882474136 can't identify protocol
java 22160 nmcman 788u sock 0,7 0t0 882469547 can't identify protocol
java 22160 nmcman 789u sock 0,7 0t0 882470580 can't identify protocol
java 22160 nmcman 790u sock 0,7 0t0 882467770 can't identify protocol
java 22160 nmcman 791u sock 0,7 0t0 882467771 can't identify protocol
java 22160 nmcman 792u sock 0,7 0t0 882472199 can't identify protocol
java 22160 nmcman 793u sock 0,7 0t0 882474137 can't identify protocol
java 22160 nmcman 794u sock 0,7 0t0 882469548 can't identify protocol
java 22160 nmcman 795u sock 0,7 0t0 882470581 can't identify protocol
java 22160 nmcman 796u sock 0,7 0t0 882474138 can't identify protocol
java 22160 nmcman 797u sock 0,7 0t0 882469549 can't identify protocol
java 22160 nmcman 798u sock 0,7 0t0 882472200 can't identify protocol
java 22160 nmcman 799u sock 0,7 0t0 882467772 can't identify protocol
java 22160 nmcman 800u sock 0,7 0t0 882469550 can't identify protocol
java 22160 nmcman 801u sock 0,7 0t0 882472201 can't identify protocol
java 22160 nmcman 802u sock 0,7 0t0 882474139 can't identify protocol
java 22160 nmcman 803u sock 0,7 0t0 882467773 can't identify protocol
java 22160 nmcman 804u sock 0,7 0t0 882469551 can't identify protocol
java 22160 nmcman 805u sock 0,7 0t0 882468715 can't identify protocol
java 22160 nmcman 806u sock 0,7 0t0 882474140 can't identify protocol
java 22160 nmcman 807u sock 0,7 0t0 882472202 can't identify protocol
java 22160 nmcman 808u sock 0,7 0t0 882469552 can't identify protocol
java 22160 nmcman 809u sock 0,7 0t0 882468716 can't identify protocol
java 22160 nmcman 810u sock 0,7 0t0 882474141 can't identify protocol
java 22160 nmcman 811u sock 0,7 0t0 882467774 can't identify protocol
java 22160 nmcman 812u sock 0,7 0t0 882472203 can't identify protocol
用strace -p <pid>能查看系统调用, 下面看到的应该是某些socket没有close完成。
[pid 22910] close(1022 <unfinished ...>
发表评论
-
java socket example
2013-07-17 17:08 950ObjectServer.java import java ... -
Eclipse下运行System.getenv()返回null
2012-09-22 18:01 2106在Eclipse下运行System.getenv(" ... -
emma doesn't coverage code with tests with @RunWith(PowerMockRunner.class);
2012-09-14 17:03 2238被测试的class是VINESNodeAddressColle ... -
使用PowerMock导致的ClassCastException
2012-09-07 16:02 2127使用PowerMock时遇到一些莫名其妙的问题,比如: jav ... -
PowerMock incompatible with Mockito issue
2012-09-07 09:55 3771Mock版本如下: Mockito version: 1.8. ... -
一个JTable相关的问题
2012-08-06 18:33 902Exception in thread "AWT-E ... -
Java SPI学习
2012-07-22 16:16 1027Java1.6开始提供了ServiceLoader类来支持SP ... -
用jvmti调试java application: hello world 实现
2012-07-03 11:57 33971. 用C写一个动态链接库, 代码如下: ubuntu@ub ... -
a Java-level deadlock example
2012-05-25 12:08 1889Found one Java-level deadlock: ... -
java Semaphore 实例 -- Hungry Birds
2012-05-09 12:55 2105The Hungry Birds Problem (one ... -
Java Lock 实例 -- 实现简单的tee
2012-05-08 21:36 2916Develop a parallel multithreade ... -
Java synchronized实例 -- Hungry Bird
2012-05-08 21:25 1137Given are n baby birds and one ... -
replaceAll()中正则表达式的应用
2011-10-18 11:13 1283(?i): 忽略大小写; (?m): 在这种模式下,'^'和' ... -
Java集合容器总结(ZZ)
2011-10-11 16:30 1036按数据结构主要有以下几类: 1,内置容器:数组 2,lis ...
相关推荐
社会网络分析(Social Network Analysis,SNA)是社会科学领域的一个重要分支,它利用数学和统计学工具来研究人际关系、组织结构以及社会系统中的互动模式。 社会网络的基本构成元素包括节点(Nodes)和边(Edges)...
java基础 java_leetcode题解之All Nodes Distance K in Binary Tree.java
Network coding is a data transmission technique which allows intermediate nodes in a network to re-code data in transit. In contrast to traditional network communication where a node repeats incoming ...
nodes.dat文件是kad网络中存储节点信息的数据文件,它包含了一系列节点的标识符(ID)和它们的网络地址(IP地址和端口号)。在本篇详解中,我们将深入探讨如何对kad协议中的nodes.dat文件进行抓包分析,以及从这些...
c c语言_leetcode 0024_swap_nodes_in_pairs.zip
demand for service in a network. The p-median model assumes that demand is expressed at nodes and locates facilities to minimize the total distance between such demand nodes and the nearest facility. ...
js js_leetcode题解之24-swap-nodes-in-pairs.js
c c语言_leetcode 0025_reverse_nodes_in_k_group.zip
c语言入门 C语言_leetcode题解之24-swap-nodes-in-pairs.c
Power management is an important concern in sensor networks, because a tethered energy infrastructure is usually not available and an obvious concern is to use the available battery energy efficiently...
js js_leetcode题解之25-reverse-nodes-in-k-group.js
It automatically tunes itself to achieve optimal performance in a super-large-scale P2P network of up to 5 million nodes, where all messages can be routed within two hops. (4) PB-link Tree, a P2P ...
应用连通图过程中网络传感与控制 by Abubakr Muhammad , Meng Ji , Magnus Egerstedt This paper concerns the problem of controlling mobile nodes in a network in such a way that the resulting graph-encoding...
总结来说,在VB6中使用`TreeView`添加`nodes`涉及的主要步骤包括:创建`nodes`,设置`nodes`的属性(如文本、图标),以及利用事件处理程序实现交互逻辑。理解并熟练运用这些知识点,你就能自如地构建出功能丰富的`...