Leen Toelen 11.Feb.09 10:39 AM a Web browser Toolkits 7.0.3 Windows XP
I am using the java api (notes.jar) to connect to a local notes client. This works fine, but I am leaking memory. My program is running as a standalone java process (inside an OSGI container) using jdk6.
I have multiple threads that all access the same databases at the same time, and I don't have control over the Threads, so I need to use NotesThread.sinitThread and NotesThread.stermthread. I am sure that I am recycling every notes Object that I use, and that sTermthread is called for every sinitThread (although multiple times for the same Java Thread).
When i look at the java heap (using VisualVm) the heap size stays the same, so I am confident that I don't keep java objects in memory somewhere.
Does anyone have an explanation for this? When I am not using any database, I would like tot completely release the notes api. Is this possible?