Adobe after effect allocating error

Hi Guys,
I have been using adobe after effects software but I am facing some difficulties using it. I am met with the following error:
The error says:
After Effects
After Effects error: unable to allocate space for a 2940 x1566 image
buffer.
You may be experiencing fragmentation. In the Memory &
Multiprocessing Preferences dialog box, try increasing the RAM to leave
for other applications, and selecting the Enable Disk Cache option in
the Media & Disk Cache panel.
(7::66)
OK
Your help is required in this regard to get rid of the error. Waiting for your replies and comments.
Thanking you loads.
Davis
