Is there any ways to Clear the catalin.out logs file….?
in certain intervals.
if Increasing the logs file more than 5GB than server will be automatically shutdown.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I have developed .sh file to clear catalina.out file that i will put at location where my project is deployed in tomcat.Now i will execute that file from my java code at certain interval.
Following is the command in my .sh file
echo “” > path to catalina.out file