Skip to main content
Version: 5.9

System properties and environment variables

You can use system properties and environment variables to configure many aspects of Management Center, from JMX to the home directory and feature flags. These properties give you the power to tweak settings at startup without having to configure anything in the UI.

If a property has no environment variable, you can set it with the JAVA_OPTS environment variable. You can use JAVA_OPTS when you start Management Center in any of these ways:

  • Docker environments
  • hz-mc conf tool
  • Start scripts included with Hazelcast Platform or Management Center, such as hz-mc start
Docker configuration

You may also need to use other environment variables in Docker environments. For the Docker reference, see DockerHub.

You can use properties to configure both Management Center and Management Center's client connection strategy on startup.

If a property has an environment variable, the Environment variable column lists it.

note

Management Center ignores a property or environment variable that it does not recognize. It does not log a warning.

This example shows how to set system properties or environment variables:

bash
hz-mc start -Dhazelcast.mc.http.port=8083

General​

These properties configure Management Center's configuration file, home directory, license, and general behavior:

PropertyEnvironment variableDefaultDescription
hazelcast.mc.auditlog.enabledMC_AUDITLOG_ENABLEDfalseWhether Management Center logs auditable events. See Audit Logging.
hazelcast.mc.configReplacer.classFull class name of a variable replacer to use. See Variable replacers.
hazelcast.mc.configReplacer.failIfValueMissingtrueWhether the configuration loading process stops when a replacement value is missing.
hazelcast.mc.homeMC_HOMEhazelcast-mc in the user's home directoryHome directory where metrics, executed SQL queries, and configuration settings are saved. See Configure Management Center.
hazelcast.mc.housekeeping.disk.freeSpaceThresholdMC_HOUSEKEEPING_DISK_FREE_SPACE_THRESHOLD100MBFree disk space below which Management Center reports that disk space is low.
hazelcast.mc.housekeeping.disk.usedSpaceRatioThresholdMC_HOUSEKEEPING_DISK_USED_SPACE_RATIO_THRESHOLD80Percentage of used disk space above which Management Center reports that disk space is low. Values must be between 1 and 100.
hazelcast.mc.licenseMC_LICENSEEnterprise license. When this property is set, the license takes precedence over one that is set in the user interface, and you cannot update the license in the UI. For more details about licenses, see Enterprise licenses.
hazelcast.mc.lock.skipMC_LOCK_SKIPfalseWhether the hz-mc conf tool does not check for an mc.lock file in the home directory. See Skipping the Check for a Lock File.
hazelcast.mc.phone.home.enabledMC_PHONE_HOME_ENABLEDtrueWhether Management Center sends usage data to the Hazelcast phone home server. See Usage analytics.
hazelcast.mc.rest.enabledMC_REST_ENABLEDfalseEnable clustered REST endpoints.
maskOpts' ' (empty)Comma-separated list of option keys to be masked. Masks sensitive data in logs passed via JAVA_OPTS.

Management Center checks the disk that holds its home directory every minute. When disk space is low, it logs a warning and shows a notification in the UI. When free disk space is below half of the hazelcast.mc.housekeeping.disk.freeSpaceThreshold value, it is considered critically low, and Management Center also stops saving metrics to disk until more space is free.

Web server​

These properties configure the Management Center web server, including the HTTP port, health check, and CORS:

PropertyEnvironment variableDefaultDescription
hazelcast.mc.contextPathMC_CONTEXT_PATH/Prefix of all URL paths in Management Center.
hazelcast.mc.cors.allowedOriginPatternsMC_CORS_ALLOWED_ORIGIN_PATTERNSA list of origins patterns for which cross-origin requests are allowed.
hazelcast.mc.cors.allowedMethodsMC_CORS_ALLOWED_METHODSHTTP methods to allow for cross-origin requests.

If any other hazelcast.mc.cors.* property is set while hazelcast.mc.cors.allowedMethods is not set, only GET and HEAD HTTP methods will be allowed.
hazelcast.mc.cors.allowedHeadersMC_CORS_ALLOWED_HEADERSList of headers that a pre-flight request can list as allowed for use during an actual request.

The special value * allows actual requests to send any header.
hazelcast.mc.cors.exposedHeadersMC_CORS_EXPOSED_HEADERSList of response headers that an actual response might have and can be exposed to the client.

