• Keep your bedtime and wake time consistent from day to day, including weekends.
• Stay active — regular activity helps promote a good night's sleep.
• Check your medications to see if they may contribute to insomnia.
• Avoid or limit naps.
• Avoid or limit caffeine and alcohol, and don't use nicotine.
• Avoid large meals and beverages before bedtime.
• Make your bedroom comfortable for sleep and only use it for sex or sleep.
• Create a relaxing bedtime ritual, such as taking a warm bath, reading or listening to soft music.
Read More: Insomnia, its symptoms (part 1)
• Physical exam: If the cause of insomnia is unknown, your doctor may do a physical exam to look for signs of medical problems that may be related to insomnia. Occasionally, a blood test may be done to check for thyroid problems or other conditions that may be associated with poor sleep.
• Sleep habits review: In addition to asking you sleep-related questions, your doctor may have you complete a questionnaire to determine your sleep-wake pattern and your level of daytime sleepiness. You may also be asked to keep a sleep diary for a couple of weeks.
• Sleep study: If the cause of your insomnia isn't clear, or you have signs of another sleep disorder, such as sleep apnea or restless legs syndrome, you may need to spend a night at a sleep center. Tests are done to monitor and record a variety of body activities while you sleep, including brain waves, breathing, heartbeat, eye movements and body movements.
Courtesy: Mayo Clinic