The causes of poor sleep and heart discomfort are physiologic, insomnia, anxiety, and heart disease. Self-adjustment, medication, psychotherapy and so on can be carried out. 1. Physiological: If you are tired and emotionally agitated recently, the instability of nerve function will appear briefly, and insomnia and palpitation will occur, which can be recovered after sufficient rest. 2. Insomnia: Insomnia will cause poor sleep, unstable nerve function, palpitation and so on. Zopiclone and Zaleplon can be taken to promote sleep. 3. Anxiety: Anxiety can be accompanied by autonomic dysfunction, resulting in the above symptoms. Anti-anxiety drugs such as buspirone and citalopram can be taken. It should be combined with psychotherapy for better results. 4. Heart disease: heart disease can lead to arrhythmia, palpitations, chest tightness, wheezing, cardiac discomfort, can also lead to poor sleep. Drugs such as captopril, metoprolol, hydrochlorothiazide can be taken. You should go to the hospital in time. Drugs should be used under the supervision of a physician.