sqlite-jdbc icon indicating copy to clipboard operation
sqlite-jdbc copied to clipboard

Major memory leak

Open aliakhtar opened this issue 6 years ago • 7 comments

Details: https://stackoverflow.com/questions/56883748/memory-leak-with-jdbc-sqlite

aliakhtar avatar Jul 04 '19 08:07 aliakhtar

I also found physical memory leak issue after close sqlite connection, how to insure release physical memory?

guangwei-qiao avatar Sep 25 '19 07:09 guangwei-qiao

@guangwei-qiao I moved from Sqlite to CQEngine and it saved me from a lot of headaches & issues & improved performance a lot. I'd suggest doing the same if you have a primarily read-based workflow.

aliakhtar avatar Sep 25 '19 07:09 aliakhtar

@guangwei-qiao I moved from Sqlite to CQEngine and it saved me from a lot of headaches & issues & improved performance a lot. I'd suggest doing the same if you have a primarily read-based workflow.

Excellent suggestion! however, my scenario is to save memory, CQEngine is not very suitable!

guangwei-qiao avatar Sep 25 '19 07:09 guangwei-qiao

@guangwei-qiao For saving memory I'd suggest trying Eclipse J9 JDK if you're using Oracle / Hotspot: https://adoptopenjdk.net/

I think CQEngine can also be used with filed based / persistent indexes in which case it won't load the data up front in memory.

aliakhtar avatar Sep 25 '19 07:09 aliakhtar

@guangwei-qiao For saving memory I'd suggest trying Eclipse J9 JDK if you're using Oracle / Hotspot: https://adoptopenjdk.net/

I think CQEngine can also be used with filed based / persistent indexes in which case it won't load the data up front in memory.

thanks a lot, will try it.

guangwei-qiao avatar Sep 25 '19 07:09 guangwei-qiao

#528 may have fixed your issue

A248 avatar Oct 08 '20 13:10 A248

Is this still happening on the latest version?

gotson avatar Jul 28 '22 08:07 gotson