SERVO and Serial Communication

I suggest you print out a message in setup() so it is obvious when the Arduino has reset. For example, this line will print out a line of text telling you what sketch is running:

Serial.println(__FILE__ " " __DATE__ " " __TIME__);

If it does reset while you are moving the servo, the most likely reason is that the servo is overloading the Arduino's power supply.