Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I disable juli logging in tomcat 8?

I am working with a ubuntu web server, where I have tomcat 8 and running a web application on tomcat. Recently I have faced some problem with cpu uses 100%. When I restart the tomcat server it is running good, but after one day or a few hour again same problem arise ( 100% cpu use) and that problem make my site slow. When I see the process list with htop command then i see so many process like

/opt/java8/jre/bin/java -Djava.util.logging.config.file=/opt/tomcat8/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoader

What can i do now? I want to disable tomcat internal logging fully but cannot do this.

What is the function of juli in tomcat? Is it use for only logging? If so i not need any logging. I don't want to see the above process any more. Please help me.

like image 698
Md. Shougat Hossain Avatar asked Oct 27 '25 04:10

Md. Shougat Hossain


1 Answers

JULI is Tomcat implementation of java.util.logging API. To turn logging off, in ${catalina.base}/conf/logging.properties configure the root logger like this and make sure that there are no child loggers that override this setting:

.level = OFF
like image 191
nezdolik Avatar answered Oct 29 '25 20:10

nezdolik



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!