I create my sqlite DB connection by using memory mode:
connection = DriverManager.getConnection("jdbc:sqlite:file:" + dbName + "?mode=memory&cache=shared")
And then use WAL-mode by excute: "pragma journal_mode=WAL"
I found that the memory size growing all the time when insert/delete operation. And it can not release even i call the wal_checkpoint(TRUNCATE).