JBoss Community

Re: How to set the Jboss server to truncate the log file contents back to 0 when it is restarted

created by Tony Sabore in Beginner's Corner - View the full discussion

The STDERR log file has no definition in the log4j config.

 

I added the following to [D:\Kronos\jboss\server\wfc\conf\jboss-log4j.xml] to stop apache from filling the log with INFO messages:

 

   <category name="org.apache">

      <priority value="ERROR"/>

   </category>

 

The service was configured using [d:\Kronos\wfc\bin\jBossWinService.bat] to start the jboss service as:

 

D:/Kronos\deployments\release\wfp_staging\app_server\applications\wpk\bin\jbossService.exe -install %JBOSS_SERVICE_NAME% %JAVA_HOME%\jre\bin\server\jvm.dll -server %charset% -Doracle.jdbc.defaultNChar="true" -Doracle.jdbc.convertNcharLiterals=true %JVM_HEAP_SIZES% %JVM_PARAMS_FOR_64% -XX:+HeapDumpOnOutOfMemoryError -Dsun.lang.ClassLoader.allowArraySyntax=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.service.binding.set=ports-wfc-default -Djava.class.path=%JAVA_HOME%\lib\tools.jar;%JBOSS_HOME%\bin\run.jar %JVM_PARAMS_FOR_JMX% -start org.jboss.Main -params "-cwfc" "-b0.0.0.0" -stop org.jboss.Main -method systemExit -out %JBOSS_HOME%\bin\stdoutwfc.log -err %JBOSS_HOME%\bin\stderrwfc.log -current %JBOSS_HOME%\bin -%startup%

 

Thanks,

Reply to this message by going to Community

Start a new discussion in Beginner's Corner at Community