If it's the cache or leak related, then fixing the...
# general
b
If it's the cache or leak related, then fixing the leak or just restarting the nailgun periodically might work.