
windows server
kawayime
这个作者很懒,什么都没留下…
展开
-
netstat大量time_wait连接
netstat下time_wait状态的tcp连接: 1.这是一种处于连接完全关闭状态前的状态; 2.通常要等上4分钟(windows server)的时间才能完全关闭; 3.这种状态下的tcp连接占用句柄与端口等资源,服务器也要为维护这些连接状态消耗资源; 4.解决这种time_wait的tcp连接只有让服务器能够快速回收和重用那些TIME_WAIT的资源:修改注册表[HKEY_LOCA...原创 2012-04-28 16:40:38 · 1156 阅读 · 0 评论 -
windows下定期清理日志文件
FOR /F "skip=5 delims=" %%G IN ('dir /b /O-D /A-D') DO del "%%G" Will delete all files except the 5 newest ones. I couldn't find a one-liner to keep all files newer than 5 days so for that you ...原创 2013-05-24 10:20:44 · 1207 阅读 · 0 评论