Unless the cylinder is next to a heat source... it shouldn't get hot. You have a leak in the piston seal. The leaking oil is heating the cylinder. It will only get worse. Either scoring the cylinder wall or the piston.
how hot should a hydraulic cylinder get. is there a filter that can get clogged