Muscle cramps occur most often at night when you are sleeping, but they also can occur when you exercise vigorously, tear a muscle, or keep one leg in an awkward position, such as sitting in a chair in the same position for a long time. Muscle cramps are classified into those that occur during exercise…