BigFish Online Help
Caption | Description |
Cache Name | The Cache Name |
Size | The number of entries in the cache. One entry per unique SQL query |
Hits | The number of “hits” whereby a specific SQL query is matched to a prior execution of that query. |
Misses / NF / EXP / SR | The numbers of “misses” – incremented when a specific SQL query needs to make a trip to the database in order to retrieve data. A subsequent matching SQL call will be counted as a “Hit”
|
removes: H/M | The count of how many elements have been removed from cache.
|
Max in Memory | The maximum number of entries that should be held in a specific cache store. Typically set to zero, which indicates an unlimited number.
Expire Time The time, in milliseconds, after which the cache is available for cleanup.
If an entry has expired it is treated as if it does not exist, it will be retrieved, found to be expired and made available for cleanup. |
Use Soft Ref? | Use Soft Reference.
An indicator whether this Cache is available for cleanup. A subsequent JVM garbage collection may unlink the object reference if memory is required. Note: OFBiz defaults, for entity-list and entity-primary-key caches set this to “true”. If set to “false” then the specific cache will NEVER be released for garbage collection. If too many caches are set to “false” then there is a possibility for out-of-memory issues which will basically bring your application down. |
Use File Store? | True indicates that the cache can grow beyond the memory limit and will push additional elements to disk. This has limited usefulness when caching database information since the processing required to integrate with the file system is roughly equivalent to retrieving from a database. For OFBiz internal structures this can prove useful and caching to disk can reduce the time required to retrieve/parse many things that are not stored in the database. We recommend that this is set to false unless there is specific knowledge or requirements to use a File Store. |
Actions: | |
Elements | A link to view all the individual queries held in the cache. This will show a number of rows that matches the “Size” attribute above. |
Edit | A link to enable Edit of the cache properties. Can change Max-in-Memory, Expire-Time and Use-Soft-Ref settings. |
Clear | A link that will remove all cached entries. |
Caption | Description |
Cache Element Key | Essentially a representation of the SQL query |
Expire Time | The time when the cache element will expire and be available for garbage collection. Zero means it will not expire. |
Bytes |
|
Actions: | |
Remove | Clear the specific element cache |
Entity: SOME_TABLE | ||
ST_ID | ST_TYPE | ST_DESCRIPTION |
1 | 1 | Blue Shirt |
2 | 1 | Red Shirt |
3 | 2 | Blue Pants |
4 | 2 | Red Pants |
5 | 2 | Yellow Pants |
6 | 3 | Red Socks |
Entity: SOME_TABLE | ||
ST_ID | ST_TYPE | ST_DESCRIPTION |
1 | 1 | Blue Shirt |
2 | 1 | Red Shirt |
3 | 2 | Blue Pants |
4 | 2 | Red Pants |
5 | 2 | Yellow Black Pants |
6 | 3 | Red Socks |
The Xms and Xmx settings should be the same.
By setting the Xms value to something significantly lower than the Xmx simply means that the JVM will need to monitor, allocate, grow heap, and perform many other activities to generally manage memeory.
By setting the Xms to the Xmx value, the JVM will be far less active and intrusive and the application is guaranteed to have adequate memory.