The special value * allows all headers to be exposed.
hazelcast.mc.cors.allowCredentialsMC_CORS_ALLOW_CREDENTIALSWhether user credentials are supported or not. Setting this property to true forbids originPatterns, allowedMethods, allowedHeaders to have a * value. Be aware that this option establishes a high level of trust with the configured domains and also increases the surface attack of the web application by exposing sensitive user-specific information such as cookies and CSRF tokens. If this property is not set, user credentials are not supported.
hazelcast.mc.cors.allowPrivateNetworkMC_CORS_ALLOW_PRIVATE_NETWORKWhether private network access is supported for user-agents restricting such access by default.

Private network requests are requests whose target server's IP address is more private than that from which the request initiator was fetched. For example, a request from a public website (https://example.com) to a private website (https://router.local), or a request from a private website to localhost.

If this property is not set, private network access is not supported.
hazelcast.mc.cors.maxAgeMC_CORS_MAX_AGEConfigure how long, in seconds, the response from a pre-flight request can be cached by clients.
hazelcast.mc.disable.csrfMC_DISABLE_CSRFfalseWhether Management Center turns off cross-site request forgery (CSRF) protection for all requests.
hazelcast.mc.forwarded.requests.enabledMC_FORWARDED_REQUESTS_ENABLEDtrueWhether Management Center reads X-Forwarded-* headers from reverse proxies.
hazelcast.mc.healthCheck.enableMC_HEALTH_CHECK_ENABLEDfalseWhether the /health endpoint is enabled on port hazelcast.mc.http.port + 1. This endpoint is always served over HTTP, regardless of any TLS/SSL settings. This endpoint responds with 200 OK HTTP status code if Management Center is running.
hazelcast.mc.healthCheck.portMC_HEALTH_CHECK_PORThazelcast.mc.http.port + 1The port on which the /health endpoint is exposed. This property takes effect only when hazelcast.mc.healthCheck.enable is true.
hazelcast.mc.hostAddressMC_HOST_ADDRESS0.0.0.0 (all network interfaces)Network address that Management Center is reachable on.
hazelcast.mc.http.portMC_HTTP_PORT8080HTTP port for Management Center.
hazelcast.mc.websocket.buffer-sizeMC_WEBSOCKET_BUFFERSIZE5MBThe buffer size of the WebSocket connection MC uses for SQL operations.
warning

Setting hazelcast.mc.disable.csrf to true turns off CSRF protection. A malicious website could then send requests to Management Center using the session of a user who is logged in.

If none of hazelcast.mc.cors.* properties are set, all origins are allowed to make cross-origin HTTP requests, but WebSocket connection could be established only from the same origin.

For hazelcast.mc.cors.allowedHeaders and hazelcast.mc.cors.exposedHeaders, a header name is not required to be listed if it is one of: Cache-Control, Content-Language, Expires, Last-Modified, or Pragma.

TLS​

These properties configure TLS for the Management Center web server:

