There are a few ways to relieve knee pain overnight. One way is to take ibuprofen or acetaminophen before bed. Another way is to drink warm water and lie down for 30 minutes. Finally, another way is to elevate the leg and hold it in that position for 5-10 minutes.