My challenge was that, I have this refrigerator I'm working on and after awhile it is working and then the condenser become hot as the compressor discharges excess heat, which as time goes on immediately stops working and has to be put off for awhile, just to cool down before putting back on. I thought may be it might be drier, which I did change, yet the excess heat persist. So what could be the cause for this.
Assuming the condenser coil is reasonably clean, possibly a weak run capacitor on the compressor. If you have made changes to the refrigerant such as you would be required to when replacing the dryer then more likely contamination with a noncondensible like air or overcharge of refrigerant.
Edit: I have assumed, perhaps incorrectly, that you are in the US. Voltage too high or frequency too low for the compressor rating could also cause the compressor and condenser to get very hot.