PropertyEnvironment variableDefaultDescription
hazelcast.mc.exclude.cipher.suitesMC_EXCLUDE_CIPHER_SUITESA comma separated list of cipher suites to be excluded from the list of supported ciphers in Management Center. Wildcards are supported.
hazelcast.mc.existingKeyStore.pathMC_EXISTING_KEY_STORE_PATH' ' (empty)Path to an existing keystore. You do not have to set this property if you use a Hardware Security Module (HSM).
hazelcast.mc.existingKeyStore.passMC_EXISTING_KEY_STORE_PASS' ' (empty)Password for the keystore. You do not have to set this property if you use a Hardware Security Module (HSM) that provides another means to access the keystore.
hazelcast.mc.existingKeyStore.typeMC_EXISTING_KEY_STORE_TYPEType of the keystore.
hazelcast.mc.existingKeyStore.providerMC_EXISTING_KEY_STORE_PROVIDERSystem providerProvider of the keystore. If you use a Hardware Security Module (HSM), specify the class name of your HSM's java.security.Provider implementation.
hazelcast.mc.include.cipher.suitesMC_INCLUDE_CIPHER_SUITESA comma separated list of cipher suits to be included in the list of supported ciphers in Management Center. Wildcards are supported.
hazelcast.mc.tls.excludeProtocolsMC_TLS_EXCLUDE_PROTOCOLSA comma separated list of TLS/SSL protocols to be excluded from the list of supported protocols in Management Center.
hazelcast.mc.tls.openSslMC_TLS_OPEN_SSLfalseAllow Management Center to use Google's Conscrypt SSL that is built on their fork of OpenSSL, BoringSSL.
hazelcast.mc.tls.enabledMC_TLS_ENABLEDfalseWhether TLS/SSL is enabled.
hazelcast.mc.tls.keyStoreMC_TLS_KEY_STOREPath to a keystore.
hazelcast.mc.tls.keyStorePasswordMC_TLS_KEY_STORE_PASSWORDPassword of the keystore in hazelcast.mc.tls.keyStore.
hazelcast.mc.tls.trustStoreMC_TLS_TRUST_STOREPath to a truststore. If the hazelcast.mc.tls.enabled system property is true and this value is empty, Management Center uses the system JVM's own truststore.
hazelcast.mc.tls.trustStorePasswordMC_TLS_TRUST_STORE_PASSWORDPassword of the truststore.
hazelcast.mc.tls.protocolMC_TLS_PROTOCOLTLSStandard name of the TLS protocol for HTTPS connections to Management Center, such as TLSv1.3.
hazelcast.mc.tls.keyManagerAlgorithmMC_TLS_KEY_MANAGER_ALGORITHMSystem defaultKey manager algorithm for the keystore in hazelcast.mc.tls.keyStore.
hazelcast.mc.tls.trustManagerAlgorithmMC_TLS_TRUST_MANAGER_ALGORITHMSystem defaultTrust manager algorithm for the truststore in hazelcast.mc.tls.trustStore.
hazelcast.mc.tls.sniHostCheckEnabledMC_TLS_SNI_HOST_CHECK_ENABLEDfalseWhether Management Center checks that the host name in each HTTPS request matches its TLS certificate.
hazelcast.mc.tls.enableHttpPortMC_TLS_ENABLE_HTTP_PORTfalseWhether the HTTP port in the hazelcast.mc.http.port system property is redirected to the HTTPS port in the hazelcast.mc.https.port system property.
hazelcast.mc.tls.mutualAuthenticationMC_TLS_MUTUAL_AUTHENTICATIONWhether Management Center requests a TLS certificate from clients. If this property is not set, Management Center does not request client certificates.

REQUIRED: Clients must present a certificate that the Management Center truststore trusts. Otherwise, the connection fails.
OPTIONAL: Management Center requests a certificate, but clients can connect without one. If a client presents a certificate that the Management Center truststore does not trust, the connection fails.
hazelcast.mc.useExistingKeyStoreMC_USE_EXISTING_KEY_STOREfalseEnables use of an existing keystore.

Login, sessions, and passwords​

These properties configure user logins, sessions, and password checks:

PropertyEnvironment variableDefaultDescription
hazelcast.mc.allowMultipleLoginMC_ALLOW_MULTIPLE_LOGINtrueWhether a user can log into an account in Management Center on multiple devices in different locations at the same time. See Secure user sessions.
hazelcast.mc.disableLoginPeriodMultiplierMC_DISABLE_LOGIN_PERIOD_MULTIPLIER10Multiplier used for extending the disabled login period in case the failed login attempts continue after the disabled login period expires. See Secure user sessions.
hazelcast.mc.failedAttemptsBeforeDisableLoginMC_FAILED_ATTEMPTS_BEFORE_DISABLE_LOGIN3Number of failed login attempts that Management Center allows before disabling logins. See Secure user sessions.
hazelcast.mc.forceLogoutOnMultipleLoginMC_FORCE_LOGOUT_ON_MULTIPLE_LOGINfalseWhether Management Center forces users to log out when other users try to log into the same account. See Secure user sessions.
hazelcast.mc.initialDisableLoginPeriodMC_INITIAL_DISABLE_LOGIN_PERIOD5Initial duration for the disabled login period in seconds. See Secure user sessions.
hazelcast.mc.maxDisableLoginPeriodMC_MAX_DISABLE_LOGIN_PERIOD2147483647Maximum duration in seconds of the disabled login period. The default is effectively unlimited.
hazelcast.mc.security.dictionary.minWordLengthMC_SECURITY_DICTIONARY_MIN_WORD_LENGTH3Minimum length that words in the dictionary must contain.
hazelcast.mc.security.dictionary.pathMC_SECURITY_DICTIONARY_PATHPath to a text file that contains words that cannot be included in user passwords.
hazelcast.mc.session.timeout.secondsMC_SESSION_TIMEOUT_SECONDS1800Number of seconds that a session can remain inactive before it is invalid and the user must log in again.

