I've been using --minheap 3000 --maxheap 30000 for that recently and it
performs quite well (after months of not working at all).
I'll try bumping the memory. Although the "months of not working" is not
quite correct, because it worked fine with 10 GB in 5.6.