1. How to monitor Hibernate statistics (cache hits and misses) in a grails app? stackoverflow.comBy default, Grails uses Hibernate with EHCache as the second level cache. I'm still learning about how Hibernate works internally and would love to be able to introspect the caches ... |
2. No more Second Level Cache hits after session.flush() forum.hibernate.orgBeginner Joined: Tue Sep 08, 2009 9:49 am Posts: 23 Hi, I'm still pretty new to Hibernate, so maybe I understood something wrong. My application is using EHCache as the second level cache provider. I test if the cache is working properly by measuring the execution time of a SQL statement which is located in a for-loop, beeing executed 10 times. ... |
3. ehcache not hits, only puts forum.hibernate.orgHi, I am trying to get the ehcache to work in my app, but somehow it never hits the cache, but instead it keeps on sending the same query to the MySQL database. Probably I am misunderstanding something. This is how I fetch rows from the table: Code: Client client = (Client) _session.createSQLQuery("SELECT * FROM client WHERE name = :name") ... |
4. Weblogic - Small amount of Second Level Cache Hits forum.hibernate.orgHi All, I have an application running on weblogic using oracle db. My problem is I see very few second level cache hits when I refresh my homepage. However, when I run the application on tomcat using my oracle db and I refresh the same homepage, I see the expected second level cache hits rise as expected. Weblogic does have its ... |
5. Session cache hit rate? forum.hibernate.orgWe're curious to see what kind of hit rate we're getting from Sessions, similarly to the getHitCount() and getMissCountNotFound() methods ehcache provides. Ideally, these statistics would be available both for the current Session as well as for all Sessions created by a given SessionFactory. Are others interested in this? If so, I'll file an enhancement request in JIRA. |
6. ehcache caches, but doesn't hit.assigned key, no ehcache.xml forum.hibernate.orgI had enabled query caching in my hibernate config, but HibernateTemplate has CacheQueries false by default. Setting getHibernateTemplate().setCacheQueries(true); before querying shows hits in the log. I would still be interested in whether the ehcache.xml is necessary or the defaults are acceptable? Where do you put this file in your package heirarchy assuming you put your mappings in a package called org.x.hibernate.mappings? ... |
7. Second Level Cache not being hit ? forum.hibernate.orgNewbie Joined: Mon Mar 21, 2005 2:17 pm Posts: 2 Question : ========= I have a simple Country/State/City model. A country has a collection of states that in return has a collection of cities. With the following code which simply accesses a specific country ('CA') and navigate among its states and cities : /** * Test */ public static void main(String[] ... |
8. Hibernate Secound Level cache not being hit. forum.hibernate.orgHello everyone. I have a bit of a problem with the secound level cache. A bit lost here and not sure if it's Hibernate or Jboss. I have configured everything per the hibernate manual. So I have |
9. second level cache no hits forum.hibernate.orgHi everybody! I'm new to hibernate and ehcache! I want to implement a hibernate second level cache. So I try ehcache. I have created a simple table with 500 entries for test purposes. I also created the ehcache.xml conf file. For performance tests I implement a junit test case. This test case requested the result list (500 entries) five times. I ... |
10. Caching missed hits forum.hibernate.orgI've only looked at ehcache, and haven't found this option. I'm wondering if anyone knows if any other cache provider has the following feature: I would like the caching provider to cache both successful lookups as well as unsuccessful lookups. Our system is such that there are many unsuccessful lookups. When using ehcache, each unsuccessful lookup initiates its own SELECT. It ... |
11. Problem with Cache hits and EhCache forum.hibernate.org |
12. Stats say no cache hit or put! forum.hibernate.org |
13. L2 cache hit/miss notification forum.hibernate.orgHi, I'm caching native sql queries with L2 cache. Everything works fine. I'm getting cache hits, etc. There's a flaw though (probably I missed something). Everytime before I execute query I need to call db procedure which is time consuming and I'd like to avoid if possible. The scenario is as follows: if I get cache miss I need to call ... |
14. hibernate second level cache "Memory cache hit, but ele forum.hibernate.orgWhat does "Memory cache hit, but element expired"? I tried to do searches on this forum, but returned nothing that is helpful.. What I did is basically run the same query several times. I expected that after first time, the data should be cached so that I could get a "hit" when I run it 2nd time.. But It gave me ... |
15. ehcache: many puts, no hits, no elements in memory forum.hibernate.orgHi, I am trying to setup ehcache with hibernate and it seems that it is not working properly. When I take a look at the generated statistics, it shows a huge number of puts (about 30.000), but only a few hundret hits and misses (about 300-400). Also, there are practically no elements in the cache (< 10). The cache has been ... |