Issue

JRun generates Java stderr and stdout logs as [server name]-err and [server name]-out when running as a Windows service, however, the files do not rotate.

This has been logged as issue 59486.

Note: The hot fix in this TechNote has been updated, as of 12/11/2006, to resolve a regression in the original version that was published on 11/7/2006. Note: The hot fix in this TechNote has been updated, as of 07/20/2006, to provide ability to configure the number of rotation files for the system out and err logs. Without this change, JRun will rotate files up to 1000 files and will stop logging to err and out logs.

Solution

A hot fix has been created to solve this issue and can be applied to the following products:

  • ColdFusion MX 7.0.1
  • ColdFusion MX 7.0.2
  • JRun 4 Updater 5
  • JRun 4 Updater 6

Follow the instructions below to apply the hot fix:

  1. Extract jrunsvc.exe and jrunsvcmsg.dll to the{jrun-home}\bin directory, replacing the current versions of those files. If you have the server install of ColdFusion MX 7, the files are located incf_root\runtime\bin.
  2. To configure the log file size, run the following from a command line, either from {jrun-home}\bin orcf_root\runtime\bin, depending on the product you have installed:
    jrunsvc.exe -logfilesize<filesize><service_name>

    For example:

    jrunsvc.exe -logfilesize 260 "ColdFusion MX 7 Application Server"

    will set the log file size to 260KB for the ColdFusion server and a new file will be created every time the coldfusion-err.log and coldfusion-out.log files reach 260KB in size.

    jrunsvc.exe -logfilesize 260 "JRun default Server"

    will set the log file size to 260KB for the default server and a new file will be created every time the default-err.log and default-out.log files reach 260KB in size.

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy