How to correct delete catalina.out?

user710818 picture user710818 · Feb 13, 2014 · Viewed 24.7k times · Source

I couldn't restart Tomcat webserver. But catalina.out get very big. I have tried delete on test server and created new empty. But Tomcat doesn't write anymore in new catalina.out. How correct delete/create empty new one ?

Answer

Sergo Pasoevi picture Sergo Pasoevi · Feb 13, 2014

If you are using Gnu/Linux or Mac OS X, you can just do:

echo "" > catalina.out

or even shorter:

> catalina.out