Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7780229
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T18:50:17+00:00 2026-06-01T18:50:17+00:00

I am receiving Eh-cache logging output when using it with Hibernate 2nd Level cache

  • 0

I am receiving Eh-cache logging output when using it with Hibernate 2nd Level cache – i do not undertand the output and what it might mean. It is being printed to the logs a lot.

 DEBUG [net.sf.ehcache.store.disk.Segment] put added 0 on heap
 DEBUG [net.sf.ehcache.store.disk.Segment] put updated, deleted 0 on heap

Could anyone shed some light on what this might mean? My Second level cache appears to be working, according to a print of the statistics…

INFO [com.atlaschase.falcon.commands.domain.AircraftCommandResolutionService] [  name = aircraftCache cacheHits = 824 onDiskHits = 0 offHeapHits = 0 inMemoryHits = 824 misses = 182 onDiskMisses = 182 offHeapMisses = 0 inMemoryMisses = 182 size = 91 averageGetTime = 1.0745527 evictionCount = 0 ]

Any help would be appreciated ..

Simon

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T18:50:17+00:00Added an answer on June 1, 2026 at 6:50 pm

    This output is generated by DiskStore, IIRC enabled by default in EhCache. Basically EhCache overflows cached data from memory to disk. If you want to disable this functionality, set overflowToDisk property to flase:

    <cache name="..." overflowToDisk="false"
    

    Oh – can someone also confirm that the ‘averageGetTime’ is in milliseconds and not seconds?

    Confirmed, milliseconds. Although the JavaDoc of Statistics.getAverageGetTime() is slightly confusing:

    […] Because ehcache support JDK1.4.2, each get time uses System.currentTimeMilis, rather than nanoseconds. The accuracy is thus limited.

    I found the following code in LiveCacheStatisticsImpl:

    public float getAverageGetTimeMillis() {
        //...
        return (float) totalGetTimeTakenMillis.get() / hitCount;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use beaker cache with SQLAlchemy but I've been receiving errors. Here
I'm using hibernate to store a set of objects from a web service. As
Receiving Error message when performing Update Statement, but database is being updated. Error: You
Am receiving null from json post using jquery. see my code below in order.
I receiving a undefined reference error when try to compile an c++ program. I'm
I'm receiving suddenly this error on a Win2003 Server Web Application: Microsoft VBScript runtime
I am receiving long string of checked html checkbox values (Request.Form[mylist] return Value1,Value2,Value3....) on
I am receiving a keystroke in a Form object's OnKeyDown . When some conditions
Background I'm receiving the following error when trying to render a partial view in
I'm receiving a rather cryptic error when attempting to debug a simple C++ application.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.