max_connections value? and the connection pool max size?
Could it be that you're hitting the pool/db limits?
--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/5dd86326-8b29-4be5-bb6a-71edaeab7024%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
public class DisposableRedisConnection {
private RedisClient redisClient = null;
public Single<RedisClient> create(Vertx vertx, JsonObject conf, Logger logger){
try{
redisClient = RedisClient.create(vertx, new RedisOptions(conf));
}catch(Throwable t){
System.out.println("DisposableRedisConnection: "+t);
logger.error(new LoggerObject(this.getClass().getName()).setErrorStatus(t).setSubject(this.getClass().getName()));
}
return Single.just(redisClient);
}
public void dispose(){
if(redisClient != null){
redisClient.rxClose();
redisClient = null;
}
}
}
Single.using(DisposableRedisConnection::new, f -> f.create(vertx, redisConfigArray.getJsonObject(0), logger), f -> f.dispose()).subscribe( redisClient->{ ...}
There are no pools in Redis. What do you mean that you increased it to 50?
Sorry, we need a reproducer otherwise I've no idea what is going on.
mvn clean installjava -Xmx4g -Xms4g -jar target/redistest.0.0-fat.jar -conf src/main/resources/config/config-fr-postgres-new.json
sh $GATLING_HOME/bin/gatling.sh