1. Ehcache and Java stackoverflow.comI am using ehCache to store larges amount of data. This cache is accessed about 3 times every second and must be kept up to date. I have a thread that runs which ... |
2. Accessing same ehcache from 2 different war files stackoverflow.comI have 2 different webapps (package into different war files) which needs to share some data via a cache (ehcache). I want to test out this idea with you to see ... |
3. EHCache Disable/Shutdown stackoverflow.comIs there a way to disable ehache externally using a property file? CacheManager.shutdown() doesnt seem to work? Actually we have 2 app with the same source code i require ehcache in one and ... |
4. Cache integrity problem stackoverflow.comI have an application that uses ehcache for cache (but I think this problem is framework-agnostic), with a method interceptor so basically if I mark my method for caching something like ... |
5. When using ehcache, what synchronization do I need to do? stackoverflow.comLet's say I start with a single CacheManager like this: private static CacheManager manager = CacheManager.create(); When I call getCache or addCache do I need to synchronize on the ... |
6. ehcache LRU evicting recently used entries stackoverflow.comUsing Ehcache , after Java app works 2.5 days, I have this statistic
|
7. ehcache update checker stackoverflow.com12:18:55,541 INFO [UpdateChecker] New update(s) found: 2.0.0 [http://ehcache.org/news.html] How do I suppress ehcache checking for new update(s), this is happening while loading my j2ee application and when ehcache is getting initialized. ... |
8. Ehcache midnight/nightly expiration strategy stackoverflow.comIt's not immediately obvious to me how to set EhCache to expire an entire cache nightly/at midnight. I can easily do this programmatically via a job of some sort, but ... |
9. Coldfusion 8 and HTTP PUT - is there a way to PUT an object? stackoverflow.comWe are using EHCache with CF 8 to cache stuff on a central server using a RESTful interface over HTTP. I am trying to cache a cfquery object to the cache ... |
10. atomic writes to ehcache stackoverflow.comContext I am storing a java.util.List inside ehcache.
The ordered List contains a Top 10 ranking of my most active users.
Problem
Concurrent 3rd party clients might be requesting for this list.
I have ... |
11. How to differentiate between time to live and time to idle in ehcache stackoverflow.comThe docs on ehache says:
|
12. Sharing data between two instances in a load balanced java web application stackoverflow.comI want to cache data in a java web application deployed on multiple instances. We are using spring 2.5.6. What is the easiest caching library to configure and use with spring? ... |
13. Programatic cache creation stackoverflow.comI switched from xml to programmatically cache creation and now I can't retrieve my cache by name. Here's a code snippet that shows what I'm doing maybe you can spot an obvious ... |
14. Ehcache hangs in test stackoverflow.comI am in the process of rewriting a bottle neck in the code of the project I am on, and in doing so I am creating a top level item that ... |
15. Infinispan equivalent to ehcache's copyOnRead and copyOnWrite stackoverflow.comI am planning to implement a cache solution into an existing web app. Nothing complicated: basically a concurrent map that supports overflowing to disk and automatic eviction. Clustering the cache could ... |
16. EhCache default cache in java stackoverflow.comI have this configuration for ehCache:
|
17. JCache with Oracle Coherence stackoverflow.comOracle Coherence states that it is "JCache-compliant". How can I take my code written against JSR-107, specifically the ehcache-jcache jar, and run it against Oracle Coherence? ... |
18. How to cache rarely changed many-to-one entity in CF ORM? stackoverflow.comHow to cache rarely changed many-to-one entity in CF ORM, such as, userType where there are only < 10 types? I don't want the extra select to get the type ... |
19. EHCache And Java Serialization Versioning Control stackoverflow.comEHCache allows for persistance of the cache, and it requires all objects that are being cached to be Serializable. The objects that are being serialized and written to the Disk ... |
20. When overFlowToDisk gets activated in EHCACHE? stackoverflow.comI have some questions on "overflowToDisk" attribute of element? 1) I read at this URL that : overflowToDisk sets whether element can overflow to disk when the memory store has ... |
21. ehcache memorystoresize and diskstoresize stackoverflow.com[Avatar] 2010-09-23 18:20:41 IST I have the following configuration for my ehcache.
|
22. Cache tags with Ehcache stackoverflow.comI have 2 functions: first
that I want to cache (taking into account parameters of function), and second
that should drops cache of function "doA" ... |
23. ehcache cache "streams" of data stackoverflow.comI want to cache the response to image requests. The images are the results of dynamic resizing of a larger image. I am using ehcache already for some caching. I would like ... |
24. Is there a Faster way to Clear a Custom Cache Using the cacheGetSession Object? stackoverflow.comI know I can use ColdFusion cache APIs to clear data as such:
But in practice retrieving all the ids (i.e. cacheGetAllIds() ) to ... |
25. Ehcache - using a List |
26. Does EHCache require put() in order for changes to instance to reflect (XA)? stackoverflow.com
|
27. Ehcache multiple JVM - opensource? stackoverflow.comHey I'm currently running ehcache with spring in tomcat. I have a couple webs servers running their own instance of ehcache which I want to now moved to a shared/distributed cache. ... |
28. EhCache 1.4.1 and Monitoring stackoverflow.comI am using one product which use ehcache 1.4.1 and I want to monitor the cache managed by that application. I saw that Terecotta released the EhCache monitor recently but it ... |
29. Ehcache - using SelfPopulatingCache when data is not present stackoverflow.comI am using the EhCache's decorator |
30. Sharing JGroups comm channel with EHCache stackoverflow.comI'd like to use JGroups replication w/ EHCache and also share the communication channel with my own app. What's the recommended way to do this? (Similar to JBoss's "shared transport" feature) ... |
31. How do I determine programmatically if ehcache is running? stackoverflow.comI have a large java application that is configured to use JPA and Hibernate. It is also supposedly configured to use ehcaching for both entity and query caching. However, ... |
32. How to implement Self Populating EHcache? stackoverflow.comCould you please give me the steps to implement SelfPouplatingEhcache. Regards, Raju |
33. How to get SelfPopulatingCache object reference stackoverflow.comI able to create SelfpopulatinCache within the methodcacheinterceptor using aop.Now How to get SelfPopulatingCache object reference in my spring controller?.Thanks in Advance. Regards, Raj |
34. Administration Of EhCahe stackoverflow.comIs there any common JSP or page that can provide functionality to see the caches names, their size or contents or provide option to delete elements from cache or remove all ... |
35. EhCache with JGroups usage in webapp stackoverflow.comWe are using EhCache with JGroups in our webapp for cache replication . But every time I hot deploy the webapp I find that net.sf.ehcache.distribution.jgroups.JGroupsCacheReplicator$ReplicationThread continues to run and holds references ... |
36. How to use velocity + ehcache? stackoverflow.comHI! I've searched the internet, and even the ehcache 200+ pages has a word velocity in it on 3 occasions. Well, my plan is to use annotations like @cahcable. As far as ... |
37. How to renew or invalidate cache using SimpleCachingPageFilter in Ehcache? stackoverflow.comwe are using web-ehcache's net.sf.ehcache.constructs.web.filter.SimplePageCachingFilter, that configured by xml, to cache page where is JSON message, but this message can be changed by administrator. How to invalidate cache when administrator changes ... |
38. Compare and Swap (CAS) implementation in EhCache stackoverflow.comI am trying to find an equivalent of MemCache's CASMutator.cas in EhCache. Essentially, I am swapping out EhCache for MemCache and need to implement an interface that calls for setting ... |
39. CacheManager.create() very slow stackoverflow.comI am running an application using ehcache on an arm (arm5, no floating point unit) based machine, tested using both jamvm and openjdk and with a compact flash based rootfs (which ... |
40. Ehcache - Asynchronous Cache Loading stackoverflow.comI have a requirement to support refreshing of a cache in a background loader thread. The idea being that, the background loader periodically refreshes cached values without blocking threads wanting to ... |
41. Cache vs HashMap for simple usecase stackoverflow.comThis must be a very basic:- Just curious, If I don't need distributed, cache-as-sor models, why do we need third party cache libraries (ehcache, memcached) when all you need (for simple ... |
42. How to determine the optimal value to use for Ehcache's maxElements settings? stackoverflow.comThe currently released versions of Ehcache (2.4.1 is the latest) only support settings to control the maximum number of elements in the cache (maxElementsInMemory, and maxElementsOnDisk). How do you determine what ... |
43. Ehcache or varnish or both? stackoverflow.comshould one use ehcache in favor of varnish? or the other way around? or both? |
44. Cache invalidation in Ehcache stackoverflow.comI am using Ehcache in Hibernate. How can i notify the cache that the database is changed. How can i invalidate the data is cached. How can i programatically acheive this? ... |
45. hello world example for ehcache? stackoverflow.comehcache is a hugely configurable beast, and the examples are fairly complex, often involving many layers of interfaces. Has anyone come across the simplest example which just caches something like a single ... |
46. Replicated Ehcache not working stackoverflow.comI am trying to enable replecated ehcache and for some reason it does not seem to be working. My ehcache.xml -
|
47. How to cache items which are returned by a list query? Using EHCache? stackoverflow.comi am successfully able to cache results for queries that retrieve a single value.
But for effiency reasons i need to implemented a method ... |
48. jgroup members can't join? stackoverflow.comI use a ehcache that distributes via jgroups. I use UDP multicat for the distribution. The ehcache lives within a webapp. There are several machines that run that webapp. For some reason ... |
49. Multiple ehcache.xml in classpath stackoverflow.comWhat will happen if there are multiple ehcache.xml files in the classpath? Which one will be picked up? |
50. Ehcache -- Expiring on certain time stackoverflow.comWhen using ehcache, is there a way to expire cache on certain time of the day? Thanks, Lawardy |
51. ehcache help needed stackoverflow.comHello i am trying to setup Ehcache on my local system , There is only java based caching ,i am performing . I got the exception when i just ran the ... |
52. ehcache help needed stackoverflow.comI am trying to experiment with the
In my ehcache.xml also have the trial version licence ... |
53. Does ehcache respect serialVersionUID? stackoverflow.comWe're running ehcache 1.5 in a cluster with RMI replication and update servers one by one (think of a load balancer/proxy on top and zero-downtime updates).
We generally don't care about |
54. Declarative (Annotation-based) Caching Solution for Java stackoverflow.comBesides Spring 3.1 and ehcache-spring-annotations, do we have other alternatives that are other than EhCache and Spring? |
55. Ehcache not storing anything in the file stackoverflow.comI am trying to do a simple thing like store something in the cache and reterive it next time if it exists. For some reason everything works fine for the first ... |
56. Ehcache help needed stackoverflow.comI am using Ehcache 1.2.3 jar, in my Ehcache.xml i have configured maxElementsInMemory=100000,but the number of elements in memory always goes up till 50500, is there any default size mentioned in ... |
57. What is a pull-through cache? stackoverflow.comI found a reference to this concept in the EHCache documentation, but I could not find any proper explanation of what it means. It tried Googling around but to no ... |
58. Java config equivalent of echcache.xml stackoverflow.comIs there a sample Java Config for a standard ehcache XML config file (ehcache.xml) . I am using Spring 3.1. |
59. ehcache SimpleCachingHeadersPageCachingFilter adding X-XSS-Protection & X-Content-Type-Options stackoverflow.comI have SimpleCachingHeadersPageCachingFilter configured in my web.xml and it works fine but how would I go about adding some other stuff to the header like:
I went to |
60. How i can integrate Mybatis with ehcache? stackoverflow.comHow i can integrate Mybatis with ehcache? I have defined in my mapper the next:
I put dependency mybatis-ehcache into pom.xml and i have created my ehcache.xml file
But the console show me ... |
61. How do I use ehcache to reload data? stackoverflow.comI have a list of 100 items (Strings) that I want to put in ehcache. I will set them to expire after 1 hour. After that I want to read the ... |
62. Web page caching using Ehcache stackoverflow.comI am trying to make my web application faster by using caching of web pages for faster access next time so can anyone provide me guideline how to use Ehcache for ... |
63. Filter url pattern conflict in web.xml ? stackoverflow.comI am working on a projec, the application is in j2ee and I have used ehcache for web page caching but due to the entries of filter it gives me ... |
64. How can I work around this apparent EhCache deadlock? stackoverflow.comUsing ehCache 2.4.4, I seem to have gotten into a deadlock on the ehCache Segment object. From other logging, I know that the 'waiting thread', 1694 last ran anything 9 ... |
65. ehcache and logging issue stackoverflow.comSome days ago I started using ehcache in web app. All was fine, and I do remember that when ehcache was putting something in the cach, or retrieving existing value from ... |
66. Ehcache web CacheManager.replaceCacheWithDecoratedCache throws NPE stackoverflow.comI have a very basic setup: Struts2 web-app, added to it Ehcache-Web and trying to make it work.
Here's my
|
67. What is the "Ehcache" Forum Category for? forums.terracotta.org |
68. EhCache fundamendal Q forums.terracotta.orgHi, I'm newbie and I have few Q. I'm using Spring 2.5.6 & Ehcache 1.5 [list] How do I enable ehcache logging that prints ehcache DEBUG, INFO, WARN etc stmts Is there any FREE visual tool to monitor cache from Terracotta or others? I set timeToIdleSeconds=10 but after 10 sec I do not see my cache is getting invalidated. After 10 ... |
69. Annotation Based Caching forums.terracotta.org |
70. Ehcache Monitor - No Probes forums.terracotta.orgCaused by: org.hibernate.cache.CacheException: net.sf.ehcache.CacheException: Unable to load class org.terracotta.ehcachedx.monitor.probe.ProbePeerListenerFactory. Initial cause was org.terracotta.ehcachedx.monitor.probe.ProbePeerListenerFactory at net.sf.ehcache.hibernate.EhCacheRegionFactory.start(EhCacheRegionFactory.java:91) at org.hibernate.impl.SessionFactoryImpl. |
71. ehcacheServer & cacheDecoratorFactory forums.terracotta.orgIs it possible to use cacheDecoratorFactory with ehcacheServer with REST API. I realized current distribution comes with ehcache-core-2.0.1. This does not let server to accept the configuration ( ehcache.xml) with cacheDecoratorFactory. If we chance it with ehcache-core-2.4.x things start to move. However I could not use the cache as it still gives 404. Any ideas will be highly appreciated. rn |
72. Ehcache 2.0.0-->2.4.6 no cache hit information in logs? forums.terracotta.org |
73. IllegalAccessError for CachManager forums.terracotta.orgThanks for your reply. I am not quite sure what you mean when you say "Please use jars of the same version." The maven pom file for hibernate specifies ehcache 1.1, and that is the only version that we have in the project. As an aside, we are successfully using ehcache in the project already to cache domain objects. I am ... |
74. Self-Refreshing Cache forums.terracotta.orgSo what's the best way to get a cache to self-refresh. Essentially, I have a cache of stats information for graphs to display. What I want is for the graphs to always be able to get the data (even if it's stale) but when a request for the cache comes in and gets back stale data, i want to either have ... |
75. Getting monitor to work forums.terracotta.orgHi there! I've decided to move from terracotta to plain ehcache for a while, after 2 days of pain trying to get terracotta to work in our environment. Since we do require some monitoring, I'm trying to get the ehcache monitor to work. I've downloaded it and when I run the startup I get some exception on connect timeout. So I'm ... |
76. value of multicastGroupAddress forums.terracotta.orgHi, I'm using caches with replication and it works fine so far. But I'm now in the situatuation that more than one application within the same network are using EhCache. As far as I can see it is enough to change the IP address value of multicastGroupAddress to something else for every application. Does the value matter in any way or ... |
77. list remote cache names forums.terracotta.orgEugene, You know your data the best and you set where it is stored based on your ehcache.xml. To get the details of the information stored in TSA, you _need_ the ehcache.xml of all the clients connecting to the TSA. You need to know the cacheManager and cacheNames and invoke it from a L1 client as "rajoshi" also mentioned. What "rajoshi" ... |
78. Capturing java.lang.reflect.InvocationTargetException in the code forums.terracotta.org |
79. Custom SizeOf forums.terracotta.orgHi, Is there some way to provide a custom implementation for the SizeOf class. Most our objects know their own sizes and it would increase performance a lot to avoid the graph walking. We currently get this message: ObjectGraphWalker.checkMaxDepth():209| The configured limit of 1,000 object references was reached while attempting to calculate the size of the object graph. Severe performance degradation ... |
80. Garbage collection on L2 effecting Garbage collection on L1 forums.terracotta.orgHi, after a few days of running our app with Terracotta , the system slowed to a crawl and the client logs showed the following: ********************************************************************** 2011-11-27 20:28:08,101 [TC Memory Monitor] WARN com.tc.runtime.logging.LongGCLogger - Detected long GC>8,000ms. GC count:1. GC Time:9,581ms. Frequent long GC cycles cause severe performance degradation. 2011-11-27 20:28:36,632 [TC Memory Monitor] WARN com.tc.runtime.logging.LongGCLogger - Detected long GC>8,000ms. GC ... |
81. EhCache 2.5 & Coldfusion forums.terracotta.orgNo worries. Scenario: Doing saturation testing using EhCache 2.6, Terracotta 3.6, bigMemory. Testing what we call "form" objects - these are large object graphs that represent the configuration for html forms. 100kb - 2mb+ each graph. They are expensive to create. This test consists of 2 threads. Throughput of tests is in the order of 50 req/minute during "normal" operation and ... |
82. CacheException : Exception while starting webapp. forums.terracotta.orgHello All, I am new user of Ehcache . I am trying to use ehcache in my application. I have written CacheManager cacheManager = CacheManager.getInstance(); in init method of my servlet. While loading the servlet I am seeing exception in logs. Its net.sf.ehcache.CacheException: Unable to load class net.sf.ehcache.terracotta.StandaloneTerracottaClusteredInstanceFactory. Initial cause was net.sf.ehcache.terracotta.StandaloneTerracottaClusteredInstanceFactory. |
83. sizeOf and ColdFusion forums.terracotta.orgHey All, Testing 2.5 with ColdFusion & I believe the sizeOF implementation in EhCache is not correct. If I cache.put() on a single ColdFusion object that contains 1 method and one private property, I get the following warning message: "The configured limit of 1,000 object references was reached while attempting to calculate the size of the object graph" I suspect that ... |
84. if heartbeat between t1 and t2 is very long...can it cause queries to cache to take very long time forums.terracotta.orgHi : here are two scenarios Im considering. 1.if the timeout settings betwenn t1 and t2 are high (hours) and t1 does a full garbage connection ( using CMS ) , will the tsa (t2) halt all other t1s that are requesting items from the cache untill the garbage collection has occured. 2. if non-stop caches are used and t1 is ... |
85. How to size caches in ehcache 2.5 forums.terracotta.orgI just upgraded to ehcache 2.5 and now apparently I have to set a maxBytesLocalHeap value on the cache manager. However, I want the value to be the maximum possible one, not set a particular one. we have hundreds of instances that would need reconfiguration otherwise. How can I tell ehcache to just use as much of the heap as it ... |
86. How PUT method in ehcache.xml forums.terracotta.org |
87. ehcache-standalone-server is frozen? forums.terracotta.org |
88. maxBytesLocalHeap and defaultCache forums.terracotta.org |
89. Can somebody explain behaviour of isKeyInCache forums.terracotta.orgpublic class TestEhCache { @Test public void test() { CacheManager mCacheManager = CacheManager.getInstance(); TransactionController mTransactionManager = mCacheManager.getTransactionController(); System.out.println("With all in one transaction ------------"); mTransactionManager.begin(); mCacheManager.addCache("TestCache1"); Ehcache cache1 = mCacheManager.getEhcache("TestCache1"); System.out.println("Before put:"); System.out.println("Keys = " + new ArrayList |
90. SimplePageFragmentCachingFilter documentation forums.terracotta.orgHi, I'm trying to understand how to implement the SimplePageFragmentCachingFilter. I'm using Spring and Freemarker. As I understand a page fragment filter, you identify fragments of a page you want to cache, specify a key and the page fragment cache stores these elements. When it comes to the SimplePageFragmentCachingFilter: 1. How do you specify a page fragment? 2. Can you manually ... |
91. When Terracota not reachable, what config I can set make it stop to retry forums.terracotta.orgWhat you are looking for is probably a timeout/retry feature for cacheManager which limits the no of times it connects to TSA when its not reachable. While we do not have this feature currently, I think your request is perfectly reasonable. Can you put in a new feature request JIRA in our community forums so that our Eng team can evaluate ... |
92. Remote caching using ehcache coderanch.comWe have a classic problem of multiple processes subscribing to same dataset from database. To solve this we are planning to implement a caching mechanism using ehcache. The solution would have a server component that maintains the cache and the client component that uses the cache. Hence it would be quite useful if you have any references to examples on how ... |
93. ehcache problem forums.oracle.comHi we are using ehcache in our project and we have two environments in one server ( developement and QA) the ehcache disk store is set to different values for both environments but when I try to restart the server for QA for example, it doesn't start successfully; throwing an exception like: The Disk store is not active. I think the ... |
94. Caching with Ehcache forums.oracle.com |