LDAP and Active Directory​

If you do not set one of these ssl.* properties, Management Center uses the Java system property with the same name after the javax.net.ssl. prefix. For example, if hazelcast.mc.ldap.ssl.keyStore is not set, Management Center uses javax.net.ssl.keyStore. The default value applies only when neither property is set.

These properties configure connections to LDAP and Active Directory servers:

PropertyEnvironment variableDefaultDescription
hazelcast.mc.keyStore.passwordMC_KEYSTORE_PASSPassword of the keystore that Management Center creates to encrypt the LDAP password. See Provide a master key for encryption.
hazelcast.mc.ldap.timeoutMC_LDAP_TIMEOUT3000Timeout in milliseconds for Active Directory and LDAP search queries.
hazelcast.mc.ldap.ssl.protocolMC_LDAP_SSL_PROTOCOLTLSThe standard name of the requested SSL protocol for LDAP connection.
hazelcast.mc.ldap.ssl.keyStoreMC_LDAP_SSL_KEY_STORE' ' (empty)Path to a keystore for LDAP SSL connection.
hazelcast.mc.ldap.ssl.keyStoreTypeMC_LDAP_SSL_KEY_STORE_TYPEJKSType of the keystore.
hazelcast.mc.ldap.ssl.keyStorePasswordMC_LDAP_SSL_KEY_STORE_PASSWORD' ' (empty)Password for the keystore for LDAP SSL connection.
hazelcast.mc.ldap.ssl.keyManagerAlgorithmMC_LDAP_SSL_KEY_MANAGER_ALGORITHMSystem defaultName of the algorithm based on which the authentication keys are provided.
hazelcast.mc.ldap.ssl.trustStoreMC_LDAP_SSL_TRUST_STORE' ' (empty)Path to the truststore.
hazelcast.mc.ldap.ssl.trustStorePasswordMC_LDAP_SSL_TRUST_STORE_PASSWORD' ' (empty)Password for the truststore.
hazelcast.mc.ldap.ssl.trustStoreTypeMC_LDAP_SSL_TRUST_STORE_TYPEJKSType of the truststore.
hazelcast.mc.ldap.ssl.trustManagerAlgorithmMC_LDAP_SSL_TRUST_MANAGER_ALGORITHMSystem defaultName of the algorithm based on which the authentication keys are provided.
hazelcast.mc.ad.ssl.protocolMC_AD_SSL_PROTOCOLTLSThe standard name of the requested SSL protocol for AD connection.
hazelcast.mc.ad.ssl.keyStoreMC_AD_SSL_KEY_STORE' ' (empty)Path to a keystore for AD SSL connection.
hazelcast.mc.ad.ssl.keyStoreTypeMC_AD_SSL_KEY_STORE_TYPEJKSType of the keystore.
hazelcast.mc.ad.ssl.keyStorePasswordMC_AD_SSL_KEY_STORE_PASSWORD' ' (empty)Password for the keystore for AD SSL connection.
hazelcast.mc.ad.ssl.keyManagerAlgorithmMC_AD_SSL_KEY_MANAGER_ALGORITHMSystem defaultName of the algorithm based on which the authentication keys are provided.
hazelcast.mc.ad.ssl.trustStoreMC_AD_SSL_TRUST_STORE' ' (empty)Path to the truststore.
hazelcast.mc.ad.ssl.trustStorePasswordMC_AD_SSL_TRUST_STORE_PASSWORD' ' (empty)Password for the truststore.
hazelcast.mc.ad.ssl.trustStoreTypeMC_AD_SSL_TRUST_STORE_TYPEJKSType of the truststore.
hazelcast.mc.ad.ssl.trustManagerAlgorithmMC_AD_SSL_TRUST_MANAGER_ALGORITHMSystem defaultName of the algorithm based on which the authentication keys are provided.

JMX​

