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

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

    XMLWordPrintable

    Details

    • Target Release:
    • Steps to Reproduce:
      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

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rhn-support-rmartinc Ricardo Martin Camarero
              Reporter:
              tmiyar Teresa Miyar Gil (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: