3 Replies Latest reply on May 28, 2003 12:37 PM by Jon Barnett

    "Big" JSP Performance Issue in 3.0.7 w/ Tomcat

    F Zemen Newbie

      I'm seeing a disconcerting effect on JBoss 3.0.7 w/Tomcat.

      With large JSP generated servlet (e.g. the JSP outputs about 300 kb of HTML), which contains JSTL and some custom tags, we frequently get a drop in performance somewhere during the JSP rendering. For instance, a typical timing for the JSP would be 200 ms on the instrumentation hardware, but we get a jump to 2, 3 or even 4 seconds. The jump in the timing does not occur at any one point in the processing, i.e. it is not repeatable, and we have exhausted possibilities in the JSP code itself or the custom tags.

      Our conclusion is that there is some background process running, or the thread of execution itself is busy doing something in the Tomcat or JBoss code.

      Has anyone seen this behavior?

        • 1. Re: "Big" JSP Performance Issue in 3.0.7 w/ Tomcat
          Jon Barnett Master

          A little hard to judge based on the information you give. But the JSP should be compile once only during the container lifetime. So most likely there is not going to be a compiler issue. How many processors have you allocated for Tomcat's listeners? How much load are you generating? How much heap space have you allocated? Are you noticing any thrashing?

          Check the Tomcat pages, also looking at the Jasper section for an understanding of the tuning issues with Tomcat.

          It sounds like a blocking problem but there is not enough information abut the nature and characteristics of the load to make even a rough guess on where to look.

          • 2. Re: "Big" JSP Performance Issue in 3.0.7 w/ Tomcat
            F Zemen Newbie

            Thanks for the tips.

            I'm the only user, there are more than enough threads. The database is local to the same box the app server is on (a desktop xp), there's ample memory for the VM and there's no thrashing (monitoring the box with perfmon).

            I'll take a look at the Jasper pages.

            • 3. Re: "Big" JSP Performance Issue in 3.0.7 w/ Tomcat
              Jon Barnett Master

              I guess that you should at least turn it off development mode for Jasper, keep generated and no reloading.

              If I'm reading this correctly, you say it is on a desktop XP. Are you sure it is not having a Windows moment - such as tying up processor doing inexplicable Windows things such as AD related-bursts, tcp/ip stack seizures and other things that put a halt to other services? Just a question.