CommandBox 6.2 slowness with error

Hi @bdw429s

Windows 11 (latest updates)
Lucee 5.4.7

java --version
openjdk 21.0.5 2024-10-15
OpenJDK Runtime Environment OpenLogic-OpenJDK (build 21.0.5+11-adhoc.Administrator.jdk21u)
OpenJDK 64-Bit Server VM OpenLogic-OpenJDK (build 21.0.5+11-adhoc.Administrator.jdk21u, mixed mode, sharing)

With an application that I am using locally, only, as a learning tool for cbSecurity I am seeing significant slowness and an error, after upgrading to the latest CommandBox:

In the last line of the screenshot - you can see that the box prompt has not been returned to me.
(It is the same for the previous two lines, too)

and here is the “About” from within CommandBox:

When running server stop I get the following error;
(And the server remains running)

❯ server stop



ERROR (6.2.0+00826)

timeout [10000 ms] expired while executing [cmd /c tasklist /FI PID eq 24104]


C:\Users\gavin\.CommandBox\cfml\system\services\ServerService.cfc: line 3179
3177:       try{
3178:          if (fileSystemUtil.isWindows() ) {
3179:             cfexecute(name='cmd', arguments='/c tasklist /FI "PID eq #pidStr#"', variable="result", timeout="10");
3180:             if (findNoCase("java", result) > 0 && findNoCase(pidStr, result) > 0) return true;
3181:          } else if (fileSystemUtil.isMac() || fileSystemUtil.isLinux() ) {
called from C:\Users\gavin\.CommandBox\cfml\system\services\ServerService.cfc: line 3210
called from C:\Users\gavin\.CommandBox\cfml\system\modules_app\server-commands\commands\server\stop.cfc: line 59
called from C:\Users\gavin\.CommandBox\cfml\system\services\CommandService.cfc: line 443
called from C:\Users\gavin\.CommandBox\cfml\system\services\CommandService.cfc: line 225
called from C:\Users\gavin\.CommandBox\cfml\system\Shell.cfc: line 865
called from C:\Users\gavin\.CommandBox\cfml\system\Shell.cfc: line 680
called from C:\Users\gavin\.CommandBox\cfml\system\Bootstrap.cfm: line 165

And here is the stacktrace:

lucee.runtime.exp.ApplicationException: timeout [10000 ms] expired while executing [cmd /c tasklist /FI PID eq 24104]
        at lucee.runtime.tag.Execute._execute(Execute.java:250)
        at lucee.runtime.tag.Execute.doEndTag(Execute.java:260)
        at system.services.serverservice_cfc$cf.udfCall8(/commandbox/system/services/ServerService.cfc:3179)
        at system.services.serverservice_cfc$cf.udfCall(/commandbox/system/services/ServerService.cfc)
        at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112)
        at lucee.runtime.type.UDFImpl._call(UDFImpl.java:358)
        at lucee.runtime.type.UDFImpl.call(UDFImpl.java:223)
        at lucee.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:786)
        at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:787)
        at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1776)
        at system.services.serverservice_cfc$cf.udfCall9(/commandbox/system/services/ServerService.cfc:3210)
        at system.services.serverservice_cfc$cf.udfCall(/commandbox/system/services/ServerService.cfc)
        at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112)
        at lucee.runtime.type.UDFImpl._call(UDFImpl.java:358)
        at lucee.runtime.type.UDFImpl.call(UDFImpl.java:223)
        at lucee.runtime.ComponentImpl._call(ComponentImpl.java:698)
        at lucee.runtime.ComponentImpl._call(ComponentImpl.java:586)
        at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1933)
        at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:787)
        at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1776)
        at system.modules_app.server_commands315.commands.server.stop_cfc$cf.udfCall(/commandbox/system/modules_app/server-commands/commands/server/stop.cfc:59)
        at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112)
        at lucee.runtime.type.UDFImpl._call(UDFImpl.java:358)
        at lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:213)
        at lucee.runtime.ComponentImpl._call(ComponentImpl.java:699)
        at lucee.runtime.ComponentImpl._call(ComponentImpl.java:586)
        at lucee.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:1952)
        at lucee.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:866)
        at lucee.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1795)
        at system.services.commandservice_cfc$cf.udfCall1(/commandbox/system/services/CommandService.cfc:443)
        at system.services.commandservice_cfc$cf.udfCall(/commandbox/system/services/CommandService.cfc)
        at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112)
        at lucee.runtime.type.UDFImpl._call(UDFImpl.java:358)
        at lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:213)
        at lucee.runtime.type.scope.UndefinedImpl.callWithNamedValues(UndefinedImpl.java:804)
        at lucee.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:866)
        at lucee.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1795)
        at system.services.commandservice_cfc$cf.udfCall1(/commandbox/system/services/CommandService.cfc:225)
        at system.services.commandservice_cfc$cf.udfCall(/commandbox/system/services/CommandService.cfc)
        at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112)
        at lucee.runtime.type.UDFImpl._call(UDFImpl.java:358)
        at lucee.runtime.type.UDFImpl.call(UDFImpl.java:223)
        at lucee.runtime.ComponentImpl._call(ComponentImpl.java:698)
        at lucee.runtime.ComponentImpl._call(ComponentImpl.java:586)
        at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1933)
        at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:787)
        at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1776)
        at system.shell_cfc$cf.udfCall4(/commandbox/system/Shell.cfc:865)
        at system.shell_cfc$cf.udfCall(/commandbox/system/Shell.cfc)
        at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112)
        at lucee.runtime.type.UDFImpl._call(UDFImpl.java:358)
        at lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:213)
        at lucee.runtime.type.scope.UndefinedImpl.callWithNamedValues(UndefinedImpl.java:804)
        at lucee.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:866)
        at lucee.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1795)
        at system.shell_cfc$cf.udfCall3(/commandbox/system/Shell.cfc:680)
        at system.shell_cfc$cf.udfCall(/commandbox/system/Shell.cfc)
        at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112)
        at lucee.runtime.type.UDFImpl._call(UDFImpl.java:358)
        at lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:213)
        at lucee.runtime.ComponentImpl._call(ComponentImpl.java:699)
        at lucee.runtime.ComponentImpl._call(ComponentImpl.java:586)
        at lucee.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:1952)
        at lucee.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:866)
        at lucee.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1795)
        at users.gavin._commandbox46.cfml.system.bootstrap_cfm$cf.call(/Users/gavin/.CommandBox/cfml/system/Bootstrap.cfm:165)
        at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:1057)
        at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:949)
        at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:930)
        at j3lh5ynvlgtz.call(Unknown Source)
        at lucee.runtime.compiler.Renderer.tag(Renderer.java:107)
        at lucee.runtime.compiler.Renderer.script(Renderer.java:97)
        at lucee.runtime.jsr223.ScriptEngineImpl.eval(ScriptEngineImpl.java:65)
        at lucee.runtime.jsr223.ScriptEngineImpl.eval(ScriptEngineImpl.java:220)
        at cliloader.LoaderCLIMain.execute(LoaderCLIMain.java:339)
        at cliloader.LoaderCLIMain.execute(LoaderCLIMain.java:158)
        at cliloader.LoaderCLIMain.main(LoaderCLIMain.java:595)

