I usually give myself an 7 hour sleep before the exam, but i usually just sleep about 4 hours. I keep thinking about the exam and the different type of questions on the exam.
Even if you can't sleep, dont' try to study the whole night through. Don't overcook your brain, just lay in bed and have some light music on and just relax.