What's the point of the Jasper PageContext pool?

The name says a lot about everything.

The problem is that the jasper PageContext pool creates by default a pool of 8 PageContext elements in the local data of the web container stream stream. If the BodyContent objects that are stored there are large, this can lead to significant data that, together with the streams of web containers, lives long enough to end up in the old generation of the Java heap, where the cost is much higher than in eden space .

If and only if the thread pool is so large that creating / deleting threads is really rare, then the only problem is the size of the resulting data. However, what are the benefits of a pool in the first place?

+6
source share

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


All Articles