{"id":10489,"date":"2017-09-26T06:08:48","date_gmt":"2017-09-26T04:08:48","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/using-weblogic-12c-restful-management-for-monitoring-weblogic-domains\/"},"modified":"2024-09-11T08:51:06","modified_gmt":"2024-09-11T06:51:06","slug":"using-weblogic-12c-restful-management-for-monitoring-weblogic-domains","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/using-weblogic-12c-restful-management-for-monitoring-weblogic-domains\/","title":{"rendered":"Using WebLogic 12C RESTful management for monitoring WebLogic Domains"},"content":{"rendered":"<p>WebLogic 12.2.1 provides a new RESTful management interface with full accesses to all WebLogic Server resources. This interface offers an alternative to the WLST scripting or JMX developments for the management and the monitoring of WebLogic Domains.<\/p>\n<p>The following of this blog provides a few examples demonstrating the simplicity and the efficiency of the REST requests.<\/p>\n<p><strong>WebLogic Server State<br \/>\n<\/strong>When checking a WebLogic Server state, we are interested in the state and in the \u201cActivationTime\u201d that shows the last time the server was started. Low value can indicate the server was restarted recently and may be automatically by the node manager after a crash.<br \/>\nThe following RESTful URL requests the state of a WebLogic Server named \u201cserver1\u201d<\/p>\n<pre class=\"brush: actionscript3; gutter: false; first-line: 1\">https:\/\/host01:7002\/management\/weblogic\/latest\/domainRuntime\/serverRuntimes\/server1?fields=state,activationTime&amp;links=none\n<\/pre>\n<p>Output:<\/p>\n<pre class=\"brush: actionscript3; gutter: false; first-line: 1\">{\n\"state\": \"RUNNING\",\n\"activationTime\": 1470982524188\n}\n<\/pre>\n<p>The following RESTful URL requests the state of all WebLogic Servers in a domain:<\/p>\n<pre class=\"brush: actionscript3; gutter: false; first-line: 1\">https:\/\/host01:7002\/management\/weblogic\/latest\/domainRuntime\/serverRuntimes?fields=name,state,activationTime&amp;links=none\n<\/pre>\n<p>Output:<\/p>\n<pre class=\"brush: actionscript3; gutter: false; first-line: 1\">{\n\"name\": \"AdminServer\",\n\"state\": \"RUNNING\",\n\"activationTime\": 1473234973467\n},\n{\n\"name\": \"server2\",\n\"state\": \"RUNNING\",\n\"activationTime\": 1473235510682\n},\n{\n\"name\": \"server1\",\n\"state\": \"RUNNING\",\n\"activationTime\": 1473235506258\n}<\/pre>\n<p><strong>Get JVM Key Metrics<\/strong><br \/>\nMonitoring the memory usage provides a good view on how the application behaves regarding memory consumption. Even if the memory management is a JVM task, the WebLogic Server mbeans can be queried for some heap usage information.<br \/>\nThe following RESTful URL requests the JVM key metrics of a WebLogic Server named \u201cserver1\u201d<\/p>\n<pre class=\"brush: actionscript3; gutter: false; first-line: 1\">https:\/\/host01:7002\/management\/weblogic\/latest\/domainRuntime\/serverRuntimes\/server1\/JVMRuntime?links=none&amp;fields=heapSizeCurrent,heapFreeCurrent,heapFreePercent,heapSizeMax\n<\/pre>\n<p>Output:<\/p>\n<pre class=\"brush: actionscript3; gutter: false; first-line: 1\">{\n\"heapSizeCurrent\": 259588096,\n\"heapFreeCurrent\": 101962840,\n\"heapSizeMax\": 518979584,\n\"heapFreePercent\": 72\n}<\/pre>\n<p><strong>Get WebLogic Threads key metrics<\/strong><br \/>\nWhen WebLogic opens up too many threads to service the load, there is a decrease in performance, due to the resources (CPU, Memory) usage.<\/p>\n<pre class=\"brush: actionscript3; gutter: false; first-line: 1\">https:\/\/host01:7002\/management\/weblogic\/latest\/domainRuntime\/serverRuntimes\/server1\/threadPoolRuntime?links=none&amp;fields=executeThreadIdleCount,hoggingThreadCount,pendingUserRequestCount,completedRequestCount,throughput,healthState\n<\/pre>\n<p>Output:<\/p>\n<pre class=\"brush: actionscript3; gutter: false; first-line: 1\">{\n\"executeThreadIdleCount\": 0,\n\"completedRequestCount\": 4652,\n\"pendingUserRequestCount\": 0,\n\"throughput\": 1.999000499750125,\n\"hoggingThreadCount\": 0,\n\"healthState\": {\n\"state\": \"ok\",\n\"subsystemName\": null,\n\"partitionName\": null,\n\"symptoms\": []\n}\n}\n<\/pre>\n<p><strong>Get JDBC Runtime Metrics<\/strong><br \/>\n\u201cActive Connection Current Count\u201d, \u201cCurrent Connection High Count\u201d, \u201cWaiting for Connection High count\u201d allows you to validate that you have the correct amount of resources available to service the client\u2019s needs. It\u2019s also helpful to determine if you need to increase or decrease the pool size. While \u201cWait Seconds High Count\u201d, \u201cWaiting for Connection Failure Total\u201d and \u201cConnection Delay Times\u201d can be used to determine DB responsiveness and how the clients are impacted by the connection pool size.<\/p>\n<pre class=\"brush: actionscript3; gutter: false; first-line: 1\">https:\/\/host01:7002\/management\/weblogic\/12.2.1.0\/domainRuntime\/serverRuntimes\/server1\/JDBCServiceRuntime\/JDBCDataSourceRuntimeMBeans\/myDS?links=none&amp;fields=name,activeConnectionsCurrentCount,activeConnectionsHighCount,waitingForConnectionHighCount,waitSecondsHighCount,waitingForConnectionFailure\n<\/pre>\n<p>Output:<\/p>\n<pre class=\"brush: actionscript3; gutter: false; first-line: 1\">{\n\"name\": \u201cmyDS\",\n\"state\": \"Running\",\n\"activeConnectionsCurrentCount\": 4,\n\"activeConnectionsHighCount\": 8,\n\"waitingForConnectionFailureTotal\": 0,\n\"waitingForConnectionHighCount\": 0,\n\"waitSecondsHighCount\": 0,\n}\n<\/pre>\n<p><strong>Get Application Runtime Metrics<\/strong><br \/>\nWe can fetch some useful information like \u201chow many sessions were connected to the application\u201d and how many concurrent sessions\u201d<\/p>\n<pre class=\"brush: actionscript3; gutter: false; first-line: 1\">https:\/\/host01:7002\/management\/weblogic\/latest\/domainRuntime\/serverRuntimes\/server1\/applicationRuntimes\/SimpleAuctionWebAppDb\/componentRuntimes?fields=openSessionsCurrentCount,sessionsOpenedTotalCount,openSessionsHighCount&amp;links=none\n<\/pre>\n<p>Output:<\/p>\n<pre class=\"brush: actionscript3; gutter: false; first-line: 1\">{\n\"openSessionsCurrentCount\": 12,\n\"sessionsOpenedTotalCount\": 255,\n\"openSessionsHighCount\": 15\n}\n\n<\/pre>\n<p>The WebLogic REST management allows to access directly the WebLogic MBeans without any additional resource cost. The Monitoring tools can only benefit from this WebLogic RESTful interface. \u00a0As WebLogic RESTful requests used for Monitoring are simple, the java plugin for the dbi monitoring has been developed in two days.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WebLogic 12.2.1 provides a new RESTful management interface with full accesses to all WebLogic Server resources. This interface offers an alternative to the WLST scripting or JMX developments for the management and the monitoring of WebLogic Domains. The following of this blog provides a few examples demonstrating the simplicity and the efficiency of the REST [&hellip;]<\/p>\n","protected":false},"author":40,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[197,59],"tags":[],"type_dbi":[],"class_list":["post-10489","post","type-post","status-publish","format-standard","hentry","category-application-integration-middleware","category-oracle"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Using WebLogic 12C RESTful management for monitoring WebLogic Domains - dbi Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbi-services.com\/blog\/using-weblogic-12c-restful-management-for-monitoring-weblogic-domains\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Using WebLogic 12C RESTful management for monitoring WebLogic Domains\" \/>\n<meta property=\"og:description\" content=\"WebLogic 12.2.1 provides a new RESTful management interface with full accesses to all WebLogic Server resources. This interface offers an alternative to the WLST scripting or JMX developments for the management and the monitoring of WebLogic Domains. The following of this blog provides a few examples demonstrating the simplicity and the efficiency of the REST [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/using-weblogic-12c-restful-management-for-monitoring-weblogic-domains\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi Blog\" \/>\n<meta property=\"article:published_time\" content=\"2017-09-26T04:08:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-09-11T06:51:06+00:00\" \/>\n<meta name=\"author\" content=\"Middleware Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Middleware Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/using-weblogic-12c-restful-management-for-monitoring-weblogic-domains\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/using-weblogic-12c-restful-management-for-monitoring-weblogic-domains\/\"},\"author\":{\"name\":\"Middleware Team\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1\"},\"headline\":\"Using WebLogic 12C RESTful management for monitoring WebLogic Domains\",\"datePublished\":\"2017-09-26T04:08:48+00:00\",\"dateModified\":\"2024-09-11T06:51:06+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/using-weblogic-12c-restful-management-for-monitoring-weblogic-domains\/\"},\"wordCount\":387,\"commentCount\":0,\"articleSection\":[\"Application integration &amp; Middleware\",\"Oracle\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/using-weblogic-12c-restful-management-for-monitoring-weblogic-domains\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/using-weblogic-12c-restful-management-for-monitoring-weblogic-domains\/\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/using-weblogic-12c-restful-management-for-monitoring-weblogic-domains\/\",\"name\":\"Using WebLogic 12C RESTful management for monitoring WebLogic Domains - dbi Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\"},\"datePublished\":\"2017-09-26T04:08:48+00:00\",\"dateModified\":\"2024-09-11T06:51:06+00:00\",\"author\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/using-weblogic-12c-restful-management-for-monitoring-weblogic-domains\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/using-weblogic-12c-restful-management-for-monitoring-weblogic-domains\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/using-weblogic-12c-restful-management-for-monitoring-weblogic-domains\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/www.dbi-services.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Using WebLogic 12C RESTful management for monitoring WebLogic Domains\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/\",\"name\":\"dbi Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1\",\"name\":\"Middleware Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g\",\"caption\":\"Middleware Team\"},\"url\":\"https:\/\/www.dbi-services.com\/blog\/author\/middleware-team\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Using WebLogic 12C RESTful management for monitoring WebLogic Domains - dbi Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dbi-services.com\/blog\/using-weblogic-12c-restful-management-for-monitoring-weblogic-domains\/","og_locale":"en_US","og_type":"article","og_title":"Using WebLogic 12C RESTful management for monitoring WebLogic Domains","og_description":"WebLogic 12.2.1 provides a new RESTful management interface with full accesses to all WebLogic Server resources. This interface offers an alternative to the WLST scripting or JMX developments for the management and the monitoring of WebLogic Domains. The following of this blog provides a few examples demonstrating the simplicity and the efficiency of the REST [&hellip;]","og_url":"https:\/\/www.dbi-services.com\/blog\/using-weblogic-12c-restful-management-for-monitoring-weblogic-domains\/","og_site_name":"dbi Blog","article_published_time":"2017-09-26T04:08:48+00:00","article_modified_time":"2024-09-11T06:51:06+00:00","author":"Middleware Team","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Middleware Team","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/using-weblogic-12c-restful-management-for-monitoring-weblogic-domains\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/using-weblogic-12c-restful-management-for-monitoring-weblogic-domains\/"},"author":{"name":"Middleware Team","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1"},"headline":"Using WebLogic 12C RESTful management for monitoring WebLogic Domains","datePublished":"2017-09-26T04:08:48+00:00","dateModified":"2024-09-11T06:51:06+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/using-weblogic-12c-restful-management-for-monitoring-weblogic-domains\/"},"wordCount":387,"commentCount":0,"articleSection":["Application integration &amp; Middleware","Oracle"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/using-weblogic-12c-restful-management-for-monitoring-weblogic-domains\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/using-weblogic-12c-restful-management-for-monitoring-weblogic-domains\/","url":"https:\/\/www.dbi-services.com\/blog\/using-weblogic-12c-restful-management-for-monitoring-weblogic-domains\/","name":"Using WebLogic 12C RESTful management for monitoring WebLogic Domains - dbi Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"datePublished":"2017-09-26T04:08:48+00:00","dateModified":"2024-09-11T06:51:06+00:00","author":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1"},"breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/using-weblogic-12c-restful-management-for-monitoring-weblogic-domains\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/using-weblogic-12c-restful-management-for-monitoring-weblogic-domains\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/using-weblogic-12c-restful-management-for-monitoring-weblogic-domains\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Using WebLogic 12C RESTful management for monitoring WebLogic Domains"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1","name":"Middleware Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g","caption":"Middleware Team"},"url":"https:\/\/www.dbi-services.com\/blog\/author\/middleware-team\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/10489","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/40"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=10489"}],"version-history":[{"count":1,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/10489\/revisions"}],"predecessor-version":[{"id":34719,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/10489\/revisions\/34719"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=10489"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=10489"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=10489"},{"taxonomy":"type","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/type_dbi?post=10489"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}