diff --git a/core/src/main/java/lucee/runtime/engine/CFMLEngineImpl.java b/core/src/main/java/lucee/runtime/engine/CFMLEngineImpl.java index f1f988d370..cafb8dd317 100644 --- a/core/src/main/java/lucee/runtime/engine/CFMLEngineImpl.java +++ b/core/src/main/java/lucee/runtime/engine/CFMLEngineImpl.java @@ -223,36 +223,6 @@ public static CFMLEngineFactory FACTORY() { } private CFMLEngineImpl(CFMLEngineFactory factory, BundleCollection bc) { - String dumpPath = Caster.toString(SystemUtil.getSystemPropOrEnvVar("lucee.dump.threads", null), null); - if (!StringUtil.isEmpty(dumpPath, true)) { - int interval = Caster.toIntValue(SystemUtil.getSystemPropOrEnvVar("lucee.dump.threads.interval", null), 100); - long start = System.currentTimeMillis(); - long max = Caster.toIntValue(SystemUtil.getSystemPropOrEnvVar("lucee.dump.threads.max", null), 10000); - - // Create a new thread to run the task - Thread thread = new Thread(() -> { - while (true) { - try { - if ((start + max) < System.currentTimeMillis()) { - break; - } - // Call the dumpThreadPositions method - Controler.dumpThreadPositions(dumpPath); - - // Pause for the specified interval - SystemUtil.sleep(interval); - } - catch (IOException e) { - e.printStackTrace(); - SystemUtil.sleep(1000); - } - } - }); - - // Start the thread - thread.start(); - } - FACTORY = this.factory = factory; this.bundleCollection = bc; diff --git a/core/src/main/java/lucee/runtime/engine/Controler.java b/core/src/main/java/lucee/runtime/engine/Controler.java index 0122d003b7..187b90879d 100755 --- a/core/src/main/java/lucee/runtime/engine/Controler.java +++ b/core/src/main/java/lucee/runtime/engine/Controler.java @@ -34,7 +34,6 @@ import lucee.commons.io.log.Log; import lucee.commons.io.log.LogUtil; import lucee.commons.io.res.Resource; -import lucee.commons.io.res.ResourcesImpl; import lucee.commons.io.res.filter.ExtensionResourceFilter; import lucee.commons.io.res.filter.ResourceFilter; import lucee.commons.io.res.util.ResourceUtil; @@ -197,8 +196,7 @@ else if (time > TIMEOUT) { } } - public static void dumpThreadPositions(String path) throws IOException { - Resource target = ResourcesImpl.getFileResourceProvider().getResource(path); + public static void dumpThreadPositions(Resource target) throws IOException { StackTraceElement[] stes; String line; @@ -238,10 +236,6 @@ private static void dumpThreads() { } - public static void main(String[] args) throws IOException { - dumpThreadPositions("/Users/mic/Tmp3/tmp/data.jsonl"); - } - private void control(CFMLFactoryImpl[] factories, boolean firstRun, Log log) { long now = System.currentTimeMillis(); boolean do10Seconds = last10SecondsInterval + 10000 < now; diff --git a/loader/build.xml b/loader/build.xml index f43a7b276e..ee95045d89 100644 --- a/loader/build.xml +++ b/loader/build.xml @@ -2,7 +2,7 @@ - + diff --git a/loader/pom.xml b/loader/pom.xml index ec9daa3721..ca74f75ecf 100644 --- a/loader/pom.xml +++ b/loader/pom.xml @@ -3,7 +3,7 @@ org.lucee lucee - 6.2.0.218-SNAPSHOT + 6.2.0.219-SNAPSHOT jar Lucee Loader Build