The ECR ion sources are able to produce a wide variety of highly charged metallic ion beams thanks to the development of different techniques (ovens, sputtering, direct insertion, metal ions from volatile compounds (MIVOC)). In the case of the ovens, the sticking of the hot vapors on the surface of the plasma chamber leads to high material consumption rates. For elements like Ca, a tantalum liner inserted inside the chamber can be used to limit this phenomenon. The modeling of temperature distribution inside the chamber with and without the liner was carried out with COMSOL-multiphysics code. Results of simulation and the comparison with experiments performed at INFN-Legnaro National Laboratories with Ca beams are discussed.