- 论坛徽章:
- 2
|
本帖最后由 yxs1112003 于 2016-06-01 11:47 编辑
yxs1112003 发表于 2016-05-31 19:08 ![]()
这么传好像特别慢啊,我是上传的时候每次都获取一个新的storageClient,我是这样多线程上传的,不过这样并发 ...
报的错误,异常解释如下http:// frenchmay.iteye.com/ blog/ 253123
- 2016-06-0111:39:41,554[ERROR] pool-1-thread-49:com.common.impl.FDFSBaseDaoImpl.upload(87)
- java.net.SocketException: Software caused connection abort: socket write error
- at java.net.SocketOutputStream.socketWrite0(Native Method)
- at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109)
- at java.net.SocketOutputStream.write(SocketOutputStream.java:153)
- at org.csource.fastdfs.UploadStream.send(UploadStream.java:55)
- at org.csource.fastdfs.StorageClient.do_upload_file(StorageClient.java:972)
- at org.csource.fastdfs.StorageClient.upload_file(StorageClient.java:192)
- at org.csource.fastdfs.StorageClient.upload_file(StorageClient.java:153)
- at org.csource.fastdfs.StorageClient.upload_file(StorageClient.java:126)
- at com.common.impl.FDFSBaseDaoImpl.upload(FDFSBaseDaoImpl.java:80)
- at com.common.impl.FDFSBaseDaoImpl.upload(FDFSBaseDaoImpl.java:63)
- at com.service.impl.FDFSServiceImpl.upload(FDFSServiceImpl.java:20)
- at com.multi.UploadThread.run(UploadThread.java:21)
- at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
- at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
- at java.lang.Thread.run(Thread.java:745)
- 2016-06-0111:39:41,554[ERROR] pool-1-thread-285:com.common.impl.FDFSBaseDaoImpl.upload(87)
- java.io.IOException: recv package size -1 != 10
- at org.csource.fastdfs.ProtoCommon.recvHeader(ProtoCommon.java:214)
- at org.csource.fastdfs.ProtoCommon.recvPackage(ProtoCommon.java:250)
- at org.csource.fastdfs.StorageClient.do_upload_file(StorageClient.java:976)
- at org.csource.fastdfs.StorageClient.upload_file(StorageClient.java:192)
- at org.csource.fastdfs.StorageClient.upload_file(StorageClient.java:153)
- at org.csource.fastdfs.StorageClient.upload_file(StorageClient.java:126)
- at com.common.impl.FDFSBaseDaoImpl.upload(FDFSBaseDaoImpl.java:80)
- at com.common.impl.FDFSBaseDaoImpl.upload(FDFSBaseDaoImpl.java:63)
- at com.service.impl.FDFSServiceImpl.upload(FDFSServiceImpl.java:20)
- at com.multi.UploadThread.run(UploadThread.java:21)
- at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
- at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
- at java.lang.Thread.run(Thread.java:745)
- 2016-06-0111:39:41,950[INFO] pool-1-thread-585:com.common.impl.FDFSBaseDaoImpl.upload(85) Meta [groupName=group1, upPath=M00/00/86/rBsMQFdOVsqAG7KiAABFapaYBmE906.png]
- 2016-06-0111:39:41,554[ERROR] pool-1-thread-335:com.common.impl.FDFSBaseDaoImpl.upload(87)
- java.net.SocketException: Software caused connection abort: socket write error
- at java.net.SocketOutputStream.socketWrite0(Native Method)
- at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109)
- at java.net.SocketOutputStream.write(SocketOutputStream.java:153)
- at org.csource.fastdfs.UploadStream.send(UploadStream.java:55)
- at org.csource.fastdfs.StorageClient.do_upload_file(StorageClient.java:972)
- at org.csource.fastdfs.StorageClient.upload_file(StorageClient.java:192)
- at org.csource.fastdfs.StorageClient.upload_file(StorageClient.java:153)
- at org.csource.fastdfs.StorageClient.upload_file(StorageClient.java:126)
- at com.common.impl.FDFSBaseDaoImpl.upload(FDFSBaseDaoImpl.java:80)
- at com.common.impl.FDFSBaseDaoImpl.upload(FDFSBaseDaoImpl.java:63)
- at com.service.impl.FDFSServiceImpl.upload(FDFSServiceImpl.java:20)
- at com.multi.UploadThread.run(UploadThread.java:21)
- at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
- at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
- at java.lang.Thread.run(Thread.java:745)
- 2016-06-0111:39:41,553[INFO] pool-1-thread-540:com.common.impl.FDFSBaseDaoImpl.upload(85) Meta [groupName=group1, upPath=M00/00/86/rBsMQFdOVsmAdRdiAABFapaYBmE981.png]
- 2016-06-0111:39:41,553[ERROR] pool-1-thread-224:com.common.impl.FDFSBaseDaoImpl.upload(87)
- java.net.SocketException: Software caused connection abort: socket write error
- at java.net.SocketOutputStream.socketWrite0(Native Method)
- at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109)
- at java.net.SocketOutputStream.write(SocketOutputStream.java:153)
- at org.csource.fastdfs.UploadStream.send(UploadStream.java:55)
- at org.csource.fastdfs.StorageClient.do_upload_file(StorageClient.java:972)
- at org.csource.fastdfs.StorageClient.upload_file(StorageClient.java:192)
- at org.csource.fastdfs.StorageClient.upload_file(StorageClient.java:153)
- at org.csource.fastdfs.StorageClient.upload_file(StorageClient.java:126)
- at com.common.impl.FDFSBaseDaoImpl.upload(FDFSBaseDaoImpl.java:80)
- at com.common.impl.FDFSBaseDaoImpl.upload(FDFSBaseDaoImpl.java:63)
- at com.service.impl.FDFSServiceImpl.upload(FDFSServiceImpl.java:20)
- at com.multi.UploadThread.run(UploadThread.java:21)
- at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
- at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
- at java.lang.Thread.run(Thread.java:745)
- 2016-06-0111:39:41,553[INFO] pool-1-thread-550:com.common.impl.FDFSBaseDaoImpl.upload(85) Meta [groupName=group1, upPath=M00/00/86/rBsMQFdOVsmAbY_SAABFapaYBmE342.png]
- 2016-06-0111:39:41,552[INFO] pool-1-thread-542:com.common.impl.FDFSBaseDaoImpl.upload(85) Meta [groupName=group1, upPath=M00/00/86/rBsMQFdOVsmAaFklAABFapaYBmE183.png]
- 2016-06-0111:39:41,552[ERROR] pool-1-thread-346:com.common.impl.FDFSBaseDaoImpl.upload(87)
- java.io.IOException: recv package size -1 != 10
复制代码 |
|