It doesn’t take much exercise: 30 minutes of aerobic exercise thrice weekly.
The Well blog at the New York Times has details. The study at hand involved only 11 women with insomnia, mostly in their 60s. A key take-away is that it took as long as four months for some to see an improvement. So don’t get discouraged and stop exercising too soon.
Read the whole thing (it’s brief).