A hard heart shaking violently while sleeping may be caused by insufficient blood supply to the heart, exertion, emotion, poor sleep quality and other reasons. You can use medication and lifestyle modifications. 1. medication: sleep jittery heart if the heart is insufficient blood supply caused by drugs such as nitroglycerin can be taken to improve blood supply to the heart of the drug, but may lead to low blood pressure, headache and other side effects; if the poor quality of sleep caused by, you can take glutamine, vitamin B1 and other nutritious nerve drugs to improve sleep. 2. Life regulation: if sleep jittery heart hard to sleep is tired, emotions and other reasons, you can take a proper rest; soak your feet before going to bed, drink some hot milk, you can relieve fatigue, improve sleep; also take less tea, coffee, alcohol and other nerve-exciting beverages. If the phenomenon of sleep jittery heart, do not recommend self medication, it is recommended to go to the hospital to check the electrocardiogram, cardiac ultrasound and other items to identify the cause, under the guidance of the doctor to use medication.