After stopping the server via the system tray
I restarted with:
server start --trace --console and here is the result:

 √ | Starting Server
   |------------------------------
   | Site name - MyApp-Local
   | Webroot - C:\Users\gavin\Workspace\MyApp\
   | Site config file - C:\Users\gavin\Workspace\MyApp\/server.json
   | Contacting ForgeBox to determine the latest & greatest version of [lucee-light 5]...  Use an exact 'cfengine' version to skip this check.
   | OK, [lucee-light 5.4.7+2] it is!
   | WAR/zip archive already installed.
   | Server start command:
   |     C:\Users\gavin\.CommandBox\serverJREs\openjdk21_jre_x64_windows_hotspot_jdk-21.0.6+7\bin\java.exe
   |     -DAPP_HOME=http://127.0.0.1
   |     -DDB_DATABASE=MyApp
   |     -DDB_CONNECTIONTIMEOUT=1
   |     -DDB_LIVETIMEOUT=10
   |     -DENVIRONMENT=development
   |     -DDB_USER=MyApp_User
   |     -DJWT_SECRET=
   |     -DLUCEE_FULL_NULL_SUPPORT=TRUE
   |     -DCFCONFIG_DEVELOPERMODE=true
   |     -DDB_PORT=5432
   |     -DS3_DOMAIN=amazonaws.com
   |     -DS3_REGION=us-east-1
   |     -DDB_SCHEMA=public
   |     -DDB_CLOB=TRUE
   |     -DS3_SECRET_KEY=
   |     -DDB_DRIVER=PostgreSql
   |     -DDB_BLOB=TRUE
   |     -DDB_VALIDATE=TRUE
   |     -DDB_CLASS=org.postgresql.Driver
   |     -DDB_STORAGE=FALSE
   |     -DAPPNAME=MyApp
   |     -DLUCEE_EXTENSIONS=D062D72F-F8A2-46F0-8CBC91325B2F067B,671B01B8-B3B3-42B9-AC055A356BED5281;version=42.7.4,CED6227E-0F49-6367-A68D21AACA6B07E8,37C61C0A-5D7E-4256-8572639BE0CF5838,7891D723-8F78-45F5-
   | B7E333A22F8467CA;version=1.0.0.6
   |     -DDB_HOST=127.0.0.1
   |     -DDB_BUNDLEVERSION=42.7.4
   |     -DDB_PASSWORD=MyApp
   |     -DDB_BUNDLENAME=org.postgresql.jdbc
   |     -DDB_CONNECTIONLIMIT=-1
   |     -DS3_ACCESS_KEY=
   |     -DDB_TIMEZONE=GMT
   |     -DCFCONFIG_WEB_BINDINGS_SSL_LISTEN=0.0.0.0:443
   |     -DCFCONFIG_WEB_BINDINGS_HTTP_LISTEN=0.0.0.0:80
   |     -DCFCONFIG_LUCEE_ADMIN_PASSWORD=MyApp
   |     -DDB_CONNECTIONSTRING=jdbc:postgresql://127.0.0.1/MyApp
   |     -Xmx4G
   |     -cp C:\Users\gavin\.CommandBox\lib\runwar-legacy-5.1.1.jar runwar.Start C:/Users/gavin/.CommandBox/server/D50B8BB6CBC920D007B9CBADBE65A990-MyApp-Local/lucee-light-5.4.7.2/serverInfo.json
   | The server for C:\Users\gavin\Workspace\MyApp\ is starting on http://127.0.0.1:80 ...
   |------------------------------
   | √ | Installing package [java:openjdk21:lockVersion]
   |   |--------------------------------------------------------------
   |   | Installing [openjdk21]
   |   | Java version:              openjdk21
   |   | Java type:                 jre
   |   | Java arch:                 x64
   |   | Java os:                   windows
   |   | Java jvm-implementation:   hotspot
   |   | Java release:              latest
   |   | Hitting the Adoptium API to find your download.
   |   | https://api.adoptium.net/v3/assets/version/%5B21%2C22%29?page_size=1000&release_type=ga&vendor=eclipse&project=jdk&heap_size=normal&jvm_impl=hotspot&os=windows&architecture=x64&image_type=jre
   |   | Exact version is [openjdk21_jre_x64_windows_hotspot_jdk-21.0.6+7]
   |   | Lucky you, we found this version of Java in local artifacts!
   |   | The package openjdk21_jre_x64_windows_hotspot_jdk-21.0.6+7 is already installed at C:\Users\gavin\.CommandBox\serverJREs/openjdk21_jre_x64_windows_hotspot_jdk-21.0.6+7. Skipping installation. Use -
   |   | -force option to force install
   |   |--------------------------------------------------------------
   | √ | Setting site MyApp-Local] Profile to [development]
   |   |--------------------------------------------------------------------
   |   | Profile set from "environment" env var
   |   | Block CF Admin disabled
   |   | Block Sensitive Paths enabled
   |   | Block Flash Remoting enabled
   |   | Directory Browsing enabled
   |   | File Caching disabled
   |   |--------------------------------------------------------------------
   | √ | Loading CFConfig into server
   |   |-------------------------------------------
   |   | Found CFConfig JSON in ".cfconfig.json" file in web root by convention.
   |   | Importing luceeserver config from [C:/Users/gavin/Workspace/MyApp/.cfconfig.json]
   |   | Config transferred from C:\Users\gavin\Workspace\MyApp\.cfconfig.json!
   |   | Found box environment variable [CFCONFIG_DEVELOPERMODE]
   |   | Found box environment variable [CFCONFIG_WEB_BINDINGS_SSL_LISTEN]
   |   | Found box environment variable [CFCONFIG_WEB_BINDINGS_HTTP_LISTEN]
   |   | Found box environment variable [CFCONFIG_LUCEE_ADMIN_PASSWORD]
   |   | Importing into [luceeweb]...
   |   | [BINDINGS] set.
   |   | Importing into [luceeserver]...
   |   | [DEVELOPERMODE] set.
   |   | [LUCEE] set.
   |   |-------------------------------------------

