SQLite java memory usage increases until an outofmemory exception -


I use SQLite in the Java program. When the Java program is running, many queries are sent to the database, as well as the temporary tables are created in the archive and then deleted (using the DROP).

The problem is that when the number of different tasks in the database increases, then the memory usage from the Java program also increases. As a result, the program crashes at some point with an exception or exception. I use PRAGMA temp_store = 2 to keep the temporary table in memory, but each time I was removed (using DROP tablename) before creating another I

what is the database with the journal Anything to do? How do I solve this problem?

With your view of the program it is impossible to say what is the problem. Do you have the results of the questions running in the database of memory? If your program is written in such a way that you have a lot of JDBC result sets and the garbage collector can not set the weather, then they are safe to release the memory, which you can easily run away from memory.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -