The influence of electron beams on heat dissipation in an electron linac has been studied. The temperature responses for different electron beams in the linac are calculated.The suitable moment for inputting electron beam after the start of the linac is given. These results may provide a reference to the design and operation of a linac.