Using Console logger layout: PatternLayout
Console logger layout option: pattern=[%-5p] %c: %m%n
[DEBUG] org.jboss.logging: Logging Provider: org.jboss.logging.Log4j2LoggerProvider
[INFO ] Runwar: Enabling URL rewrite log level: TRACE
[INFO ] Runwar: Enabling URL rewrite log: C:\Users\gavin\.CommandBox\server\D50B8BB6CBC920D007B9CBADBE65A990-MyApp-Local\lucee-light-5.4.7.2\logs\rewrites.txt
[TRACE] Runwar: Piping system streams to logger
[INFO ] Runwar: ******************************************************************************
[INFO ] Runwar: Starting Runwar
[INFO ] Runwar:   - Runwar Version: 5.1.1
[INFO ] Runwar:   - Java Version: 21.0.6+7-LTS (Eclipse Adoptium)
[INFO ] Runwar:   - Java Home: C:\Users\gavin\.CommandBox\serverJREs\openjdk21_jre_x64_windows_hotspot_jdk-21.0.6+7
[INFO ] Runwar: ******************************************************************************
[INFO ] Runwar: Listeners:
[INFO ] Runwar:   - Binding HTTP on 0.0.0.0:80
[DEBUG] Runwar:      Setting HTTP/2 enabled: true
[DEBUG] Runwar: ******************************************************************************
[DEBUG] Runwar: Undertow Server:
[TRACE] Runwar:   Lib: C:\Users\gavin\.CommandBox\server\D50B8BB6CBC920D007B9CBADBE65A990-MyApp-Local\lucee-light-5.4.7.2\WEB-INF\lib\lucee-light.jar
[DEBUG] Runwar:   Initializing classloader with 1 jar(s)
[DEBUG] Runwar:   WAR root:C:\Users\gavin\Workspace\MyApp
[DEBUG] Runwar:   Servlet Context: /
[DEBUG] Runwar:   Log Directory: C:\Users\gavin\.CommandBox\server\D50B8BB6CBC920D007B9CBADBE65A990-MyApp-Local\lucee-light-5.4.7.2\logs
[DEBUG] Runwar:   Added shutdown hook
[INFO ] Runwar: ******************************************************************************
[INFO ] Runwar: Configuring Servlet
[DEBUG] Runwar:   File cache is disabled
[INFO ] Runwar:   Found WEB-INF: 'C:\Users\gavin\.CommandBox\server\D50B8BB6CBC920D007B9CBADBE65A990-MyApp-Local\lucee-light-5.4.7.2\WEB-INF'
[DEBUG] Runwar:   Parsing 'C:\Users\gavin\.CommandBox\server\D50B8BB6CBC920D007B9CBADBE65A990-MyApp-Local\lucee-light-5.4.7.2\WEB-INF\web.xml'
[TRACE] Runwar:     Total No. of context-params: 0
[TRACE] Runwar:     Total No. of listeners: 0
[TRACE] Runwar:     Total No. of servlets: 3
[TRACE] Runwar:       servlet-name: LuceeServlet, servlet-class: lucee.loader.servlet.LuceeServlet
[TRACE] Runwar:         Total No. of init-params: 2
[TRACE] Runwar:           init-param: 'lucee-server-directory'
[TRACE] Runwar:             param-value: 'C:/Users/gavin/.CommandBox/server/D50B8BB6CBC920D007B9CBADBE65A990-MyApp-Local/lucee-light-5.4.7.2/WEB-INF'
[TRACE] Runwar:           init-param: 'lucee-web-directory'
[TRACE] Runwar:             param-value: 'C:/Users/gavin/.CommandBox/server/D50B8BB6CBC920D007B9CBADBE65A990-MyApp-Local/lucee-light-5.4.7.2/WEB-INF/lucee-web'
[TRACE] Runwar:       servlet-name: CFMLServlet, servlet-class: lucee.loader.servlet.CFMLServlet
[TRACE] Runwar:         Total No. of init-params: 2
[TRACE] Runwar:           init-param: 'lucee-server-directory'
[TRACE] Runwar:             param-value: 'C:/Users/gavin/.CommandBox/server/D50B8BB6CBC920D007B9CBADBE65A990-MyApp-Local/lucee-light-5.4.7.2/WEB-INF'
[TRACE] Runwar:           init-param: 'lucee-web-directory'
[TRACE] Runwar:             param-value: 'C:/Users/gavin/.CommandBox/server/D50B8BB6CBC920D007B9CBADBE65A990-MyApp-Local/lucee-light-5.4.7.2/WEB-INF/lucee-web'
[TRACE] Runwar:       servlet-name: RESTServlet, servlet-class: lucee.loader.servlet.RestServlet
[TRACE] Runwar:         Total No. of init-params: 0
[TRACE] Runwar:     Total No. of servlet-mappings: 3
[TRACE] Runwar:       Mapping servlet-name: LuceeServlet, url-pattern: *.lucee
[TRACE] Runwar:       Mapping servlet-name: LuceeServlet, url-pattern: /index.lucee/*
[TRACE] Runwar:       Mapping servlet-name: CFMLServlet, url-pattern: *.cfc
[TRACE] Runwar:       Mapping servlet-name: CFMLServlet, url-pattern: *.cfm
[TRACE] Runwar:       Mapping servlet-name: CFMLServlet, url-pattern: *.cfml
[TRACE] Runwar:       Mapping servlet-name: CFMLServlet, url-pattern: /index.cfc/*
[TRACE] Runwar:       Mapping servlet-name: CFMLServlet, url-pattern: /index.cfm/*
[TRACE] Runwar:       Mapping servlet-name: CFMLServlet, url-pattern: /index.cfml/*
[TRACE] Runwar:       Skipping mapping servlet-name: RESTServlet, url-partern: /rest/*
[TRACE] Runwar:     Total No. of filters: 0
[TRACE] Runwar:     Total No. of filters-mappings: 0
[TRACE] Runwar:     Total No. of welcome files: 4
[TRACE] Runwar:       welcome-file: index.cfm
[TRACE] Runwar:       welcome-file: index.lucee
[TRACE] Runwar:       welcome-file: index.html
[TRACE] Runwar:       welcome-file: index.htm
[TRACE] Runwar:     Total No. of mime-mappings: 0
[TRACE] Runwar:     Total No. of error-pages: 0
[TRACE] Runwar:     Total No. of cookie config elements: 0
[TRACE] Runwar:   REST servlets disabled
[DEBUG] Runwar:   PID file: C:\Users\gavin\.CommandBox\server\D50B8BB6CBC920D007B9CBADBE65A990-MyApp-Local\lucee-light-5.4.7.2\.pid.txt
[INFO ] Runwar: ******************************************************************************
[INFO ] Runwar: Creating deployment [default]
[DEBUG] Runwar:   Initialized MappedResourceManager
[INFO ] Runwar:     Web Root: C:\Users\gavin\Workspace\MyApp
Undertow: Setting default session timeout to 1800
Undertow: Registered session listener io.undertow.servlet.core.SessionListenerBridge@20f5281c
[DEBUG] Runwar:   Adding Server Rules
[TRACE] Runwar: disallowed-methods( methods={trace,track} )
regex( pattern='.*/(box\.json|server\.json|web\.config|urlrewrite\.xml|package\.json|package-lock\.json|Gulpfile\.js)', case-sensitive=false ) -> { set-error(404); done }
regex('/\.') and not path-prefix(.well-known) -> { set-error( 404 ); done }
path-prefix( { '/JSDebugServlet','/securityanalyzer','/WSRPProducer' } ) -> { set-error( 404 ); done }
regex( pattern='\.jws$', case-sensitive=false ) -> { set-error( 404 ); done }
path-prefix( { '/flex2gateway','/flex-internal','/flashservices/gateway','/cfform-internal','/CFFormGateway', '/openamf/gateway', '/messagebroker' } ) -> { set-error( 404 ); done }
regex( pattern='\.(mxml|cfswf)$', case-sensitive=false ) -> { set-error( 404 ); done }
framework-rewrite()
[DEBUG] Runwar:   Setting GZIP predicate to = request-larger-than(1500)
[DEBUG] Runwar:   New servlet context created for [default]
[DEBUG] Runwar: ******************************************************************************
[DEBUG] Runwar: Undertow Options:
[DEBUG] Runwar:   - ENABLE_HTTP2 = true
[DEBUG] Runwar: ******************************************************************************
[INFO ] Runwar: Starting 'stop' listener thread - Host: 127.0.0.1 - Socket: 51018
[TRACE] Runwar: SystemTray Version: 3.17
[TRACE] Runwar: Settting SystemTray.DEBUG = true
[DEBUG] Runwar: Initializing tray
[DEBUG] SystemTray: OS: Windows 11
[DEBUG] SystemTray: Arch: amd64
[DEBUG] SystemTray: Oracle Corporation OpenJDK 64-Bit Server VM 21.0.6
[DEBUG] SystemTray: Is Auto sizing tray/menu? true
[DEBUG] SystemTray: Is JavaFX detected? false
[DEBUG] SystemTray: Is SWT detected? false
[DEBUG] SystemTray: Java Swing L&F: Metal
[DEBUG] SystemTray: Auto-detecting tray type
[DEBUG] SystemTray: Tray indicator image size: 16
[DEBUG] SystemTray: Tray menu image size: 14
[INFO ] SystemTray: Successfully loaded type: _WindowsNativeTray
[WARN ] SystemTray: Please disable tooltips, as they are not consistent across all platforms and tray types.
[INFO ] Runwar: Server is up - stop-port:51018 PID:41516 version 5.1.1
[TRACE] Runwar: MariaDB support is disabled
Undertow: starting server: Undertow - 2.2.37.Final
[INFO ] org.jboss.threads: JBoss Threads version 3.1.0.Final
Undertow: Configuring listener with protocol HTTP for interface 0.0.0.0 and port 80
[TRACE] Runwar: Firing any warmup handlers

