All Questions

35
votes
5answers
43133 views

Memory leak when redeploying application in Tomcat

When I redeploy my application in tomcat, I get the following issue: The web application [] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@10d16b]) an...
55
votes
13answers
56115 views

Another unnamed CacheManager already exists in the same VM (ehCache 2.5)

This is what happens when I run my junit tests... Another CacheManager with same name 'cacheManager' already exists in the same VM. Please provide unique names for each CacheManager in the config or...
85
votes
6answers
58430 views

Difference between "on-heap" and "off-heap"

Ehcache talks about on-heap and off-heap memory. What is the difference? What JVM args are used to configure them?
53
votes
2answers
11277 views

Caching with Hibernate + Spring - some Questions!

Im working on developing a webapplication with Spring 3 and Hibernate 3.6. At the moment I try to understand how Caching with Spring and Hibernate works. I found some sources about Caching with Hibern...
26
votes
2answers
35251 views

Using EhCache in Spring 4 without XML

Is there a way to initialize EhCache without xml in either Spring 4 or with Spring Boot? I noticed Spring Boot 1.0.0.RC3 doesn't have any ehcache dependencies but the Spring 4.0GA release post mentio...
1
votes
1answers
2295 views

spring @Cacheable with Ehcache, spel find null for valid object

I have a similar problem which but sometimes it works. The error described only happens once in a while. I am using spring 3.2.5 and ehcache 2.6.5. Exception trace: org.springframework.expression.s...
0
votes
1answers
476 views

Inefficient EhCache Performance

Using thoses JPA properties props.put( "hibernate.cache.use_query_cache", "true" ); props.put( "hibernate.cache.use_second_level_cache", "true" ); props.put("hibernate.temp.use_jdbc_metadata_default...
37
votes
5answers
63327 views

@Cacheable key on multiple method arguments

From the spring documentation : @Cacheable(value="bookCache", key="isbn") public Book findBook(ISBN isbn, boolean checkWarehouse, boolean includeUsed) How can I specify @Cachable to use isbn and ch...
21
votes
5answers
17660 views

Hibernate 2nd level cache invalidation when another process modifies the database

We have an application that uses Hibernate's 2nd level caching to avoid database hits. I was wondering if there is some easy way to invalidate the Java application's Hibernate 2nd level cache when a...
16
votes
2answers
20164 views

How to configure JPA 2.0 with Hibernate 3.5.2 to use EHCache as a Level 2 cache and query cache?

I found some instructions how to configure pure hibernate to use EHCache. But I can't find any instructions how to configure JPA2.0 EntityManager to use cache. Hibernate 3.5.2 is my JPA2.0 provider. ...

Previous Next