arduino mega 2560 5 volt output current

there is not the our problem such as heating and restarting. if it was restarting, we will understand because it will be stop motion and actually the current is not higher than 500mA and ardiuno is connected the 9V regulator circuit. it is in the range of recommended value (7-12V). I/O pins can cause this? because ? have 10 analog input about 8 pins digital output and some of the 8 pins are PWM. this much connection can cause this ?