Nortriptyline
"I take 25mg of nortriptyline at bedtime. I have taken it for 3 weeks. I toss and turn at night and sleep about 3 hours for 2 nights, then on the 3rd night, I am able to sleep 9 or so hours because of lack of sleep previously.  It has helped my neck pain considerably, but about 10 days ago, I began getting pain in both my knees and hips, which makes it even more difficult to sleep now.  At first, I believed it was because of the treadmill, but I stopped after 2 days using it to heal my knees and hips, but they are still hurting. Also, I am experiencing memory loss. I am 68 years old."