M
mdema@diesel
Hi,
I have a JTable which is filled up by a List<Book> (Book is an Entity
class).
The filling itself is made by:
listBooks = query.getResultList();
updateTable(listBooks);
where "query" is a Query object of JPA.
My problem is that, after making a search in the DB, I think that memory
is not freed, because, for example, if I make a search with no
parameters (which returns me more or less 20000 records), the first time
it works while the seconds JVM throws java.lang.OutOfMemoryError: Java
heap space.
I wanted to know how could I "free" all the memory after I updated the
JTable...
Thank you very much.
Bye
I have a JTable which is filled up by a List<Book> (Book is an Entity
class).
The filling itself is made by:
listBooks = query.getResultList();
updateTable(listBooks);
where "query" is a Query object of JPA.
My problem is that, after making a search in the DB, I think that memory
is not freed, because, for example, if I make a search with no
parameters (which returns me more or less 20000 records), the first time
it works while the seconds JVM throws java.lang.OutOfMemoryError: Java
heap space.
I wanted to know how could I "free" all the memory after I updated the
JTable...
Thank you very much.
Bye