情况描述:
客户端突然间无法上传图片
错误信息:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
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
解决办法:
1
2
3
4
5
6
|
vi /etc/security/limits .conf
root soft nofile 65536 root hard nofile 65536 root soft nproc 16384 root hard nproc 16384 关掉远程连接工具 重新连接 |
查看limits大小
1
2
3
4
5
6
7
8
9
10
11
12
|
[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
|
本文转自 xinsir999 51CTO博客,原文链接:http://blog.51cto.com/xinsir/1600691,如需转载请自行联系原作者