-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Shanti,
On 4/15/14, 10:51 AM, Shanti Suresh wrote: > Taking it one step further, could I request some recommendations on > how we might profile Java code running inside Tomcat? Often, I am > stuck with finding out why an application is slow. It could be a > consistent, progressive or a sudden problem. These applications > do not expose metrics via MBeans. Say, for e.g., a vendor > application which has been heavily customized in-house. You need to use a Profiler for that. There are a number of fine Profilers available for Java. I use YourKit because they give free licenses to ASF committers. > In Tomcat, is there a way to go deeper into the performance of the > code for root-cause analysis and isolate a section of the code or a > flow in the code for troubleshooting? How would one go about > getting to that place? Let's say, there is no budget for > purchasing tools in that space. Tomcat provides no such tools. You can use jconsole for a bit of profiling, but I've never used it heavily. Honestly, if there is no budget for such tools, then there is no budget for improving the performance of your application. You'll have to convince someone with a higher level of clearance that customer needs are worth spending money. > I find Chris' example on writing filters to map to URL patterns for > response-time metrics relevant. I would also like stall counts, > concurrent invocations etc. What is a stall-count? How would you record "concurrent invocations", etc.? - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJTTXM7AAoJEBzwKT+lPKRY/g8P/3hdbqYf5I2s0LaxiHexJ27I tTouN/Gk0+kmOapdoPUxXECC8q/LF51I7aCF5L2D/XY5Jgu5Vx5grwvoZWVdAS5N OB54gLvOq1toVSGTI7C7POqg8S7gqdj1Ec5BCrxiI0HGmSWNYcDQoFNWXL+srE6L xes6o1Kfhlvs/cjmhWagooaGvaNY1Wu7DyhJowaTmWzDecvEmIS+A3ysuSoB+g4B Myc61ZR4Imul6+0iRm59dWjE5ID9cqK9jr5NzFUIcy2zJaCIkNV1SKnliWkZBgp/ b/B7pUWfTnjUiX4lEDjH9WYL6cXO/fkwL70yue1iki/u+MqOJn7c+Qyo2VzRtn1W iYHpm5BKngNER8r/4AhzV7ZvqGlmqOoLHqmh88Seiq8AAcloLdDkXWhR/GQzHkuk +ESCRv5qUmmDwOdk1wcuMjGOk10+tN5zc2ZfrJlchYxVKvPaxHFcFVSczlcb+Bok heetKDK2PZlYlzQ0iACwBHLzmaU/Jycmv3+zVOucBmyeZZBUX6GpAjG2lsh0QPlG DhIPj1PHuC6OYsIGbVeLFirFRo/hS+XwACaY/qBVyyGd9k6NRjtpQ9RMQvb2dUGu CPh52SBzgyOGGu9dZ1EaYSC7Vl21DySDmWr8eUMxIjEYinr0rc5Mv1VqOQEWaWy9 rixRAxhweuazzCqGnat7 =0i+1 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org