Today's test Memcache connection error
Schoonersockiopool-attempting to get Sockio from uninitialized pool!
The reason for the error should be the connection pool that did not initialize the memcachedclient, but the connection pool was initialized,
Sockiopool pool = sockiopool.getinstance ();
if (pool = = null) {
log.error ("Failed to Sockiopool.getinstance");
}
Pool.setservers (p.servers);
if (p.weights!= null) pool.setweights (p.weights);
if (p.initconn!= null) pool.setinitconn (p.initconn);
if (p.minconn!= null) pool.setminconn (p.minconn);
if (p.maxconn!= null) pool.setmaxconn (p.maxconn);
if (p.buffersize!= null) pool.setbuffersize (p.buffersize);
if (p.maxidle!= null) pool.setmaxidle (p.maxidle);
Initialize and start the connection pool
pool.initialize ();
Mccclient = new Memcachedclient (label);Breakpoint to new memcachedclient found connection pool did not refresh, finally found the problem, sockiopool.getinstance (), should also add alias,
The correct is sockiopool.getinstance (label);