I keep getting this error in my database often;

- unable to allocate 8704 bytes of shared memory ("large pool","unknown object","hash-join subh","kllcqas:kllsltba")

I have once increased the Large Pool size by 8 MB and then the error did not occur for a few days.
I am trying to find out what the cause of such memory errors could be and what would be the ideal way to handle such cases other than increasing Large Pool size everytime.

Any pointers would be appreciated.