Setting Disk Thresholds

You can control the maximum amount of disk space that JE can use by setting two different threshold values. If JE exceeds either of these threshold values, writes will no longer be allowed to the database. Instead, when a write is attempted, DiskLimitException is thrown. The thresholds you can set are:

For usage scenarios, see the EnvironmentConfig.MAX_DISK Javadoc.