With regard to the slow rendering: if you have multi-processing enabled, turn it off. As Tim said, you don’t have anywhere near enough RAM to feed multiple cores. Multiprocessing launches multiple instances of the renderer, each running on its own core, and each instance requires its own RAM — at least 2GB, and preferably 3 to 4 GB per instance. Of course, the operating system and any other open applications require their own RAM as well. I’d equip a quad-core system with at least 16GB of RAM.
Also, I agree with Tim about h264 — rendering directly to h264 isn’t a good workflow. h264 really benefits from multipass encoding, so it’s better to render to a lossless intermediate (like Animation or PNG codec Quicktime movies) and then compress that to h264.
As for the length of your RAM previews, that depends on a few factors: your memory preferences, the resolution of your comp, the color depth of your comp, your free RAM, and your version of After Effects. AE CS3 is 32-bit only, so it can grab a maximum of 4 GB of RAM for the application, all layer and image caches, and RAM preview (you can adjust this allocation in your memory preferences). CS5 is 64-bit, so it can access all the RAM in your system, allowing you much longer RAM previews (if you upgrade your memory).
Walter Soyka
Principal & Designer at Keen Live
Motion Graphics, Widescreen Events, Presentation Design, and Consulting
RenderBreak Blog – What I’m thinking when my workstation’s thinking
Creative Cow Forum Host: Live & Stage Events