opentelemetry-java-instrume.../javaagent-tooling
jason plumb 7e187f78e7
Add additional groovy classloaders to ignore list. (#7460)
Groovy apps that parse a lot of scripts can generate a lot of
classloaders that will ultimately end up causing the agent to cache a
LOT of memory. For example, some java code that uses the Gremlin groovy
script engine to dynamically create and execute scripts can reproduce
this:

```
    GremlinGroovyScriptEngine engine = new GremlinGroovyScriptEngine();
    Bindings bindings = new SimpleBindings();
    TinkerGraph graph = TinkerGraph.open();
    GraphTraversalSource g = graph.traversal();
    bindings.put("g", g);
    for (int i = 0; i < 100000; i++) {
      engine.eval("g.V(" + i + ")", bindings);
      if(i % 250 == 0) System.out.println("Iteration " + i);
    }
```

I have manually confirmed that ignoring the groovy classloaders (in this
PR) prevent the agent from exploding the cache and holding onto memory.
I could use another brain in deciding if there could be other unintended
consequences.
2023-02-23 09:39:54 -08:00
..
javaagent-tooling-java9 Convert all logging statements from slf4j to jul (#5674) 2022-03-25 10:02:51 -07:00
src Add additional groovy classloaders to ignore list. (#7460) 2023-02-23 09:39:54 -08:00
build.gradle.kts Use contrib AwsXrayPropagator (#7234) 2022-11-21 11:31:17 -08:00