Memory consumption when using DriverManager.getConnection with UCanAccess

I use JDBC along with UCanAccess to create a connection to an MS Access file through a direct path to a file to store a specific table in a JSON object. However my line of code

conn = DriverManager.getConnection(s1+inFilePath, user, pass);

where conn is the uninitialized Connection object that creates the connection, causing a memory leak, which ultimately causes the GC limit to be exceeded.

Is there any way around this problem? I tried resizing the heap without any results.

+4
source share
1 answer

This is not a memory leak. UCanAccess consumes memory as part of normal operation.

UCanAccess HSQLDB Access SQL, . , Access , 30 , UCanAccess ~ 30 .

;memory=false URL- UCanAccess HSQLDB , . , (.. ).

UCanAccess "" , . , "main.accdb",

  • Access, , "link.accdb"
  • "link.accdb" , "main.accdb",
  • UCanAccess "link.accdb" .

, UCanAccess .

UCanAccess; . - UCanAccess.

+2

All Articles