I know the java-chronicle is backed by the mapped file to write huge data kept outside the heap space, to the file.
While testing the IndexedChronicle and the VanillaChronicle in my application, I saw there is a raise in main memory by > 1 GB. I write around 10-30 million messages, runs for 2-3 minutes. While running the IndexedChronicle the main memory increases was very little. why? In case of VanillaChronicle, I see the increase in the memory by 1+GB. Now I am in a position to explain this to my QA, and also, my manager.
Another problem I saw was, after writing 20 million records I put the writer thread to sleep for 30 seconds. The main memory did not decrease from the raised 1GB, till the application quits! Is it the expected behavior? When does chronicle free the main memory? Or do the chronicle always maintain the 1GB in the memory? Is there a way to change, increase/decrease, this amount? Anything to do with VanillaChronicleConfig?
regards