bojiangzhou / lyyzoo-fastdfs-java Goto Github PK
View Code? Open in Web Editor NEWFastDFS Client Java API
FastDFS Client Java API
连接池里的trackerServer如果失效了(服务器重启等原因),因为没有销毁无效的连接,再获取到这个trackerServer来上传文件就会报错,抛出异常后没有将该连接归还或销毁,连接池中这个连接一直处于被使用状态,测试发现这样的连接占满连接池后,点上传文件服务器没有响应了(我也不太懂)
1.TrackerServerFactory类应该实现destroyObject(PooledObject p)方法
@OverRide
public void destroyObject(PooledObject p) throws Exception {
p.getObject().close();
}
2. trackerServerPool在生成的时候增加AbandonedConfig配置
3.poolConfig增加maxWaitMillis配置,它的默认值为-1,一直waiting,所有导致假死
TrackerServer trackerServer = TrackerServerPool.borrowObject();
StorageClient1 storageClient = new StorageClient1(trackerServer, null);
为什么每一个StorageClient1 new 的时候,storageServer这里都是写的null
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.