EhCache — Too Many Open Files

EhCahce with  “diskPersistent=true” flag  is used to persist  the cache values to disk and can be used after system restarts.

If you have many caches with “diskPersistent=true” then you may get “Too many Open files Exception”.  This is because EhCache is using nearly 30 open file pointers for each cache and the default no. of open files for user in linux is 1024.  So, to avoid this exception you need to increase the No. Of. open files  per  process/user.

This entry was posted in java. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s