[Taha Kirmani] "I am using Intel Core i5 3.10 GHz, 2 GB RAM."
2 GB of RAM is the bare minimum according to the system requirements, and cripplingly little for After Effects work.
I'd consider rendering to an image sequence instead of a movie, then using AE or AME to stitch the image sequence into a movie.
[Taha Kirmani] "after render when i open video file, there is nothing in it, it shows me thumbnail of the video but in video file there are only 4 frame that it renders."
Are you sure the video isn't there? Or maybe you're experience this:
AE's default lossless output module generates an intermediate file that is designed for additional post-production use, not direct playback. These files are generally huge, with very high data rates, and very few computers can play them back in real time without stuttering. For more, see this
Adobe FAQ [link]: Why is my output file huge, and why doesn't it play back smoothly in a media player?
To help you choose a more suitable format for your needs, see the related
Adobe FAQ [link]: What is the best format for rendering and exporting from After Effects?
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