共 12 篇文章 |
|
接下来,正常情况应该是使用该socket的应用负责发出关闭这个socket的命令,然后这个socket向远端节点发出FIN,并进入正常关闭程序,直到socket完全关闭。client server<ESTABLISHED> <ESTABLISHED>--> client sends <FIN> --><FIN_WAIT_1><CLOSE_WAIT><-- server sends <ACK> <--<FIN_WAIT... 阅2957 转6 评0 公众公开 10-01-02 16:35 |
It is true, however, TIME_WAIT and CLOSE_WAIT are the most confusing two among TCP''s 11 states (CLOSED, LISTEN, SYN_SENT, SYN_RECV, ESTABLISHED, CLOSE_WAIT, LAST_ACK, FIN_WAIT1, FIN_WAIT2, CLOSING, and TIME_WAIT), which are displayed by netstat(1).CLOSE_WAIT happens when an end has received a FIN segment from... 阅289 转0 评0 公众公开 10-01-02 16:32 |
阅329 转0 评0 公众公开 10-01-02 15:54 |
tcp_keepalive_time = 7200 seconds (2 hours)tcp_keepalive_probes = 9tcp_keepalive_intvl = 75 seconds.sysctl -w net.ipv4.tcp_keepalive_time=30sysctl -w net.ipv4.tcp_keepalive_probes=2sysctl -w net.ipv4.tcp_keepalive_intvl=2. 阅4991 转12 评0 公众公开 09-12-31 16:32 |
net.ipv4.tcp_syncookies = 1 表示开启SYN Cookies。net.ipv4.tcp_tw_recycle = 1 表示开启TCP连接中TIME-WAIT sockets的快速回收,默认为0,表示关闭。net.ipv4.tcp_keepalive_time = 1200 表示当keepalive起用的时候,TCP发送keepalive消息的频度。net.ipv4.tcp_max_tw_buckets = 5000 表示系统同时保持TIME_WAIT套接字的最大数量,如果超过... 阅1913 转7 评0 公众公开 09-12-31 16:32 |
3.解读:A.CPU问题:下面几列需要被察看,以确定cpu是否有问题 Processes in the run queue (procs r) User time (cpu us) System time (cpu sy) Idle time (cpu id) 问题情况: 1.) 如果processes in run queue (procs r)的数量远大于系统中cpu的数量,将会使系统便慢。 阅314 转2 评0 公众公开 09-12-25 12:05 |
Buffer和Cache的区别--rainnyzhong的博客缓存(cached)是把读取过的数据保存起来,重新读取时若命中(找到需要的数据)就不要去读硬盘了,若没有命中就读硬盘。简单来说,buffer是即将要被写入磁盘的,而cache是被从磁盘中读出来的。buffer是由各种进程分配的,被用在如输入队列等方面,一个简单的例子如某个进程要求有多个字段读入,在所有字... 阅86 转8 评0 公众公开 09-12-25 12:04 |
vmstat详解_思无涯vmstat介绍.Procs-r: 运行的和等待(CPU时间片)运行的进程数,这个值也可以判断是否需要增加CPU(长期大于1)-b: 处于不可中断状态的进程数,常见的情况是由I/O引起的。SWAP-si:交换内存使用,由磁盘调入内存-so:交换内存使用,由内存调入磁盘内存够用的时候,这2个值都是0,如果这2个值长期大于0时,系统性能会受到影响,磁... 阅765 转8 评0 公众公开 09-12-25 12:03 |
Monitoring Virtual Memory with vmstat.How Virtual Memory WorksPhysical memory—the actual RAM installed—is a finite resource on any system. The Linux memory handler manages the allocation of that limited resource by freeing portions of physical memory when possible.Memory pages belonging to an idle application are be... 阅271 转0 评0 公众公开 09-12-25 11:58 |
当内存的需求大于RAM的数量,服务器启动了虚拟内存机制,通过虚拟内存,可以将RAM段移到SWAP DISK的特殊磁盘段上,这样会 出现虚拟内存的页导出和页导入现象,页导出并不能说明RAM瓶颈,虚拟内存系统经常会对内存段进行页导出,但页导入操作就表明了服务器需要更多的内存了, 页导入需要从SWAP DISK上将内存段复制回RAM,导致服务器速度变慢。f... 阅254 转1 评0 公众公开 09-12-25 11:50 |