Description
When running OpenJPA mailboxes for apache james we notice a memory leak when running imapSync.
This was originaly spotted on top of the MySQL driver but was reproduced on top of Derby embedded DB. See attached screenshot showing the memory of the container gradually increasing when running the following command:
./imapsync --host1 xxx.linagora.com --user1 'btellier@linagora.com' --password1 'xxxx' \ --host2 james.local --user2 'bob@localhost' --password2 123456
Credit: https://www.mail-archive.com/server-user@james.apache.org/msg16729.html