un.jvmm.jvmm-server.2.0.1.source-code.config.yml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jvmm-server Show documentation
Show all versions of jvmm-server Show documentation
Provides access to operating system, process, thread and other information during Java runtime.
# Node name, used to identify the current host machine, will be used in sentry mode
name: jvmm_server
server:
# Config server type, jvmm is the default type. You can enable multiple options like this: http,sentinel,jvmm
type: jvmm
# Jvmm server config options
# The difference between jvmm server and http server is that jvmm server provides the encryption function of communication messages,
# the client must use a private protocol to communicate with the server.
# And jvmm server is a tcp long connection, the client and the server can communicate in both directions.
# --------------------------------------------------------------------------------------------------------------------------------------------------------
jvmm:
# Jvmm server running port
port: 5010
# Whether to allow adaptive search for available ports, if the port you configured is already occupied, after enabling this option,
# it will automatically increase the search for available ports, but this operation can be performed up to 5 times.
adaptivePort: true
# Communication authentication related configuration
auth:
enable: false
username: 123456
password: 123456
maxChunkSize: 52428800
# Http server config options.
# The configuration of opening the http segment will start the http server, and you can call the relevant api through http requests.
# --------------------------------------------------------------------------------------------------------------------------------------------------------
http:
# Http server running port
port: 8080
# Whether to allow adaptive search for available ports, if the port you configured is already occupied, after enabling this option,
# it will automatically increase the search for available ports, but this operation can be performed up to 5 times.
adaptivePort: true
# Configure Basic authentication for http server
auth:
enable: true
username: 123456
password: 123456
maxChunkSize: 52428800
# Https related configuration
ssl:
enable: false
# Trusted CA certificate, this configuration can be deleted if not specified
certCa: ./config/cert-ca.pem
# Configure the certificate file path
cert: ./config/cert.pem
# Configure the path to the certificate key file
certKey: ./config/cert.key
# Configure the password of the secret key, if there is no password, you can not configure it
keyPassword: 123456
# Whether to use openssl implementation, the default is true, if false, the implementation provided by JDK will be used
openssl: true
# Sentinel config options.
# Enabling the sentinel segment configuration will start the Jvmm sentinel mode, and the sentinel will regularly push monitoring data to subscribers
# --------------------------------------------------------------------------------------------------------------------------------------------------------
sentinel:
# Subscriber list, if this item is not configured or the list is empty, the sentry mode cannot be started
# The subscriber's push interface only supports Basic authentication, which is configured through the auth segment
subscribers:
- url: http://127.0.0.1:9999/monitor/subscriber
auth:
enable: true
username: 123456
password: 123456
- url: http://monitor.example.com:9999/monitor/subscriber
# The interval between sentinels executing tasks, unit is second
interval: 15
# When static options are not enabled, the first N pushes after Sentinel is started will be filled with static data.
# This value N is configured sendStaticInfoTimes
sendStaticInfoTimes: 10
# Sentinel content options for each push
options:
classloading: false
compilation: false
gc: false
memory: false
memoryManager: false
memoryPool: false
systemDynamic: false
threadDynamic: false
# The next information is static and will not change over time.
# It is generally not recommended that you enable these options, because it is repetitive and unnecessary.
# It is recommended to modify sendStaticInfoTimes configuration instead.
system: false
process: false
# Log level configuration
log:
# Log level: error, warn, info, debug, trace, off
level: info
# Whether to use jvmm log, if it is false, it will try to use the log of the host program according to the host program environment.
# But this does not guarantee that the log provider of the host program can be successfully searched
useJvmm: true
# The number of worker threads for the service
workThread: 2
© 2015 - 2025 Weber Informatics LLC | Privacy Policy