and here is my server.json:

{
    "name":"MyApp-Local",
    "openBrowser":"false",
    "app":{
        "cfengine":"lucee-light@5"
    },
    "jvm":{
        "javaVersion":"openjdk21",
        "heapSize":"4G"
    },
    "web":{
        "directoryBrowsing":"true",
        "rewrites":{
            "enable":"true"
        },
        "bindings":{
            "http":{
                "listen":"0.0.0.0:80"
            }
        }
    }
}

and here is my box.json

{
    "name": "MyApp",
    "version": "1.0.0",
    "author": "",
    "type": "mvc",
    "keywords": "",
    "homepage": "",
    "documentation": "",
    "bugs": "",
    "shortDescription": "",
    "contributors": [""],
    "ignore": [],
    "devDependencies": {
        "testbox": "*",
        "commandbox-dotenv": "*",
        "commandbox-cfconfig": "*",
        "commandbox-cfformat": "*"
    },
    "installPaths": {
        "cbi18n": "modules/cbi18n/",
        "cborm": "modules/cborm/",
        "cbvalidation": "modules/cbvalidation/",
        "coldbox": "coldbox/",
        "testbox": "testbox/",
        "wirebox": "wirebox/",
        "upchunk": "modules/upchunk/",
        "logbox": "logbox/",
        "cbmessagebox": "modules/cbmessagebox/",
        "cfmigrations": "modules/cfmigrations/",
        "cbsecurity": "modules/cbsecurity/"
    },
    "dependencies": {
        "coldbox": "*",
        "cbi18n": "*",
        "cbvalidation": "*",
        "cborm": "*",
        "wirebox": "*",
        "upchunk": "*",
        "logbox": "*",
        "cbmessagebox": "*",
        "cfmigrations": "*",
        "cbsecurity": ""
    },
    "scripts": {
        "postInstall": "pathExists .env || cp .env.example .env && package set ignore=[]",
        "format": "cfformat run config/,handlers/,interceptors/,models/,modules_app/,tests/specs/,*.cfc ./.cfformat.json --overwrite",
        "format:check": "cfformat check config/,handlers/,interceptors/,models/,modules_app/,tests/specs/,*.cfc ./.cfformat.json",
        "format:watch": "cfformat watch path='config/,handlers/,interceptors/,models/,modules_app/,tests/specs/,*.cfc' settingsPath='.cfformat.json'",
        "docker:build": "!docker build --no-cache -t my-coldbox-app -f ./build/Dockerfile ./",
        "docker:run": "!docker run -it -p 8080:8080 my-coldbox-app",
        "docker:bash": "!docker run -it my-coldbox-app /bin/bash",
        "docker:stack": "!docker compose -f build/docker-compose.yaml ${1}"
    },
    "testbox": {
        "runner": "http://localhost/tests/runner.cfm"
    },
    "language": "cfml"
}

Please let me know if there is anything else you need or would like me to try.

I’d kill the hung java process and try again?

I noticed your about screen lists Java 21. Does CommandBox support Java 21? I’m still using Java 11 and that is what is recommended in the requirements documentation.

Yep, that shouldn’t be an issue.

Before reverting versions of CommandBox
Killing the process worked, of course…

But then at the very next use - I get the same slowness issue.

Downgrading Commandbox - with no other changes, resolves the issue.
(Also - the app code is simply the result of ‘contentbox install wizard’ - with no other code changes.)

So, when you debugged the

cmd /c tasklist /FI "PID eq 24104"

command directly in a terminal, how long did it take to respond?
The message is pretty clear that it’s taking more than 10 seconds to query the status of the process from Windows. I don’t know why tasklist wouldn’t return right away, but it’s part of Windows, not part of CommandBox so I don’t really know how it works. Perhaps running that command directly will give you some clues.