TFS-报错篇
情况描述:
客户端突然间无法上传图片
错误信息:
01-07 11:23:19,761 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[DEBUG] Invoking init method ‘init‘ on bean with name ‘tfsManager‘ 2015-01-07 11:23:19,761 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[DEBUG] Finished creating instance of bean ‘tfsManager‘ 2015-01-07 11:23:19,762 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[DEBUG] Returning cached instance of singleton bean ‘tfsManager‘ 2015-01-07 11:23:19,763 [com.taobao.common.tfs.impl.GcWorker]-[INFO] gc path directory not exist: C:\Users\ADMINI~1\AppData\Local\Temp\TFSlocalkeyDIR\gc 2015-01-07 11:23:19,764 [com.taobao.common.tfs.impl.GcWorker]-[INFO] gc path directory not exist: C:\Users\ADMINI~1\AppData\Local\Temp\TFSlocalkeyDIR 2015-01-07 11:23:19,764 [com.taobao.common.tfs.impl.CacheMetric]-[WARN] CACHE STATUS. hit: 0 miss: 0 remove: 0 2015-01-07 11:23:19,767 [com.taobao.common.tfs.impl.ClientManager]-[WARN] [ tfs client started (V2.1.1) ] 2015-01-07 11:23:19,829 [com.taobao.common.tfs.comm.TfsClient]-[DEBUG] send request [1],time is:1420600999829 2015-01-07 11:23:19,854 [com.taobao.common.tfs.comm.TfsClient]-[DEBUG] put response [1],time is:1420600999854 2015-01-07 11:23:19,854 [com.taobao.common.tfs.comm.TfsClient]-[DEBUG] return response [1],time is:1420600999854 2015-01-07 11:23:19,854 [com.taobao.common.tfs.impl.ClientManager]-[DEBUG] send packet [1] timeout: 10000, used: 25 (ms) 2015-01-07 11:23:19,856 [com.taobao.common.tfs.comm.TfsClient]-[DEBUG] send request [2],time is:1420600999856 2015-01-07 11:23:19,867 [com.taobao.common.tfs.comm.TfsClient]-[DEBUG] put response [2],time is:1420600999867 2015-01-07 11:23:19,867 [com.taobao.common.tfs.comm.TfsClient]-[DEBUG] return response [2],time is:1420600999867 2015-01-07 11:23:19,867 [com.taobao.common.tfs.impl.ClientManager]-[DEBUG] send packet [2] timeout: 10000, used: 11 (ms) 2015-01-07 11:23:19,868 [com.taobao.common.tfs.impl.TfsSession]-[ERROR] call GetBlockInfoMessage failed:-5001, error:got error, when get block: 0 mode: 6, result: -5001 information, 221.239.57.154:19832 2015-01-07 11:23:19,868 [com.taobao.common.tfs.DefaultTfsManager]-[ERROR] save fail: 5.jpg=>null,.jpg com.taobao.common.tfs.exception.ErrorStatusException: receive wrong status message, code:[-5001] from /192.168.1.191:8108,errmsg:got error, when get block: 0 mode: 6, result: -5001 information, 221.239.57.154:19832 at com.taobao.common.tfs.impl.TfsSession.getBlockInfoEx(TfsSession.java:317) at com.taobao.common.tfs.impl.TfsSession.getWriteBlockInfo(TfsSession.java:267) at com.taobao.common.tfs.impl.TfsFile.open(TfsFile.java:205) at com.taobao.common.tfs.impl.TfsSmallFile.open(TfsSmallFile.java:59) at com.taobao.common.tfs.DefaultTfsManager.saveFileEx(DefaultTfsManager.java:1078) at com.taobao.common.tfs.DefaultTfsManager.saveFile(DefaultTfsManager.java:1347) at com.taobao.common.tfs.Test.main(Test.java:15) null
启动tfs-ds报错信息:
Too manyopen files
解决办法:
vi/etc/security/limits.conf root soft nofile 65536 root hard nofile 65536 root soft nproc 16384 root hard nproc 16384 关掉远程连接工具 重新连接
查看limits大小
[root@testsecurity]# ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited file size (blocks, -f) unlimited max locked memory (kbytes, -l) unlimited max memory size (kbytes, -m) unlimited open files (-n) 65535 pipe size (512 bytes, -p) 8 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 7168 virtual memory (kbytes, -v) unlimited
本文出自 “精忠报国” 博客,请务必保留此出处http://xinsir.blog.51cto.com/5038915/1600691
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。