How to disconnect BlockedThreadChecker from vert.x?

BlockedThreadChecker causes a lot of stdout when debugging vert.x code. This question relates to vert.x 3.

+6
source share
3 answers
VertxOptions options = new VertxOptions(); options.setBlockedThreadCheckInterval(1000*60*60); 

https://groups.google.com/forum/#!searchin/vertx/BlockedThreadChecker/vertx/MWx8ma7Ig4o/rFqdYdDErtYJ

+8
source

Alternatively, you can add the following system property to run the vertx script, set the loop cycle time to 10 seconds (note the input to NS):

-Dvertx.options.maxEventLoopExecuteTime = 10000000000

+3
source

For anyone interested in this, if you do not want to change the vertx parameters, you can set the log level to ERROR or OFF for BlockedThreadChecker .

The configuration in logback.xml will look something like this:

 <configuration> ... <logger name="io.vertx.core.impl.BlockedThreadChecker" level="OFF" /> ... </configuration> 
+2
source

Source: https://habr.com/ru/post/982370/


All Articles