Discharge chamber length is one of the factors in optimizing the electron cyclotron resonance ion thruster performance. It adjusts the distance between bulk plasma and grid system to change the plasma density upstream of the screen grid, which will affect the ion beam current and focusing state to achieve optimization purpose. However, new evidence shows the discharge chamber length plays an important role in ionization during ion beam extraction, which means that the effect of discharge chamber length on the performance of electron cyclotron resonance ion thruster should be reexamined. After applying grid voltages, another high electron temperature region located upstream of the screen grid is observed in the integrated simulation using particle-in-cell with Monte Carlo collision method, but it is not observed in the traditional discharge chamber simulation. It is believed in the paper that the high electron temperature region exists objectively, because the Child-Langmuir sheath will repel electrons moving towards screen grid back to magnetic mirrors again. Those electrons will gain energy from microwave, and finally form a high electron temperature region along the Child-Langmuir sheath. This phenomenon implies that discharge chamber length can adjust the high electron temperature distribution upstream of screen grid to affect the plasma generation. Therefore, in this work, the effect of discharge chamber length on discharge and ion beam performance is systematically studied by adopting the integrated simulation. In this paper, three ion thrusters with different discharge chamber lengths are simulated. Under the conditions of same magnetic field and operation parameters, the comparisons of electron energy gain, plasma parameter distributions and ion beam current among the three ion thrusters are conducted. The results show that shorter discharge chamber length has higher electron energy gain, plasma density and voltage, but smaller ion beam current. This abnormal phenomenon can also be seen experimentally. By analyzing the ionization rate inside the chamber, it can be seen that high-temperature electrons upstream of the screen grid have a significant contribution to ionization. And thus, a little bit longer discharge chamber length with lower plasma density inside the chamber has bigger ion beam current for having higher plasma density upstream of the screen grid. According to this phenomenon, an electron heating mode is proposed: electrons gain energy by reciprocating through the electron cyclotron resonance layer between the Child-Langmuir sheath and magnetic mirrors. This heating mode can be used as a supplement to the electronic constraints outside the magnetic mirrors to improve the energy utilization efficiency of the thruster, which can provide a new insight into the electron cyclotron resonance ion thruster design in the future.