I try to get up every 1-2 hours and walk around and do some exercises when I'm on a long-haul flight. I'm that weird guy doing squats and other exercises at the back of the plane. If there is no room outside I use a bathroom. I also drink a lot of water, which causes me to get up anyway because I have to go to the bathroom more often.