Memory usage for using display: table jstl tag

I wrote my jsp using <display:table>to display search results. The parameter <display:table>requires passing a javabean list as an argument. Currently, the controller will create a list, then jsp will display it.

My concern is what happens if 1000 users search at a time. This means that all results must be loaded into memory as different javabean lists <display:table>for display. The system may crash due to out of memory. Are there any good strategies to prevent running out of memory on your system? Is there an application-level way to limit the number of users to download an application? Would this mean that use <display:table>is a bad programming practice, since all records must be loaded into memory right away? Thanks in advance.

+3
source share
2 answers

. . , Displaytag . Java. , , , HTTP- , .

, JSP, . JSF, PrimeFaces '<p:dataTable dynamic="true"> . , . , Hibernate / JPA.

"plain vanilla" JSP/JSTL . , , firstrow . : ResultSet to Pagination.

+4

Source: https://habr.com/ru/post/1756869/


All Articles