If you are using postgres you might want to try turning on
logging on the server side and look for queries in the
startup sequence that might be causing this.
Add
log_pid = true
log_statement = true
log_duration = true
log_timestamp = true
to /var/lib/postgresql/data/postgresql.conf
and restart the db server.
You could also turn on debug on aolserver and then you could
see more details about what is going on in those conspicuous
gaps.