Knee Problems

I noticed I had knee problems when I do exercises my knee would make little pops. For example bicycle kicks every time I straighten my knee it pops. Or when I am going down hill on hikes I start to get severe knee pain. And now that I started to run my knee hurts towards the end of the runs. What should I do ?