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.

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_HOMEHome directory where metrics, executed SQL queries, and configuration settings are saved. See Configure Management Center.
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.

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' ' (empty)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.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.
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-sizeHAZELCAST_MC_WEBSOCKET_BUFFER_SIZE5MBThe buffer size of the WebSocket connection MC uses for SQL operations.

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.disableHostnameVerificationfalseWhether Management Center does not verify the hostname of signed TLS/SSL certificates.
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_KEYSTORE_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_KEYSTORE_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_KEYSTORE_TYPEJCEKSType of the keystore.
hazelcast.mc.existingKeyStore.providerMC_EXISTING_KEYSTORE_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.enableHttpPortMC_TLS_ENABLE_HTTP_PORTWhether 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_AUTHENTICATIONOPTIONALWhether clients connected to Management Center are authenticated:

REQUIRED: If the client does not provide a keystore or the provided keys are not included in the Management Center's truststore, the client will not be authenticated.
OPTIONAL: If the client does not provide a keystore, it will be authenticated. But, if the client provides keys that are not included in the Management Center's truststore, the client will not be authenticated.
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_PERIODMaximum amount of time for the disable login period. By default, the disabled login period is 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​

These properties configure connections to LDAP and Active Directory servers:

PropertyEnvironment variableDefaultDescription
hazelcast.mc.ldap.timeoutMC_LDAP_CONN_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.
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.
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.
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.
mc.ad.ssl.trustManagerAlgorithmMC_AD_SSL_TRUST_MANAGER_ALGORITHMSystem defaultName of the algorithm based on which the authentication keys are provided.

JMX​

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_HOST_NAMEServer'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.mutualAuthenticationMC_JMX_SSL_MUTUAL_AUTH_ENABLEDfalseWhether 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_TYPE' ' (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_ALGORITHMName 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_TLS_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_SIZE2Number of threads that are used to consume metrics from cluster members. See Historical metrics.
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.printersMC_PROMETHEUS_EXPORTER_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.sql.max-cell-lengthMC_MC_SQL_MAX_CELL_LENGTH2048Max length of a cell in SQL query result, longer values are truncated.
hazelcast.mc.sql.max-row-countMC_MC_SQL_MAX_CELL_LENGTH1000Max number of rows returned by SQL batch query.
hazelcast.mc.ui.asyncTableThresholdMC_UI_ASYNC_TABLE_THRESHOLD500Tables 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.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.

PropertyDefaultDescription
hazelcast.mc.client.max.backoff.millis30000Upper limit of the backoff in milliseconds. Values must be between 30000 and 600000.
hazelcast.mc.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.millis1000Duration in milliseconds that Management Center waits after the first connection failure before retrying. Values must be between 1000 and 60000.