Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-16399

null file is created in bin directory when starting EAP 7.2 on Windows

XMLWordPrintable

    • Hide

      Either set the Java_opts or change them in standalone.conf.bat to enable the GC log rotation like:
      -verbose:gc -Xloggc:gc.log -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=1048576

      And force the script to go through that part

      Show
      Either set the Java_opts or change them in standalone.conf.bat to enable the GC log rotation like: -verbose:gc -Xloggc:gc.log -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=1048576 And force the script to go through that part

      When starting EAP 7.2 using standalone.bat on Windows, a file named "null" is created in the bin directory.

      Looking at the standalone.bat file that comes with EAP 7.2, I find this new line which was added:

      rem Remove the gc.log file from the -version check
      del /F /Q "%JBOSS_LOG_DIR%\gc.log" > null 2>&1

      But, this is a typo. What it's trying to do is suppress the output of the del command. In unix, you'd redirect it to /dev/null. In Windows, you're supposed to redirect it to nul (with one L), as in this example line from slightly earlier in the standalone.bat file:

      move /y "%JBOSS_LOG_DIR%\gc.log" "%JBOSS_LOG_DIR%\backupgc.log" > nul 2>&1

              rhn-support-tmiyargi Teresa Miyar Gil (Inactive)
              rhn-support-dboeren David Boeren
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: