WebAPP with
@Singleton @Startup public class InitializationJobBean {
@PostConstruct private void startup() { int lines = 1000000; for (int i = 0; i < lines; i++)
}
and standard size rotating file handler:
<size-rotating-file-handler file-name="${jboss.server.log.dir}/server.log" name="FILE" autoflush="true" append="true" rotate-size="500k" max-backup-index="5">
<error-manager> <only-once/> </error-manager>
<formatter> <pattern-formatter pattern="%d %-5p [%c] (%t) %m%n"/> </formatter> </size-rotating-file-handler>
size-rotating-file-handler only rotates once and then the logfile grows.