-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Chirag,
On 5/23/13 11:11 PM, Chirag Dewan wrote: > Chris, > > The profiler shows very high CPU utilization in Tomcat threads. > > As I said before a lot of time was spent during the > ResponseFacade.setContentType() method call. That doesn't tell the > whole story but more or less the high utilization is mainly in the > tomcat threads. Unless you are starting your own threads, all threads are "Tomcat threads". The threading doesn't matter: it's the method calls that matter. So, profiling still shows that RequestFaade.setContentType is still taking the majority of time? By how much? Can you give us some data? Just because RequestFacade.setContentType is taking most of the time doesn't mean that it's actually a bottleneck. But... recent changes to that particular method will definitely take more time than it has in the past. Can you give us some usage data? Since you are profiling a "simple" webapp, can you post the code somewhere? I would hope that "simple" content-types would sail right through that method, while complex content-types (with parameters, etc.) will take longer. > The thing which puzzles me the most is I am able to scale the > req/sec with multiple clients on Tomcat 6 and the same doesn't > happen on Tomcat 7? > > Can it be the JVM? Would it help trying with a latter version of > JVM? If you are using the same JVM for both Tomcat 6 and Tomcat 7, it's unlikely to be the JVM. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJRn382AAoJEBzwKT+lPKRYXecP/1E5lg/CkoHCCw61V9QMaNSX 0NzxHtGRc3JQ+Zm9kQAGZpP9rSUEJH5TfFkmn7zYrTfadObA2HmInJnjQljjDQch kAYz9sPmkDDPho82RKBxXUh6IGxikByKl4iEMwPoCdfj22iJT5hxr0kI16RQhjEa VWBFoBE/lYZv7pnNwEgNBKfRP0iKIyFf0kvPXjNJCn4L9MYuCkKTAlXdDdNHlv3N LLK8eMTraOvGvqYd6IGj85bhs47l/uV9PASlIWqsCJB4SpeI/fbSKH7mhsilK316 x63uj/Qw/PAU4k037+QDu+cG3X6eVMnYHkQfIGmRjyzmHw3yIujWsnf0qUXLjh5A F4Vz2+y/iNCNkww00aaxrMZphEmiWZpY2eG3GqMstNU1IQYFdRT+/+teBLY9CDkr uzXaE1xcpZmZMiinLhBuZEaWd4CH/t8i6znjfQeHBCwhwKH+k/A4Obu/EPN7I29/ dPYzxmlCdEXl4x9UTk5hLcImSJMTukrWbnWL9B6KFuywNab5/9W8GGnd0Jv2dE8P ovh0zDfmrQomxE1Vep7W3VksPZyHNwV+z07pzZ/YUKoYTDuTNvRW8QlFPkpnkqzo xNrfsAA1se+3puEkeH+tun6t/243r9CoVIFw43gUivUzN1gUqaJm3f27AJwvDVa7 0o8zCFm5Qq5Wfla2HdBW =dpKM -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org