查看nio

:top
 1199  2015-01-14 10:29:14 cafe :memstat -w
 1200  2015-01-14 10:38:42 cafe :vmstat
 1201  2015-01-14 12:09:12 cafe :ll
 1202  2015-01-14 12:09:15 cafe :ls
 1203  2015-01-14 15:12:47 cafe :ps -ef
 1204  2015-01-14 15:12:58 cafe :cd /opt/cafe/tomcat6_www
 1205  2015-01-14 15:12:59 cafe :ls
 1206  2015-01-14 15:13:07 cafe :cd conf/
 1207  2015-01-14 15:13:07 cafe :ls
 1208  2015-01-14 15:13:11 cafe :cat server.xml 
 1209  2015-01-14 15:13:42 cafe :vim server.xml 
 1210  2015-01-14 15:16:32 cafe :free -m
 1211  2015-01-14 20:16:37 cafe :netstat -n
 1212  2015-01-14 20:16:55 cafe :cat server.xml 
 1213  2015-01-14 20:18:04 cafe :ps -elf | grep java
 1214  2015-01-14 20:18:16 cafe :netstat -n 
 1215  2015-01-14 20:18:35 cafe :netstat -np | grep TIME_WAIT
 1216  2015-01-14 20:19:16 cafe :netstat -nl 
 1217  2015-01-14 20:19:23 cafe :netstat -nlp 
 1218  2015-01-14 20:19:55 cafe :ps -ef | grep ngnix
 1219  2015-01-14 20:20:02 cafe :ps -ef | grep nginx
 1220  2015-01-14 20:20:24 cafe :netstat -nlp 
 1221  2015-01-14 20:20:53 cafe :ll /proc/25290/fdinfo
 1222  2015-01-14 20:20:58 cafe :less /proc/25290/fdinfo
 1223  2015-01-14 20:21:15 cafe :ll /proc/25290/fd



l-wx------ 1 cafe cafe 64 1月  14 20:18 8 -> /opt/cafe/tomcat6_api/logs/localhost.2015-01-13.log (deleted)
lr-x------ 1 cafe cafe 64 1月  14 20:18 80 -> pipe:[834741110]
l-wx------ 1 cafe cafe 64 1月  14 20:18 81 -> pipe:[834741110]
lrwx------ 1 cafe cafe 64 1月  14 20:18 82 -> anon_inode:[eventpoll]
lr-x------ 1 cafe cafe 64 1月  14 20:18 83 -> pipe:[834741111]
l-wx------ 1 cafe cafe 64 1月  14 20:18 84 -> pipe:[834741111]
lrwx------ 1 cafe cafe 64 1月  14 20:18 85 -> anon_inode:[eventpoll]
lr-x------ 1 cafe cafe 64 1月  14 20:18 86 -> pipe:[834741112]
l-wx------ 1 cafe cafe 64 1月  14 20:18 87 -> pipe:[834741112]
lrwx------ 1 cafe cafe 64 1月  14 20:18 88 -> anon_inode:[eventpoll]
lr-x------ 1 cafe cafe 64 1月  14 20:18 89 -> pipe:[834741113]
l-wx------ 1 cafe cafe 64 1月  14 20:18 9 -> /opt/cafe/tomcat6_api/logs/manager.2015-01-13.log (deleted)
l-wx------ 1 cafe cafe 64 1月  14 20:18 90 -> pipe:[834741113]
lrwx------ 1 cafe cafe 64 1月  14 20:18 91 -> anon_inode:[eventpoll]
lr-x------ 1 cafe cafe 64 1月  14 20:18 92 -> pipe:[834741114]
l-wx------ 1 cafe cafe 64 1月  14 20:18 93 -> pipe:[834741114]
lrwx------ 1 cafe cafe 64 1月  14 20:18 94 -> anon_inode:[eventpoll]
lr-x------ 1 cafe cafe 64 1月  14 20:18 95 -> pipe:[834741115]


20:24 [[email protected]]$ netstat -nlp           
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name   
tcp        0      0 0.0.0.0:80                  0.0.0.0:*                   LISTEN      -                   
tcp        0      0 0.0.0.0:22022               0.0.0.0:*                   LISTEN      -                   
tcp        0      0 127.0.0.1:199               0.0.0.0:*                   LISTEN      -                   
tcp        0      0 :::8109                     :::*                        LISTEN      25596/java          
tcp        0      0 ::ffff:127.0.0.1:8205       :::*                        LISTEN      25290/java          
tcp        0      0 ::ffff:127.0.0.1:8305       :::*                        LISTEN      26238/java          
tcp        0      0 :::8209                     :::*                        LISTEN      25290/java          
tcp        0      0 :::8081                     :::*                        LISTEN      25290/java          
tcp        0      0 :::8082                     :::*                        LISTEN      25596/java          
tcp        0      0 :::8083                     :::*                        LISTEN      26238/java          
tcp        0      0 :::8309                     :::*                        LISTEN      26238/java          
tcp        0      0 :::11012                    :::*                        LISTEN      10979/java          
tcp        0      0 :::22022                    :::*                        LISTEN      -                   
tcp        0      0 ::ffff:127.0.0.1:8105       :::*                        LISTEN      25596/java          
udp        0      0 0.0.0.0:33037               0.0.0.0:*                               -                   
udp        0      0 0.0.0.0:161                 0.0.0.0:*                               -                   
Active UNIX domain sockets (only servers)
Proto RefCnt Flags       Type       State         I-Node PID/Program name    Path
unix  2      [ ACC ]     STREAM     LISTENING     8809   -                   @/com/ubuntu/upstart
unix  2      [ ACC ]     STREAM     LISTENING     861337792 25596/java          /tmp/.java_pid25596.tmp


<Connector  port="8082" maxHttpHeaderSize="8192" protocol="org.apache.coyote.http11.Http11NioProtocol" maxThreads="1000" minSpareThreads="100" maxSpareThreads="300" enableLookups="false" redirectPort="8143" acceptCount="500" connectionTimeout="20000" disableUploadTimeout="true" URIEncoding="UTF-8"/>


Tomcat 6 支持 NIO -- Tomcat的四种基于HTTP协议的Connector性能比较
http://city-moon.iteye.com/blog/578282

猜你喜欢

转载自wangqiaowqo.iteye.com/blog/2175946
NIO