Why not use logrotate https://dzone.com/articles/how-rotate-tomcat-catalinaout
On Sun, Dec 4, 2016 at 12:04 PM, Jayaram Ponnusamy < jayaram.ponnus...@gmail.com> wrote: > Dear All, > > I am new to Tomcat, and in our production environment, the catalina.out > reached more than 8GB, and we are removing it manually. So,Kindly please > help me to set maximum size will be 25MB and keep 7days Logs only. > > > We are using Tomcat 7.0.42.0 in Rhel 6 > > > Thanks > Jayaram >