The hazelcast.mc.jmx.ssl.* protocol, keystore, truststore, and algorithm properties fall back to javax.net.ssl.* Java system properties. The hazelcast.mc.jmx.ssl.enabled and hazelcast.mc.jmx.ssl.mutualAuthentication properties do not.

These properties configure JMX for Management Center:

PropertyEnvironment variableDefaultDescription
hazelcast.mc.jmx.enabledMC_JMX_ENABLEDfalseWhether the clustered JMX service is enabled. See Clustered JMX.
hazelcast.mc.jmx.hostMC_JMX_HOSTServer's hostnameHostname/IP address of the JMX host machine. This is used by the JMX client to connect back into JMX, so the given host must be accessible from the host machine that runs the JMX client.
hazelcast.mc.jmx.ssl.mutualAuthenticationMC_JMX_SSL_MUTUAL_AUTHENTICATIONfalseWhether mutual authentication is enabled for the JMX interface.
hazelcast.mc.jmx.portMC_JMX_PORT9999Port on which the clustered JMX service is exposed.
hazelcast.mc.jmx.rmi.portMC_JMX_RMI_PORT9998Port on which the Java process that you want to monitor listens for incoming connections from the client (Remote management applications) such as JConsole . For monitoring a local Java process, there is no need to specify the JMX RMI port number.
hazelcast.mc.jmx.ssl.enabledMC_JMX_SSL_ENABLEDfalseWhether TLS/SSL is enabled for communication between the JMX interface and JMX clients.
hazelcast.mc.jmx.ssl.protocolMC_JMX_SSL_PROTOCOLTLSThe standard name of the requested SSL protocol.
hazelcast.mc.jmx.ssl.keyStoreMC_JMX_SSL_KEY_STORE' ' (empty)Path to a keystore.
hazelcast.mc.jmx.ssl.keyStorePasswordMC_JMX_SSL_KEY_STORE_PASSWORD' ' (empty)Password for the keystore.
hazelcast.mc.jmx.ssl.trustStoreMC_JMX_SSL_TRUST_STORE' ' (empty)Path to a truststore.
hazelcast.mc.jmx.ssl.trustStoreTypeMC_JMX_SSL_TRUST_STORE_TYPEJKSType of the truststore.
hazelcast.mc.jmx.ssl.trustStorePasswordMC_JMX_SSL_TRUST_STORE_PASSWORD' ' (empty)Password for the truststore.
hazelcast.mc.jmx.ssl.trustManagerAlgorithmMC_JMX_SSL_TRUST_MANAGER_ALGORITHMSystem defaultName of the algorithm based on which the authentication keys are provided. System default is used if none is provided. You can find out the default by calling the javax.net.ssl.TrustManagerFactory#getDefaultAlgorithm method.
hazelcast.mc.jmx.ssl.keyStoreTypeMC_JMX_SSL_KEY_STORE_TYPEJKSType of the keystore.
hazelcast.mc.jmx.ssl.keyManagerAlgorithmMC_JMX_SSL_KEY_MANAGER_ALGORITHMSystem defaultName of the algorithm based on which the authentication keys are provided. You can find out the default by calling the javax.net.ssl.KeyManagerFactory#getDefaultAlgorithm method.

Metrics and Prometheus​

These properties configure how Management Center stores metrics and exports them to Prometheus:

