Keerthikanth Chowdary
Keerthikanth Chowdary

Reputation: 798

diskSpoolBufferSizeMB in ehcache configuration mean?

I have the following configuration in my project for ehcache implementation. What does the attribute diskSpoolBufferSizeMB mean?

<defaultCache maxEntriesLocalHeap="10000" eternal="false" timeToIdleSeconds="120" timeToLiveSeconds="120" diskSpoolBufferSizeMB="30" maxEntriesLocalDisk="10000000" diskExpiryThreadIntervalSeconds="120" memoryStoreEvictionPolicy="LRU" statistics="true">
        <persistence strategy="localTempSwap"/>
</defaultCache>

Upvotes: 2

Views: 3373

Answers (1)

Louis Jacomet
Louis Jacomet

Reputation: 14500

As indicated here, it allows you to control the size of the buffer before writing mappings to disk when using a disk store.

30 is the default value so unless you encounter specific performance issue that can be tracked to disk writes buffering, I would remove that bit from the config and forget about it.

Upvotes: 2

Related Questions