When reviewing a nearly empty audit log, an Out-of-Memory exception can be reported.
Hypothesis: this is a database-driver specific issue. A potential fix would be to not set the fetch-size to Integer.MAX_VALUE (or something large like that), preventing a naive implementation from trying to instantiate an array of that size.