I
itreflects
Hello,
I have JSP performance related concern.
Here is the situation: My Database table has 10,000 records, I fetch
these records in a servlet and do all the necessary calculation on each
record and come up with a set of say 10 parameters for each record. All
these 10 parameters per record are displayed in a JSP and 10,000 are
iterated in JSP and shown in HTML table.
In servlet class I am storing all 10 parameters in a Vector object and
adding this Vector object to an ArrayList object. This ArrayList object
I am putting in session (HttpSession) to make it available to JSP page.
All is well, page works fine.Concern is that it takes around 3 minutes
to load onto browser.
My questions are:
How can time to load the JSP page be reduced?
Is storing such a large ArrayList object in session a good practice?
what are the alternatives to make huge data available to JSP?
Any comments are welcome.
Note: I am Using server with 2GB RAM and 2.4 GHz processor, app server
is Tomcat 5.5.Don't think increasing RAM would help.
I have JSP performance related concern.
Here is the situation: My Database table has 10,000 records, I fetch
these records in a servlet and do all the necessary calculation on each
record and come up with a set of say 10 parameters for each record. All
these 10 parameters per record are displayed in a JSP and 10,000 are
iterated in JSP and shown in HTML table.
In servlet class I am storing all 10 parameters in a Vector object and
adding this Vector object to an ArrayList object. This ArrayList object
I am putting in session (HttpSession) to make it available to JSP page.
All is well, page works fine.Concern is that it takes around 3 minutes
to load onto browser.
My questions are:
How can time to load the JSP page be reduced?
Is storing such a large ArrayList object in session a good practice?
what are the alternatives to make huge data available to JSP?
Any comments are welcome.
Note: I am Using server with 2GB RAM and 2.4 GHz processor, app server
is Tomcat 5.5.Don't think increasing RAM would help.