Sun GlassFish Enterprise Server v3 Scripting Framework Guide

Monitor Rails Applications on Enterprise Server v3

The Enterprise Server v3 offers monitoring services for various objects.

Monitoring is the process of reviewing the statistics of a system to improve performance or solve problems. The monitoring service can track and display operational statistics, such as the number of requests per second, the average response time, and the throughput. For more information on monitoring, see Chapter 8, Administering the Monitoring Service, in Sun GlassFish Enterprise Server v3 Administration Guide.

Monitoring for JRuby Container

The JRuby Container installed on the Enterprise Server can be configured to be monitored. By default the monitoring services are disabled.

Monitoring can be configured for the container using the following asadmin CLI command:

configure-jruby-container --monitoring=true

The monitoring service can be enabled or disabled. Enable monitoring for GlassFish JRuby container with the following runtime command:

enable-monitoring --modules jruby-container=HIGH

The other possible values are OFF or LOW. Disable the monitoring for JRuby container with the following command:

disable-monitoring --modules jruby-container=OFF

Viewing JRuby Container Statistics

JRuby statistics are available from asadmin CLI as well as from Administration Console. To learn more about different types of JRuby statistics available from Enterprise Server, see JRuby Statistics in Sun GlassFish Enterprise Server v3 Administration Guide.