JConsole: Monitor Mule App JVM in Local Environment

This document covers the capability of JConsole to monitor a MuleSoft App/API deployed in Local Environment. This tool is packaged with all JDKs and is super helpful in monitoring the Java Virtual Machine (JVM) in which MuleSoft deploys via Anypoint Studio. Developers can use this capability to check their application's performance even before deploying the API to CloudHub. Metrics like Heap Memory Usage, Threads, CPU Usage, etc., when available in the Local Environment, help with application optimizations and load testing. To demonstrate this, I've created a sample Mule App that will stress the CPU & Memory of JVM to monitor the usage in JConsole. Sample Mule Code <ee:transform doc:name=" CPU Stress " doc:id="34ec8c32-5795-4ad6-b966-5b38ab673052" > <ee:message > <ee:set-payload ><![CDATA[%dw 2.0 output application/json fun fib(n) = if (n <= 1) n else fib(n - 1) + fib(n - 2) --- fib(40)]]></ee:set-payload> </ee...