More CR tweaks.
MODIFY
dd-java-agent/agent-tooling/src/main/java/datadog/trace/agent/tooling/AgentTooling.java
dd-java-agent/agent-tooling/src/main/java/datadog/trace/agent/tooling/AgentTooling.java
@@ -2,6 +2,11 @@ package datadog.trace.agent.tooling;
import datadog.trace.bootstrap.WeakMap;
+/**
+ * This class contains class references for objects shared by the agent installer as well as muzzle
+ * (both compile and runtime). Extracted out from AgentInstaller to begin separating some of the
+ * logic out.
+ */
public class AgentTooling {
private static final Cleaner CLEANER = new Cleaner();

MODIFY
dd-java-agent/agent-tooling/src/main/java/datadog/trace/agent/tooling/DDCachingPoolStrategy.java
dd-java-agent/agent-tooling/src/main/java/datadog/trace/agent/tooling/DDCachingPoolStrategy.java
@@ -45,7 +45,7 @@ public class DDCachingPoolStrategy implements PoolStrategy {
synchronized (key) {
cache = typePoolCache.get(key);
if (null == cache) {
- cache = EvictingCacheProvider.withObjectType(cleaner, 10, TimeUnit.SECONDS);
+ cache = EvictingCacheProvider.withObjectType(cleaner, 1, TimeUnit.MINUTES);
typePoolCache.put(key, cache);
}
}
@@ -64,7 +64,7 @@ public class DDCachingPoolStrategy implements PoolStrategy {
final Cleaner cleaner, final long expireDuration, final TimeUnit unit) {
cache =
CacheBuilder.newBuilder()
- .initialCapacity(500)
+ .initialCapacity(1000)
.maximumSize(10000)
.expireAfterAccess(expireDuration, unit)
.build();

More CR tweaks.