Reduce InMemoryAuditEventRepository default capacity

Lower the default capacity used in `InMemoryAuditEventRepository` from
4000 to 1000. This should help reduce memory consumption.

Fixes gh-9056
This commit is contained in:
Phillip Webb 2017-05-01 20:16:21 -07:00
parent 77d427af6c
commit 6cdb02050d
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ import org.springframework.util.Assert;
*/
public class InMemoryAuditEventRepository implements AuditEventRepository {
private static final int DEFAULT_CAPACITY = 4000;
private static final int DEFAULT_CAPACITY = 1000;
private final Object monitor = new Object();