Can Optimizeit remote profile JSPs running in a application/web server?

By: Christopher Moeller

Abstract: Understanding how JSPs operate.


I would like to use Optimizeit to track memory usage in JSP applications which are running in an application/web server. Is it possible to remote profile JSPs using Optimizeit in this way?


Optimizeit it is able to profile Java classes.

What you would need to do is use Optimizeit to connect remotely to the application/web server and then profile one of the servlets generated from the JSP. This is because JSPs are basically HTML. A single line of JSP code may generate a bunch of java code at runtime, which is then compiled by the Web server into a servlet class file (which is what you really want to profile, anyway). You would use Optimizeit to then target that servlet class.

Server Response from: ETNASC04