1) Include plenty of oral liquids in your diet. Try to drink at least 2 liters of water daily. 

2) If you are overweight then reduce 10% of your body weight gradually over a period of 3-6 months.

3) Before sleep do stretching or relaxation exercises for 10-15 mins. 

4) Try to take warm water bath daily before going to bed especially in winters.

5) If frequent leg cramps and pain is there then you may be having low vitamin E or you may require antioxidants to rejuvenate your body. 

6) Consult your doctor for a detailed examination and doctor will examine and prescribe you the specific medicines and supplements to get rid of this frequent cramps.