<?xml version="1.0" encoding="windows-1252"?>
<node id="663274" title="Re: Man, File::Tail is just beating me down!" created="2008-01-20 09:03:54" updated="2008-01-20 04:03:54">
<type id="11">
note</type>
<author id="330779">
matija</author>
<data>
<field name="doctext">
&lt;p&gt;First of all, File::Tail is on CPAN - there is no need to post it all here.&lt;/p&gt;
&lt;p&gt;Having said that, I think you are running into some kind of a timing problem. File::Tail tries to be clever about detecting when a file has been rotated, and it seems that, 
under very heavy loads, it sometimes gets a false positive (it thinks that the file has been rotated when it really has not).&lt;/p&gt;
&lt;p&gt;I've never been able to generate a reliable test case that would trigger that bug so I could debug it.&lt;/p&gt;
&lt;p&gt;My advice is:&lt;ul&gt;&lt;li&gt;See if bumping maxinterval to a higher value helps&lt;/li&gt;&lt;li&gt;See if bumping adjustfter to a higher value helps&lt;/li&gt;&lt;li&gt;(may not be feasible for your application) put 0 or a small positive value into reset_tail - that will make it restart from the end of the file, or n lines from the end of the file - which might be better for your application that starting from the very beginning.&lt;/li&gt;
&lt;/ul&gt;&lt;/p&gt;
&lt;p&gt;Hope this helps&lt;/p&gt;</field>
<field name="root_node">
662916</field>
<field name="parent_node">
662916</field>
</data>
</node>
