This post originated from an RSS feed registered with Java Buzz
by Andrej Koelewijn.
Original Post: Profiling Mendix using JProfiler
Feed Title: Andrej Koelewijn
Feed URL: http://feeds.feedburner.com/AndrejKoelewijn
Feed Description: On Oracle, Java and OpenSource
JProfiler is a Java profiler which can give you insight into what a running application is doing: which methods are consuming the most cpu, how many objects are created, etc. Jprofiler also shows you information about jdbc calls and sql statements executed by your java application.
Setting up Jprofiler to profile a Mendix runtime is easy, you can start profiling a running Mendix runtime, without reconfiguration or restarting the application.
The installation guide provides a more complete manual, but the basic steps are:
download and install Jprofiler on a desktop, this will be the client gui
download and unzip Jprofiler on your server, start bin/jpenable (see see section B.3.10 Attaching To JVM of the manual)
Start the client on your desktop, connect to a remote server on the port indicated by jpenable
Here are some screenshots:
Choose to profile an application on a remote server
My Mendix application is running in a virtual machine running Linux
Choose which Java you are using
I’ve already started the Mendix runtime
IP Address of my virtual machine
Directory in the virtual machine where i unzipped Jprofiler
This is the port returned by running bin/jpenable
Start
Choose how you want Jprofiler to collect information about your application
This is just default setup
And finally where looking at some data collected by Jprofiler