Note that there are some explanatory texts on larger screens.

plurals
  1. POLog4J logs not rolling on size (Tomcat/Windows if relevant) when the system is under load, why could that be?
    primarykey
    data
    text
    <p>Does anyone have some ideas of;</p> <blockquote> <p><strong>" why our log4j log file does not roll and keep growing huge in size?"</strong></p> </blockquote> <p>..It seems to only happen in one of our environments as well. Also,</p> <blockquote> <p><strong>The log file only does not roll when the machine is under load!</strong></p> </blockquote> <p>We've tested a few thing, searched Google and Stack Oevrflow to no avail.</p> <p>Here's the things we are currently looking into;</p> <p>"I read somewhere that some people see rolling not working if the app is started as a service but it works fine if its started from command line, could we test to make sure thats not what we are seeing (narrowing it down again)? There were a few people who saw this."</p> <p>Our config is;</p> <pre class="lang-xml prettyprint-override"><code>&lt;appender name="file" class="org.apache.log4j.RollingFileAppender"&gt; &lt;param name="file" value="D:/myloglocation/subfolder/mylog.txt"/&gt; &lt;param name="MaxFileSize" value="5MB"/&gt; &lt;param name="MaxBackupIndex" value="50"/&gt; &lt;param name="append" value="false"/&gt; &lt;param name="bufferedIO" value="false"/&gt; &lt;layout class="org.apache.log4j.PatternLayout"&gt; &lt;param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%t] [%c{4}] %m%n"/&gt; &lt;/layout&gt; &lt;/appender&gt; </code></pre> <p>Does anyone have any ideas at all of what could be happening here?</p> <p>PS: We are thinking of changing the bufferedIO flag above (for performance), but that couldn't be related right?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload