[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
persistence strategy and disk usage  XML
Forum Index -> BigMemory Go to Page: Previous  1, 2
Author Message
Chris3x

journeyman

Joined: 01/08/2014 11:52:58
Messages: 12
Offline

There are multiple caches.

I was running refreshes like every 5 minutes. I did have a look through the code and found that it was doing alot more cache writes then i expected when doing updates, i've optimized (dont delete/write if i dont have to etc) that so I will let you know how that goes after testing.

The selfpopulatingcaches don't actually have much in them, but there refreshes update some elements in other caches (pretty convoluted i know it just evolved that way when i went to bigmemory).
Chris3x

journeyman

Joined: 01/08/2014 11:52:58
Messages: 12
Offline

So my optimisation has drastically reduced the rate of growth of my diskstore, but it is still growing.

I've also confirmed im not mistakenly actually creating more keys, all im doing is updating existing elements.

Is there a way to determine what policy the compactor is running with?
Chris3x

journeyman

Joined: 01/08/2014 11:52:58
Messages: 12
Offline

I worked out how to change the compaction policy, tried SizedBasedCompationPolicy but it just chewed all the disk up quickly.
Chris3x

journeyman

Joined: 01/08/2014 11:52:58
Messages: 12
Offline

So I found the offline compactor, when i run it over my cache data it does significantly reduce it's size. So I think we can assume that the compactor threads are never running for whatever reason. Is there any way to progamatically trigger the compaction? Or do I need to roll my own?
Chris3x

journeyman

Joined: 01/08/2014 11:52:58
Messages: 12
Offline

I really need to solve this problem. Ideas?
 
Forum Index -> BigMemory Go to Page: Previous  1, 2
Go to:   
Powered by JForum 2.1.7 © JForum Team