C.C.
There are so many things that could cause this: low engine coolant, restricted raw water flow, clogged raw water strainer, oil-cooler, running at max RPM's, impeller issues, calcium build up in heat exchanger, clogged
exhaust elbow, etc...
Start from the easiest and work towards more difficult. How long had you been motoring? Was this a sudden over-heat issue or was it slowly running hottter and hotter?