Lock contention in Groovy Shell interpreter under high load
问题 We are evaluating GroovyShell interpreter (v2.4) in our application for dynamically executing standard Java syntax. Earlier, we were using Java BeanShell Interpreter for it, but it has an issue under high load which prompted us to look for an alternative such as Groovy. Sample Java Code static String script = "int y = x * x; System.out.println(\"** value of y ** :: \" + y ); "; GroovyShell gs = new GroovyShell(); Script evalScript = gs.parse("void evalMethod() {" + script + "}"); // bind