The issue with diagnosing memory issues is that it usually results in no memory available to handle the logging of such a problem when it happens.
I've found that the easieat approach is to set up a file as additional swap space, and swapon, then see if the problem disappears, either partially or fully.