diff --git a/integrasjon/rest-klient/src/main/java/no/nav/vedtak/felles/integrasjon/rest/RestClientSupportProdusent.java b/integrasjon/rest-klient/src/main/java/no/nav/vedtak/felles/integrasjon/rest/RestClientSupportProdusent.java index da52e9148..5179f9b7f 100644 --- a/integrasjon/rest-klient/src/main/java/no/nav/vedtak/felles/integrasjon/rest/RestClientSupportProdusent.java +++ b/integrasjon/rest-klient/src/main/java/no/nav/vedtak/felles/integrasjon/rest/RestClientSupportProdusent.java @@ -123,11 +123,10 @@ public static List
defaultHeaders() { } public static PoolingHttpClientConnectionManager connectionManager() { - ConnectionConfig defaultConnectionConfig = defaultConnectionConfig(); PoolingHttpClientConnectionManager connManager = new PoolingHttpClientConnectionManager(55, TimeUnit.MINUTES); connManager.setMaxTotal(100); - connManager.setDefaultConnectionConfig(defaultConnectionConfig); - connManager.setValidateAfterInactivity(100); + connManager.setDefaultConnectionConfig(defaultConnectionConfig()); + connManager.setValidateAfterInactivity(30000); new PoolingHttpClientConnectionManagerMetricsBinder(connManager, "jersey-pool").bindTo(Metrics.globalRegistry); return connManager; }