I start my terracotta clients with "-Dcom.tc.l1.cachemanager.enabled=false". Then I have started the admin console and watched the "Object Flush Rate" and I have seen that those clients still flush out some objects (not many, but sometimes I have a smal peak).
Any ideas how I can avoid that any objects are flushed?
The word "flush" in the admin console can be a little misleading. The object count you see under "flush rate" is the number of objects that are no longer resident in the local heap. This might happen because:
1. All references to the objects were cleared by the application and they were garbage collected or
2. If the memory utilization of the application heap is high and the Terracotta Memory Manager had to clear references to the object as part of the LFU+LRU object eviction policies.
You are seeing objects being GCed as per case 1 above.