top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Maximum number of JSP?

0 votes
404 views

I'm facing performance issue with my application which loads a very large number of different JSPs (ie 16 000). As the application loads the different JSP, the response time becomes longer and the CPU increases.

I have tried many configurations by modifying the maxLoadedJsp, PermgenSize, jspIdleTimeout parameters, but without having positive results.

I'd like to know if there are known limitations regarding the max number of JSP loaded in an application that could be used without facing performance issue ?

Configuration : Tomcat 7.0.52 with Oracle Java 1.6.0.45 on Linux RHEL

posted Apr 11, 2014 by Sanketi Garg

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

My first reaction upon reading that number of JPS's above would be : let's enable Garbage Collector logging, and look at what it says.

Maybe also, just to give us an idea, you could tell us how much memory that system has, and how much is given to use by Tomcat ?

As far as I first understand such things, each of these JSP's gets compiled into a servlet, and the code of that servlet is held in memory for an extended period of time, even if unused at any particular moment. So this is 16000 servlets probably coexisting (un-)happily inside that JVM. No wonder..
Or am I totally off the mark here, Tomcat/Java experts ?

answer Apr 11, 2014 by Sidharth
Similar Questions
0 votes

I have a number of documents that are very template like and ideal for JSP that are
1) not intended for the web and
2) need to be automatically batch processed (the output stored in output files).

How do I call the JSP processor from them command line? (it takes tomcat too long to see updated files for the purpose I have in mind)

...