APRIL 16 2007

JRun system log file rotation

Related Categories: ColdFusion, JRun

Some readers are aware of setting JRun log file rotation size and number in the jrun.xml. However the JRun stderr and stdout system logs do not conform to these settings. Last year Adobe released technote 8698aeb8 which contained a hot fix for bug 59486. When JRun is run as a Windows service, the stderr (jrun.server.name-err.log) and stdout (jrun.servere.name-out.log) do not rotate, thus greatly increasing their size until they become eventual server bottlenecks. The hot fix allows administrators to configure a file rotation size with the jrunsvc.exe. The hot fix also requires CFMX 7.0.1+ (Server configuration) or JRun 4 Updater 5+. I had a customer run into this issue and it became apparent that not everyone is aware of this hot fix, nor of the fact that the FileLogEventHandler settings in jrun.xml do not apply to the JRun system logs. Those settings only apply to what are known as the JRun Event logs -- event, debug, info, warning, user, and metrics. So what you'll see is the coldfusion-event.log rotating at about 200k (or the current rotationSize value); however, the coldfusion-out.log will continue to grow past 200k (typically a few hundred MBs). Applying the hot fix and specifying a log rotation size will cause the coldfusion-err.log and coldfusion-out.log to rotate at the specified value.

Comments (2) | Print | Send | del.icio.us | Digg It! | Linking Blogs
TweetBacks
There are no TweetBacks for this entry.
Comments (Comment Moderation is enabled. Your comment will not appear until approved.)

[Add Comment] [Subscribe to Comments]

Brian's Gravatar Sarge,

We're using the older CFMX 6.1 (yikes) technology here (not true JRUN, rather in CF Server mode). I recall Mike Collins telling me there was a way to configure log rotation using the built-in JRUN logging facility on that platform. Can you comment on that?
# Posted By Brian | 10/19/09 10:16 AM
sarge's Gravatar Hi Brian,

You can edit JRun logging facility in cfroot/runtime/servers/coldfusion/SERVER-INF/jrun.xml.
Look for the "LoggerService", there you can dis/enable the different logging levels, set the metrics frequency and format change the log file name syntax, and manage the rotation. Some of the details are listed in the JRun Admin docs:
http://livedocs.adobe.com/jrun/4/JRun_Administrato....

HTH.
# Posted By sarge | 10/19/09 11:39 AM
Welcome to Sarge's personal blog A green acorn

Previous Month February 2012 Next Month

Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29      

Subscribe
Enter your email address to subscribe to this blog.