Performance issues using H2 DB in embedded mode with heavy load of data in database
I am working a java application using H2 Database in embedded mode. My Application consumes 150mb of heap memory. Problem: Steps When I load H2 database with 2 mb of data, database access is fast and heap memory size 160mb. But When I load H2 database with 30 mb of data(h2 db file size =30 mb). Then accessing the database from my application is very slow. the reason being my application heap size is hugely grown to 300mb of size hence degraded performance. I confirmed using JConsole. So my understanding is since H2 database is developed using java and since I am using H2 database in embedded