An XRF analyzer can include an x-ray source and an x-ray detector; an x-ray source heat-sink adjacent a side of the x-ray source; and an x-ray detector heat-sink adjacent a side of the x-ray detector. In one embodiment, the x-ray source heat-sink can be separated from the x-ray detector heat sink by a material having a thermal conductivity of less than 20 W/(m*K). In another embodiment, the x-ray source heat-sink can be separated from the x-ray detector heat sink by at least 3 millimeters of a thermally insulating material. In one embodiment, the x-ray source heat-sink can be separated from the x-ray detector heat sink by a segment of the engine component casing. Separation of the heat sinks can help avoid heat from the x-ray source adversely affecting resolution of the x-ray detector.