You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -141,6 +191,22 @@ if not "%PRESERVE_JAVA_OPTS%" == "true" (
141
191
)
142
192
)
143
193
194
+
rem EAP6-121 feature disabled
195
+
rem if not "%PRESERVE_JAVA_OPTS%" == "true" (
196
+
rem Add rotating GC logs, if supported, and not already defined
197
+
rem echo "%JAVA_OPTS%" | findstr /I "\-verbose:gc" > nul
198
+
rem if errorlevel == 1 (
199
+
rem "%JAVA%" -XX:+PrintGCDateStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=3M -version > nul 2>&1
200
+
rem if not errorlevel == 1 (
201
+
rem if not exist "%JBOSS_LOG_DIR" > nul 2>&1 (
202
+
rem mkdir "%JBOSS_LOG_DIR%"
203
+
rem )
204
+
rem Back up any prior logs
205
+
rem rename "%JBOSS_LOG_DIR%\gc.log.*" "backupgc.log.?"
206
+
rem set "JAVA_OPTS=-verbose:gc -Xloggc:%JBOSS_LOG_DIR%\gc.log -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=3M %JAVA_OPTS%"
207
+
rem )
208
+
rem )
209
+
rem )
144
210
145
211
rem Find jboss-modules.jar, or we can't continue
146
212
ifexist"%JBOSS_HOME%\jboss-modules.jar" (
@@ -151,55 +217,7 @@ if exist "%JBOSS_HOME%\jboss-modules.jar" (
151
217
goto END
152
218
)
153
219
154
-
rem Setup JBoss specific properties
155
220
156
-
rem Setup directories, note directories with spaces do not work
0 commit comments