When I study I usually use a new position every hour or couple of hours. It's also good to get up and walk around. Try some of those lame airplane exercises/stretching techniques that they always play during the middle of a long flight. It's the same deal, if you sit still that long your muscles are bound to tighten up and will result in stiffness, pain, and eventually cramping. Good luck!