-
Enhancement
-
Resolution: Done
-
Major
-
jBPM 6.1.0.Beta2
-
None
The Dashbuilder's MemoryProfiler (https://github.com/droolsjbpm/dashboard-builder/blob/master/modules/dashboard-commons/src/main/java/org/jboss/dashboard/profiler/memory/MemoryProfiler.java) explicitly calls System.gc(), System.runFinalization() and Thread.sleep(10) (twice) in it's 'collectGarbage()'.
IMHO, explicitly calling System.gc() and Thread.sleep() in code is very bad practice. In this case it significantly slowed down the JBoss BPMSuite system because it was doing an enormous amount of (unnecessary) Full GCs.