I was asked to investigate a server which was using lots of disk and CPU useage every 5 minutes. I logged in and check perf mon to find out tomcat7.exe was zipping up all the files in \onexportal\Tomcat\Server\logs into from *RollingFiles. After running this , all I could see in the logs is
“couldn’t be deleted after adding to zip”
A quick research of TomCat turns out the Avaya server was using the log4j Apache Logging Service ( http://logging.apache.org/log4j/2.x/ )
The config for this was in Tomcat\Server\bin\log4j.xml
After checking there was a parameter in there called <param value=”10MB” name=”MaxFileSize”/> which meant it would try to Roll these constantly.
You can change <param value=”true” name=”Append”/> to <param value=”false” name=”Append”/> and restart the service which means the logs will start from scratch everytime you restart the “Avaya one-X Portal for IP Office” service
or you can clear the logs file by using a sheuduled script