Artifactory JMX MBeans

JMX MBeans provides a framework for monitoring and managing Java applications, such as the Artifactory service. Artifactory exposes MBeans under the org.jfrog.artifactory domain, which enables you to monitor repositories, executor pools, storage, and HTTP connection pools.

📘

Note

Monitor JFrog platform services that are not Java applications using Open Metrics.

JMX MBeans Repositories

This section lists the available repositories under the current instance of Artifactory.

The following table lists the read-only attributes.

Read-Only AttributeDescription
RepositoryKeyName of the repository
ArtifactsCountNumber of artifacts in the repository
ArtifactsTotalSizeTotal size of all of the artifacts in the repository

JMX MBeans Federated Repositories

This section describes the Federated repository read-only attributes.

Read-Only AttributeDescription
MaximumLagInMsThe maximum lag value from among all Federated repositories in milliseconds
NumberOfDisabledFederationMembersThe number of disabled Federation members (local and remote)
NumberOfReposExceedingLagThresholdThe total number of Federated repositories that have a sync lag larger than the default threshold
NumberOfMirrorsExceedingLagThresholdThe total number of mirrors (Federation members) that have a sync lag larger than the default threshold
📘

Note

For more information about Federated repository MBeans, see Federated Repository Metrics in MBeans.

JMX MBeans Executor Pools

This section lists the executor pools used by Artifactory.

The following table lists the read-only attributes.

Read-Only AttributeDescription
CorePoolSizeExecutor pool size
MaximumPoolSizeMaximum size of the executor pool
ActiveCountNumber of active executors
LargestPoolSizeThe largest pool size that has been active at any one time
TaskCountTotal number of tasks that have ever been scheduled for execution
CompletedTaskCountTotal number of tasks that have been completed by the executors
PendingTasksThe number of tasks waiting to be processed by the executor pool

JMX MBeans Storage

This section describes File System Binary Storage and Database Data Source read-only attributes.

Binary Storage

There is only one File System Binary Storage read-only attribute.

Read-Only AttributeDescription
SizeTotal size of Artifactory storage in bytes

Data Source

The following table lists the database Data Source read-only attributes.

Read-Only AttributeDescription
UrlDatabase URL
MaxIdleMaximum number of idle database connections allowed
MaxWaitTimeout in ms when attempting to get a free connection
MinIdleMinimum number of idle database connections to maintain
MaxActiveMaximum number of active connections to the database
ActiveConnectionsCountNumber of active database connections
IdleConnectionsCountNumber of idle database connections
SelectQueriesCountThe total number of SQL SELECT DB queries that have been executed since Artifactory startup
UpdateQueriesCountThe total number of SQL UPDATE DB queries that have been executed since Artifactory startup

JMX MBeans HTTP Connection Pools

Artifactory supports JMX MBeans for the following HTTP resources:

  • Remote repositories
  • Distribution Repositories
  • FederatedStatusService
  • Xray Client Connection
  • Replication Queues
  • Event propagation service for Artifactory HA cluster nodes

The following read-only attributes are available for each HTTP connection pool.

Read-Only AttributeDescription
AvailableNumber of available connections
LeasedNumber of currently active connections
MaxThe maximum number of connections possible
PendingThe number of connections in process and pending completion
ActiveConnectionsThe current number of active connections in the pool
IdleConnectionsThe current number of idle connections in the pool
TotalConnectionsThe total number of connections in the pool
ThreadsAwaitingConnectionThe total number of threads awaiting connection from the pool

Connection Pool Config

The following read-only configuration attributes are available for each HTTP connection pool.

Read-Only AttributeDescription
MaximumPoolSizeThe maximum number of connections that can be kept in the pool
ConnectionTimeoutThe maximum number of milliseconds that a client will wait for a connection from the pool
ValidationTimeoutThe maximum number of milliseconds that the pool will wait for a connection to be validated as alive
PoolNameThe name of the connection pool
MaxLifetimeThe maximum connection lifetime of the pool in milliseconds
IdleTimeoutThe maximum amount of time that a connection is allowed to sit idle in the pool (in milliseconds)
CatalogThe default catalog name to be set on connection in the pool
MinimumIdleThe minimum number of idle connections that is maintained in the pool
UsernameThe default username used for DataSource.getConnection (username, password) calls in the pool
PasswordThe default password used for DataSource.getConnection (username, password) calls in the pool
LeakDetectionThresholdThe amount of time that a connection can be out of the pool before a message is logged indicating a possible connection leak

JMX MBeans Events

The following table lists event-related attributes for:

  • events.create
  • events.delete
  • events.props
  • events.update
Read-Only AttributeDescription
CountThe total number of metrics that have occurred since Artifactory startup
FifteenMinuteRateThe average rate of events per time unit over the past 15 minutes
OneMinuteRateThe average rate of events per time unit over the past minute
RateUnitThe time unit used to measure rates for metrics
MeanRateThe average rate of metrics per time unit since Artifactory startup

All of the metrics described in the table above can be turned on/off using the metrics.enabled property in org.jfrog.storage.DbProperties. The default value is false.

JMX MBeans Logging

To support log analytics, Artifactory implements log appenders that send log information to Sumo Logic.

You can monitor the following log appenders through JMX MBeans.

  • Access
  • Console
  • Request
  • Traffic

For each log appender, Artifactory displays the following read-only attributes:

Read-Only AttributeDescription
QueueMaxSizeThe maximum number of log entries the queue can hold
QueueCurrentSizeThe current number of log entries in the queue
QueueDiscardingThresholdBelow this remaining capacity threshold, trace and debug log entries will be discarded
BatchMaxSizeThe maximum number of log entries a batch can contain before it is processed
BatchCurrentSizeThe size of the current batch pending to be sent to Sumologic
BatchQuietPeriodThe time window (in milliseconds) log entries are collected in a batch before it is being sent to Sumologic
CategoryHeaderThe category header value which is sent to Sumologic for this appender