I have weird bouts of insomnia, but i know its from my anxiety i get at night. I will go for a week or two sleeping fine, then ill have a couple of nights in a row where i only get 2-4 hours. Ive just started taking about 50mg of hydroxyzine (atarax) on the nights i feel like ill be up all night. It helps but for some reason it takes ~2 hours for it to knock me out.
Like i said i know its brought on by my stupid anxiety. If i could get it under control i wouldnt have any problems sleeping. I start freaking out if im not asleep by midnight and its all downhill from there.