When JBoss runs as a Windows Service, the logs which should go to the console window go to the /bin/run.log file. My application runs 24x7, so I would like to know if is there a way to limit this file size, because this file can take, if JBoss runs for a long time, all the available disk space.
The console log uses Log4J, you can edit the settings in server/xxx/conf/jboss-log4j.xml. Just substitute one of the other appenders, such as the org.jboss.logging.appender.RollingFileAppender, in place of the existing ConsoleAppender.