This depends on several things. First is what your daily activity is. If you are sitting at a desk all day the issue could be a lack of flexibility. This is because of the way the body is connected to itself. The knee swelling could be anything from diet to exercise related. If it is bad enough you should probably go to a doctor, chiropractor, or some other medical professional. That would at least rule out the obvious issues like torn ligaments etc.