import{_ as e,o as t,c as a,d as i}from"./app.391b0e4e.js";const o={},r=i(`
The arthas.properties
file is in the arthas directory.
~/.arthas/lib/3.x.x/arthas/
WARNING
Note that the configuration must be camel case
, which is different from the -
style of spring boot. Only the spring boot application supports both camel case
and -
style configuration.
#arthas.config.overrideAll=true
arthas.telnetPort=3658
arthas.httpPort=8563
arthas.ip=127.0.0.1
# seconds
arthas.sessionTimeout=1800
#arthas.appName=demoapp
#arthas.tunnelServer=ws://127.0.0.1:7777/ws
#arthas.agentId=mmmmmmyiddddd
arthas.telnetPort
is -1, the telnet port will not be listened. arthas.httpPort
is similar.arthas.telnetPort
to 0, then random listen telnet port, you can find the random port log in ~/logs/arthas/arthas.log
. arthas.httpPort
is similar.TIP
If you want to prevent multiple arthas port conflicts on a machine. It can be configured as a random port, or configured as -1, and use arthas through the tunnel server.
TIP
since 3.5.2
Such as configuration:
arthas.disabledCommands=stop,dump
It can also be configured on the command line: --disabled-commands stop,dump
.
TIP
By default, arthas-spring-boot-starter will disable the stop
command.
The order of configuration is: command line parameters > System Env > System Properties > arthas.properties.
such as:
./as.sh --telnet-port 9999
command line configuration will overwrite the default value arthas.telnetPort=3658
in arthas.properties
.arthas.telnetPort=8888
, it will override the default value arthas.telnetPort=3658
in arthas.properties
.If you want arthas.properties
to have the highest order, you can configure arthas.config.overrideAll=true
.