If you use ColdFusion Builder and if you use tailview, this post is for you! Tail View is a great functionality in ColdFusion builder that allows you to tail the contents of any log file in real time. It is a great productivity feature that saves you from opening the log file and continuously reloading it.
TailView in ColdFusion Builder keeps watching the file for any modification and if there is any, it updates the view with the latest content. That causes a race condition between the tail view process which is trying to read the file and the server process that is writing to the same file. Generally, in such race conditions, the preference is almost always given to the reader. If there is any read operation (and there can be multiple simultaneous reads) in progress, write operation waits.
Somehow this race condition is not very much visible when the server is running from console. However, when the server is running as a service, this race condition becomes so severe that the server becomes almost unresponsive. The jrunsvc.exe process just hogs up all the CPU cycles and the server becomes nearly dead.
A simple way to fix this is to increase the period at which the tail view checks for a change in the file content. Thankfully ColdFusionBuilder provides a preference to do that.
Go to Windows > Preference > HTML >TailView and change the value of “Read Timeout” from 100 to 1000 or any other suitable higher value. This will give enough time to server threads to write contents to the log file.

#1 by Craig Kaminsky on May 10th, 2010
| Quote
Thanks for the tip … Very helpful!
#2 by Adam Cameron on May 10th, 2010
| Quote
The jrunsvc process, or the jrun process?
My understanding (which is not comprehensive, and based on reading people’s blog entries, spiced with a bit of personal observation) is that all the jrunsvc process is supposed to do is to wrap the jrun app in something that can be called as a service, and then keep an eye on it to make sure it’s running (ie: if you kill the jrun process, jrunsvc will start it again).
Am I understanding things wrong?
–
Adam
#3 by Rupesh Kumar on May 10th, 2010
| Quote
@Adam, Your understanding is absolutely correct. However, it does its own extra bit to redirect the output stream and error stream of JRun process to log files.
#4 by Adam Cameron on May 10th, 2010
| Quote
Gotcha, makes sense. Cheers.
–
Adam
#5 by Raymond Camden on May 13th, 2010
| Quote
Dumb question – if the tailview is not visible, is it still “working” ?
#6 by Success on June 8th, 2010
| Quote
Hello from Vyatka River!!! Thank you for information! Itґs a good idea for next full revision…
))
Write more!!!