[jboss-jira] [JBoss JIRA] (WFCORE-228) standalone.bat very slow
Tomaz Cerar (JIRA)
issues at jboss.org
Fri Nov 7 09:08:29 EST 2014
[ https://issues.jboss.org/browse/WFCORE-228?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tomaz Cerar moved WFLY-2348 to WFCORE-228:
------------------------------------------
Project: WildFly Core (was: WildFly)
Key: WFCORE-228 (was: WFLY-2348)
Affects Version/s: (was: 8.0.0.Beta1)
Component/s: Scripts
(was: Scripts)
> standalone.bat very slow
> ------------------------
>
> Key: WFCORE-228
> URL: https://issues.jboss.org/browse/WFCORE-228
> Project: WildFly Core
> Issue Type: Enhancement
> Components: Scripts
> Reporter: Philippe Marschall
> Assignee: Tomaz Cerar
>
> With a plain WildFly AS downloaded and executing {code}standalone.bat{code} we see about two to three seconds spent in this loop:
> {code}
> rem Setup directories, note directories with spaces do not work
> set "CONSOLIDATED_OPTS=%JAVA_OPTS% %SERVER_OPTS%"
> :DIRLOOP
> echo(%CONSOLIDATED_OPTS% | findstr /r /c:"^-Djboss.server.base.dir" > nul && (
> for /f "tokens=1,2* delims==" %%a IN ("%CONSOLIDATED_OPTS%") DO (
> for /f %%i IN ("%%b") DO set "JBOSS_BASE_DIR=%%~fi"
> )
> )
> echo(%CONSOLIDATED_OPTS% | findstr /r /c:"^-Djboss.server.config.dir" > nul && (
> for /f "tokens=1,2* delims==" %%a IN ("%CONSOLIDATED_OPTS%") DO (
> for /f %%i IN ("%%b") DO set "JBOSS_CONFIG_DIR=%%~fi"
> )
> )
> echo(%CONSOLIDATED_OPTS% | findstr /r /c:"^-Djboss.server.log.dir" > nul && (
> for /f "tokens=1,2* delims==" %%a IN ("%CONSOLIDATED_OPTS%") DO (
> for /f %%i IN ("%%b") DO set "JBOSS_LOG_DIR=%%~fi"
> )
> )
> for /f "tokens=1* delims= " %%i IN ("%CONSOLIDATED_OPTS%") DO (
> if %%i == "" (
> goto ENDDIRLOOP
> ) else (
> set CONSOLIDATED_OPTS=%%j
> GOTO DIRLOOP
> )
> )
> :ENDDIRLOOP
> {code}
> It does not seem to define any variables by default, simply removing the code noticeably reduces start up time.
> Windows 7, 64 bit, SSD
--
This message was sent by Atlassian JIRA
(v6.3.8#6338)
More information about the jboss-jira
mailing list