| Faced the same error in freestyle job when evninject is set twice: in General section of job config and in a build step. with 50% chance build stuck on envinject build step, fills heap memory with an int[] objects, gc reaches overhead threshold, and Full GC runs frequently. Workaround: 1. kill problem thread through javamelody (Monitoring Plugin,) in our case it was in RUNNING state on:
at java.util.Arrays.copyOf(Arrays.java:3332)
2. Move all envinject parametes into one call (we have move all into buld step) |