.
, , . , , .
, . . . MaxPermSize JVM. .
This approach will have a limitation, even if you can transfer large datasets for a single user, it can go outOfMemory for multiple users.
An offer that may work for you.
Break it in an asynchronous process. Create large datasets to separate a process and load these datasets from another process.
When creating accessible datasets, you can very well control memory consumption using stream-based loading.
source
share