Ram preview length is determined by the amount of available ram. It is also usually limited to the work area. Either lower the resolution of the comp window or extend the work area.
Please read the FAQ section at the top of the forum. You'll have your answer there.