There is a relatively loose rule of thumb with any of the recommendations with sizing of memory, caches, etc : it's only a starting point. You may end up using more or less. This goes for any DBMS or software vendor really.
Inch up the heap memory with 2k increments until you find the spot where your queries run without the issue.