New RelicのJavaエージェントを使用することで、JMXを介して最も一般的なアプリケーションサーバーが提供するその他のメトリクスを収集および確認できます。収集したメトリックスは、アプリケーションサーバーによって異なり、スレッドプール、HTTPセッション、そしてトランザクションに関する測定値を含んでいます。
JVMメトリックスを確認する  アプリケーションサーバーは、APMのJVMs ページに表示されるさまざまなメトリクスを収集して、これを報告します。(Heroku経由でNew Relicを使用したアプリケーションに関しては、JVMs ページがInstances 
最低でも、各アプリケーションサーバーは、オンメモリのメトリックデータを収集して報告します。JMXメトリックスを有効化する方法については、ご利用のアプリケーションサーバーのドキュメンテーションを参照してください。
以下の手順に従い、JVMメトリックスを確認します。
one.newrelic.com > All capabilities  > APM & services > (select an app) > Monitoring > JVMs > (select a JVM)
に移動します。
選択したJVMの
Memory 
ページから、 New Relicの標準的なユーザーインタフェース機能 のいずれかを使用して、詳細情報を掘り下げます。
他のメトリックスを確認するには、 利用可能なタブ を選択します。
オプション:スレッドプロファイラー を使用して、スレッド実行時のデータのボトルネックを見つけるには、
Profile this JVM 
を選択します。
one.newrelic.com > All capabilities  > APM & services > (select an app) > Monitoring > JVMs
アプリケーションサーバーごとに示す利用可能なタブ  この表は、アプリケーションサーバーに関してJVMページで表示されるタブを一覧化したものです。ご利用のアプリケーションサーバーが特定のメトリックデータを報告しない場合、そのタブはJVMページに表示されません。
アプリ<br>ケーション<br>サーバー
メモリ
スレッド<br>プール
HTTP<br>セッション
アプリケーションサーバートランザクション
データソース
Glassfish
JBoss 5AS
JBoss 6AS
JBoss 6EAP
JBoss 7EAP
JBoss 7AS
Jetty
Resin 3
Resin 4
Tomcat
TomEE
WebLogic
Websphere Liberty
Websphere Traditional
WildFly
タブごとに示す利用可能なメトリックス  以下は、JVMページで利用可能なメトリクスをまとめたものです。アプリケーションサーバーが特定のメトリックデータをサポートしない場合、そのタブはJVMページに表示されません。
JMX
メトリック表
メモリ
Heap memory usage: 
各表は、所与のヒープに関する使用済みおよび確定のヒープ領域をMBで示しています。
Non-heap memory pool usage for the JVM: 
使用済みコードキャッシュおよびCMS Perm GenをMBで表記。
Garbage collection: 
ガベージコレクションの CPU 時間。
Class count: 
JVMに関するロード済みおよび未ロードのクラス数。
スレッド
HTTP<br>セッション
アプリケーションサーバートランザクション
Active transaction: 
アプリケーションサーバーのトランザクションマネージャー内に存在する、アクティブなトランザクションの数。
Created transaction: 
アプリケーションサーバーごとの作成済みトランザクションの合計数の変化。一部のアプリケーションサーバーでは、トップレベルのトランザクションとネストされたトランザクションが分類されます。
Finished transaction: 
アプリケーションサーバーごとの完了済みトランザクションの合計数の変化。一部のアプリケーションサーバーでは、このトランザクションは中止されたトランザクションと確定および完了済みトランザクション別に分類されます。
データソース
アプリケーションサーバーごとに示すデータソースタブのメトリクス。詳しくは、アプリケーションサーバーごとに示すデータソースメトリクス を参照してください。WebLogicのデータソースメトリックスの詳細に関しては、WebLogic JMXメトリクス を参照してください。
アプリケーションサーバーごとに示すデータソースメトリックス  サポート対象のアプリケーションサーバーにおいては、エージェントがJMXデータソースメトリクスを収集します。これらのメトリクスはone.newrelic.com > All capabilities  > APM & services > (select an app) > Monitoring > JVMs > Data sources
アプリ<br>ケーション<br>サーバー
メトリクス
Tomcat
Websphere Liberty
Resin
TomcatでSpring Boot 2.2以上を有効にする Spring Boot 2.2以上を実行している時にNew Relicを有効にしてTomcat JMXメトリクスにアクセスするには、システムプロパティserver.tomcat.mbeanregistry.enabledをtrueに設定する必要があります。Spring Boot 2.2リリースノート をご覧ください。
WebSphere PMIメトリックスを有効化  New RelicがWebSphere PMIメトリックスにアクセスできるようにするには、WebSphereが必要な統計セットをモニターできるように構成する必要があります。
すべての統計セットを有効化(推奨) 最もシンプルなアプローチは、すべての統計セットの収集を有効化することです。
Java 2 Securityを使用している場合は、必ず New Relicに適切なアクセス権限を付与 したかどうかを確認してください。
WebSphereアドミンコンソールから、
Monitoring and Tuning > Performance Monitoring Infrastructure (PMI) > (your server name) 
を選択します。
Enable Performance Monitoring Infrastructure (PMI) 
チェックボックスを選択します。
Currently monitored statistic set 
セクションから、
All 
を選択して、変更内容を保存します。
カスタム統計セットを有効化(上級編) また、New RelicがデフォルトでモニターしているPMIメトリクスのみを収集することもできます。以下の手順に従い、一部のPMIメトリックスのみを収集します。
Java 2 Securityを使用している場合は、必ず New Relicに適切なアクセス権限を付与 したかどうかを確認してください。
WebSphereアドミンコンソールから、
Monitoring and Tuning > Performance Monitoring Infrastructure (PMI) > (selected app server) 
を選択します。
Enable Performance Monitoring Infrastructure (PMI) 
チェックボックスを選択します。
Custom 
を選択します。 カスタム統計セットリストから、以下のメトリックスを有効にします。
ThreadPool 
カテゴリから、
ActiveCount 
および
PoolSize 
のチェックボックスを選択します。
Servlet Session Manager 
カテゴリから、
ActiveCount 
および
LiveCount 
のチェックボックスを選択します。
Transaction Manager 
カテゴリから、
CommittedCount 
、
RolledbackCount 
および
GlobalTimeoutCount 
のチェックボックスを選択します。
Messages 
パネルから、
Save directly to the master configuration 
を選択します。
収集済みWebSphere PMIメトリックス  これを有効にすると、New Relicは以下のWebSphere PMIメトリクスを収集します。これらのPMIメトリックス以外を収集して、New Relicカスタムダッシュボードに表示したい場合は JMXインストゥルメンテーション を利用してください。
stats.ActiveCount WebSphere PMI metrics 
Details 
属性
stats.ActiveCount
オブジェクト名パターン
WebSphere:type=ThreadPool,name=*,process=*,platform=*,node=*,* 
New Relicメトリックス
JmxBuiltIn/ThreadPool/WebContainer/Active 
タイプ 
シンプル
maximumSize WebSphere PMI metrics 
Details 
属性
maximumSize
オブジェクト名パターン
WebSphere:type=ThreadPool,name=*,process=*,platform=*,node=*,* 
New Relicメトリックス
JmxBuiltIn/ThreadPool/WebContainer/Max 
タイプ 
シンプル
stats.CommittedCount WebSphere PMI metrics 
Details 
属性
stats.CommittedCount
オブジェクト名パターン
WebSphere:j2eeType=JTAResource,type=TransactionService,name=*,process=*,platform=*,node=*,* 
New Relicメトリックス
JmxBuiltIn/JTA/TransactionService/Committed 
タイプ 
シンプル
stats.RolledbackCount WebSphere PMI metrics 
Details 
属性
stats.RolledbackCount
オブジェクト名パターン
WebSphere:j2eeType=JTAResource,type=TransactionService,name=*,process=*,platform=*,node=*,* 
New Relicメトリックス
JmxBuiltIn/JTA/TransactionService/Rolled Back 
タイプ 
シンプル
stats.GlobalTimeoutCount WebSphere PMI metrics 
Details 
属性
stats.GlobalTimeoutCount
オブジェクト名パターン
WebSphere:j2eeType=JTAResource,type=TransactionService,name=*,process=*,platform=*,node=*,* 
New Relicメトリックス
JmxBuiltIn/JTA/TransactionService/Timed Out 
タイプ 
シンプル
stats.LiveCount WebSphere PMI metrics 
Details 
属性
stats.LiveCount
オブジェクト名パターン
WebSphere:type=SessionManager,name=*,process=*,platform=*,node=*,* 
New Relicメトリックス
JmxBuiltIn/Session/DefaultApplication#DefaultWebApplication.war/Active 
タイプ 
シンプル
WebLogic JMXメトリックス  WebLogicでは、デフォルトでJMXが有効になっています。New Relicは、以下のmbeans メトリクスを収集します。
ThreadCount WebLogic JMX metrics 
Details 
属性
ThreadCount
オブジェクト名パターン
New Relicメトリックス
JmxBuiltIn/Threads/Thread Count 
タイプ 
シンプル
TotalStartedThreadCount WebLogic JMX metrics 
Details 
属性
TotalStartedThreadCount
オブジェクト名パターン
New Relicメトリックス
JmxBuiltIn/Threads/TotalStartedCount 
タイプ 
シンプル
LoadedClassCount WebLogic JMX metrics 
Details 
属性
LoadedClassCount
オブジェクト名パターン
java.lang:type=ClassLoading 
New Relicメトリックス
JmxBuiltIn/Classes/Loaded 
タイプ 
シンプル
UnloadedClassCount WebLogic JMX metrics 
Details 
属性
UnloadedClassCount
オブジェクト名パターン
java.lang:type=ClassLoading 
New Relicメトリックス
JmxBuiltIn/Classes/Unloaded 
タイプ 
シンプル
HoggingThreadCount WebLogic JMX metrics 
Details 
属性
HoggingThreadCount
オブジェクト名パターン
com.bea:ServerRuntime=*,Name=ThreadPoolRuntime,Type=ThreadPoolRuntime 
New Relicメトリックス
JmxBuiltIn/ThreadPool/{Name}/Active 
タイプ 
シンプル
ExecuteThreadIdleCount WebLogic JMX metrics 
Details 
属性
ExecuteThreadIdleCount
オブジェクト名パターン
com.bea:ServerRuntime=*,Name=ThreadPoolRuntime,Type=ThreadPoolRuntime 
New Relicメトリックス
JmxBuiltIn/ThreadPool/{Name}/Idle 
タイプ 
シンプル
StandbyThreadCount WebLogic JMX metrics 
Details 
属性
StandbyThreadCount
オブジェクト名パターン
com.bea:ServerRuntime=*,Name=ThreadPoolRuntime,Type=ThreadPoolRuntime 
New Relicメトリックス
JmxBuiltIn/ThreadPool/{Name}/Standby 
タイプ 
シンプル
TransactionTotalCount WebLogic JMX metrics 
Details 
属性
TransactionTotalCount
オブジェクト名パターン
com.bea:ServerRuntime=*,Name=JTARuntime,Type=JTARuntime 
New Relicメトリックス
JmxBuiltIn/JTA/{Name}/Count 
タイプ 
Monotonic
TransactionCommittedTotalCount WebLogic JMX metrics 
Details 
属性
TransactionCommittedTotalCount
オブジェクト名パターン
com.bea:ServerRuntime=*,Name=JTARuntime,Type=JTARuntime 
New Relicメトリックス
JmxBuiltIn/JTA/{Name}/Committed 
タイプ 
Monotonic
TransactionRolledBackTotalCount WebLogic JMX metrics 
Details 
属性
TransactionRolledBackTotalCount
オブジェクト名パターン
com.bea:ServerRuntime=*,Name=JTARuntime,Type=JTARuntime 
New Relicメトリックス
JmxBuiltIn/JTA/{Name}/Rolled Back 
タイプ 
Monotonic
TransactionAbandonedTotalCount WebLogic JMX metrics 
Details 
属性
TransactionAbandonedTotalCount
オブジェクト名パターン
com.bea:ServerRuntime=*,Name=JTARuntime,Type=JTARuntime 
New Relicメトリックス
JmxBuiltIn/JTA/{Name}/Abandoned 
タイプ 
Monotonic
NumAvailable WebLogic JMX metrics 
Details 
属性
NumAvailable
オブジェクト名パターン
com.bea:ServerRuntime=*,Name=*,Type=JDBCDataSourceRuntime 
New Relicメトリックス
JmxBuiltIn/DataSources/{Name}/Connections/Available 
タイプ 
シンプル
CurrCapacity WebLogic JMX metrics 
Details 
属性
CurrCapacity
オブジェクト名パターン
com.bea:ServerRuntime=*,Name=*,Type=JDBCDataSourceRuntime 
New Relicメトリックス
JmxBuiltIn/DataSources/{Name}/Connections/PoolSize 
タイプ 
シンプル
ConnectionsTotalCount WebLogic JMX metrics 
Details 
属性
ConnectionsTotalCount
オブジェクト名パターン
com.bea:ServerRuntime=*,Name=*,Type=JDBCDataSourceRuntime 
New Relicメトリックス
JmxBuiltIn/DataSources/{Name}/Connections/Created 
タイプ 
Monotonic
ActiveConnectionsCurrentCount WebLogic JMX metrics 
Details 
属性
ActiveConnectionsCurrentCount
オブジェクト名パターン
com.bea:ServerRuntime=*,Name=*,Type=JDBCDataSourceRuntime 
New Relicメトリックス
JmxBuiltIn/DataSources/{Name}/Connections/Active 
タイプ 
シンプル
LeakedConnectionCount WebLogic JMX metrics 
Details 
属性
LeakedConnectionCount
オブジェクト名パターン
com.bea:ServerRuntime=*,Name=*,Type=JDBCDataSourceRuntime 
New Relicメトリックス
JmxBuiltIn/DataSources/{Name}/Connections/Leaked 
タイプ 
Monotonic
PrepStmtCacheCurrentSize WebLogic JMX metrics 
Details 
属性
PrepStmtCacheCurrentSize
オブジェクト名パターン
com.bea:ServerRuntime=*,Name=*,Type=JDBCDataSourceRuntime 
New Relicメトリックス
JmxBuiltIn/DataSources/{Name}/Statement Cache/Size 
タイプ 
シンプル
WaitingForConnectionCurrentCount WebLogic JMX metrics 
Details 
属性
WaitingForConnectionCurrentCount
オブジェクト名パターン
com.bea:ServerRuntime=*,Name=*,Type=JDBCDataSourceRuntime 
New Relicメトリックス
JmxBuiltIn/DataSources/{Name}/Requests/Currently Waiting 
タイプ 
シンプル
WaitingForConnectionTotal WebLogic JMX metrics 
Details 
属性
WaitingForConnectionTotal
オブジェクト名パターン
com.bea:ServerRuntime=*,Name=*,Type=JDBCDataSourceRuntime 
New Relicメトリックス
JmxBuiltIn/DataSources/{Name}/Requests/Count 
タイプ 
Monotonic
WaitingForConnectionSuccessTotal WebLogic JMX metrics 
Details 
属性
WaitingForConnectionSuccessTotal
オブジェクト名パターン
com.bea:ServerRuntime=*,Name=*,Type=JDBCDataSourceRuntime 
New Relicメトリックス
JmxBuiltIn/DataSources/{Name}/Requests/Successful 
タイプ 
Monotonic
WaitingForConnectionFailureTotal WebLogic JMX metrics 
Details 
属性
WaitingForConnectionFailureTotal
オブジェクト名パターン
com.bea:ServerRuntime=*,Name=*,Type=JDBCDataSourceRuntime 
New Relicメトリックス
JmxBuiltIn/DataSources/{Name}/Requests/Failed 
タイプ 
Monotonic
AccessTotalCount - MissTotalCount WebLogic JMX metrics 
Details 
属性
AccessTotalCount - MissTotalCount
オブジェクト名パターン
com.bea:ServerRuntime=*,Name=*,ApplicationRuntime=*,Type=EJBPoolRuntime,EJBComponentRuntime=*,* 
New Relicメトリックス
JmxBuiltIn/EJB/Pool/Bean/{ApplicationRuntime}/{EJBComponentRuntime}/{Name}/Attempts/Successful 
タイプ 
Monotonic
MissTotalCount WebLogic JMX metrics 
Details 
属性
MissTotalCount
オブジェクト名パターン
com.bea:ServerRuntime=*,Name=*,ApplicationRuntime=*,Type=EJBPoolRuntime,EJBComponentRuntime=*,* 
New Relicメトリックス
JmxBuiltIn/EJB/Pool/Bean/{ApplicationRuntime}/{EJBComponentRuntime}/{Name}/Attempts/Failed 
タイプ 
Monotonic
WaiterCurrentCount WebLogic JMX metrics 
Details 
属性
WaiterCurrentCount
オブジェクト名パターン
com.bea:ServerRuntime=*,Name=*,ApplicationRuntime=*,Type=EJBPoolRuntime,EJBComponentRuntime=*,*> 
New Relicメトリックス
JmxBuiltIn/EJB/Pool/Bean/{ApplicationRuntime}/{EJBComponentRuntime}/{Name}/Threads/Waiting 
タイプ 
シンプル
DestroyedTotalCount WebLogic JMX metrics 
Details 
属性
DestroyedTotalCount
オブジェクト名パターン
com.bea:ServerRuntime=*,Name=*,ApplicationRuntime=*,Type=EJBPoolRuntime,EJBComponentRuntime=*,* 
New Relicメトリックス
JmxBuiltIn/EJB/Pool/Bean/{ApplicationRuntime}/{EJBComponentRuntime}/{Name}/Beans/Destroyed 
タイプ 
Monotonic
BeansInUseCurrentCount WebLogic JMX metrics 
Details 
属性
BeansInUseCurrentCount
オブジェクト名パターン
com.bea:ServerRuntime=*,Name=*,ApplicationRuntime=*,Type=EJBPoolRuntime,EJBComponentRuntime=*,* 
New Relicメトリックス
JmxBuiltIn/EJB/Pool/Bean/{ApplicationRuntime}/{EJBComponentRuntime}/{Name}/Beans/Active 
タイプ 
シンプル
PooledBeansCurrentCount WebLogic JMX metrics 
Details 
属性
PooledBeansCurrentCount
オブジェクト名パターン
com.bea:ServerRuntime=*,Name=*,ApplicationRuntime=*,Type=EJBPoolRuntime,EJBComponentRuntime=*,* 
New Relic metric 
JmxBuiltIn/EJB/Pool/Bean/{ApplicationRuntime}/{EJBComponentRuntime}/{Name}/Beans/Available 
Type 
シンプル
TransactionsCommittedTotalCount +TransactionsRolledBackTotalCount +TransactionsTimedOutTotalCount WebLogic JMX metrics 
Details 
属性
TransactionsCommittedTotalCount +TransactionsRolledBackTotalCount +TransactionsTimedOutTotalCount
オブジェクト名パターン
com.bea:ServerRuntime=*,Name=*,ApplicationRuntime=*,Type=EJBTransactionRuntime,EJBComponentRuntime=*,* 
New Relicメトリックス
JmxBuiltIn/EJB/Transactions/Application/{ApplicationRuntime}/Count 
タイプ 
Monotonic
TransactionsCommittedTotalCount WebLogic JMX metrics 
Details 
属性
TransactionsCommittedTotalCount
オブジェクト名パターン
com.bea:ServerRuntime=*,Name=*,ApplicationRuntime=*,Type=EJBTransactionRuntime,EJBComponentRuntime=*,* 
New Relicメトリックス
JmxBuiltIn/EJB/Transactions/Application/{ApplicationRuntime}/Committed 
タイプ 
Monotonic
TransactionsRolledBackTotalCount WebLogic JMX metrics 
Details 
属性
TransactionsRolledBackTotalCount
オブジェクト名パターン
com.bea:ServerRuntime=*,Name=*,ApplicationRuntime=*,Type=EJBTransactionRuntime,EJBComponentRuntime=*,* 
New Relicメトリックス
JmxBuiltIn/EJB/Transactions/Application/{ApplicationRuntime}/Rolled Back 
タイプ 
Monotonic
TransactionsTimedOutTotalCount WebLogic JMX metrics 
Details 
属性
TransactionsTimedOutTotalCount
オブジェクト名パターン
com.bea:ServerRuntime=*,Name=*,ApplicationRuntime=*,Type=EJBTransactionRuntime,EJBComponentRuntime=*,* 
New Relicメトリックス
JmxBuiltIn/EJB/Transactions/Application/{ApplicationRuntime}/Timed Out 
タイプ 
Monotonic