PropertyEnvironment variableDefaultDescription
hazelcast.mc.metrics.persistence.enabledMC_METRICS_PERSISTENCE_ENABLEDtrueWhether Management Center persists metrics. See Historical metrics.
hazelcast.mc.metrics.disk.ttl.durationMC_METRICS_DISK_TTL_DURATIONP1D (one day)Time-to-Live (TTL) in ISO-8601-based durations format for each record in the metrics persistence. This value must be positive. See Historical metrics.
hazelcast.mc.metrics.consumer.thread.pool.sizeMC_METRICS_CONSUMER_THREAD_POOL_SIZENumber of CPU cores minus one, with a minimum of 2Number of threads that are used to consume metrics from cluster members. See Historical metrics.
hazelcast.mc.metrics.accumulation.period.secondsMC_METRICS_ACCUMULATION_PERIOD_SECONDS70Time in seconds that Management Center keeps each minute of metrics in memory before it saves the minute to disk. The time starts when Management Center receives the first data point for that minute. The minimum value is 70. This property applies only when hazelcast.mc.metrics.persistence.enabled is true.
hazelcast.mc.metrics.reschedule.delay.millisMC_METRICS_RESCHEDULE_DELAY_MILLIS1000Interval in milliseconds that Management Center waits before requesting metrics from cluster members.
hazelcast.mc.jet.metrics.retentionSecsMC_JET_METRICS_RETENTION_SECS3600Interval in seconds that Management Center holds Jet metrics in memory.
hazelcast.mc.prometheusExporter.enabledMC_PROMETHEUS_EXPORTER_ENABLEDfalseWhether to expose all metrics to the /metrics endpoint to be consumed by Prometheus. All metrics at the endpoint include the hz_ prefix.
hazelcast.mc.prometheusExporter.timestamp.enabledMC_PROMETHEUS_EXPORTER_TIMESTAMP_ENABLEDtrue (enabled)Whether to send timestamp of the individual members' metrics to Prometheus.
hazelcast.mc.prometheusExporter.filter.metrics.includedMC_PROMETHEUS_EXPORTER_FILTER_METRICS_INCLUDED' ' (empty)Metrics to include in the /metrics endpoint.
hazelcast.mc.prometheusExporter.filter.metrics.excludedMC_PROMETHEUS_EXPORTER_FILTER_METRICS_EXCLUDED' ' (empty)Metrics to exclude from the /metrics endpoint.
hazelcast.mc.prometheusExporter.portMC_PROMETHEUS_EXPORTER_PORTPort on which the /metrics endpoint is exposed.
hazelcast.mc.prometheusExporter.printersV1,V2Which set of metrics to expose. See Prometheus metrics.

SQL browser and UI​

These properties configure the SQL browser and the UI:

PropertyEnvironment variableDefaultDescription
hazelcast.mc.clc.command.timeout.secondsHAZELCAST_MC_CLC_COMMAND_TIMEOUT_SECONDS120Time in seconds that Management Center waits for CLC to import a cluster's client configuration when it sets up the console for that cluster. If the import takes longer, Management Center stops it.
hazelcast.mc.sql.max-cell-lengthMC_SQL_MAXCELLLENGTH2048Max length of a cell in SQL query result, longer values are truncated.
hazelcast.mc.sql.max-row-countMC_SQL_MAXROWCOUNT1000Max number of rows returned by SQL batch query.
hazelcast.mc.ui.asyncTableThreshold500Tables bigger than the threshold are loaded asynchronously. You can't sort an asynchronous table.

Cluster connections​

These properties configure how Management Center communicates with clusters:

PropertyEnvironment variableDefaultDescription
hazelcast.mc.clientFiltering.modesMC_CLIENT_FILTERING_MODESALLOWLIST, DENYLISTAdjusts client filtering modes. Value must be set of ALLOWLIST and DENYLIST.
hazelcast.mc.clusterHealthCheck.excludeMC_CLUSTERHEALTHCHECK_EXCLUDEList of check identifiers to be excluded from Healthcheck. See Healthcheck.
hazelcast.mc.cluster.operation.timeout.millisMC_CLUSTER_OPERATION_TIMEOUT_MILLIS60000Timeout in milliseconds for Management Center operations that wait for a response from members.
hazelcast.mc.state.reschedule.delay.millisMC_STATE_RESCHEDULE_DELAY_MILLIS1000Duration in milliseconds that Management Center waits before requesting metadata from a Hazelcast cluster. Metadata includes a list of all data structures and their configurations.

Client connection strategy​

Use the following properties to configure the connection strategy of the Management Center client.

These properties apply to all clients that are started by Management Center.

PropertyEnvironment variableDefaultDescription
hazelcast.mc.client.max.backoff.millisMC_CLIENT_MAX_BACKOFF_MILLIS32000Upper limit of the backoff in milliseconds. Values must be between 32000 and 600000.
hazelcast.mc.client.backoff.multiplierMC_CLIENT_BACKOFF_MULTIPLIER2Factor by which to multiply the backoff after each failed retry. Values must be between 1 and 10.
hazelcast.mc.client.initial.backoff.millisMC_CLIENT_INITIAL_BACKOFF_MILLIS1000Duration in milliseconds that Management Center waits after the first connection failure before retrying. Values must be between 1000 and 60000.