The study aimed to verify whether it is possible to diagnose the coking of a marine diesel engine injector nozzle by performing a spectral analysis of the crankshaft’s torsional vibrations. The measurements were taken using laser heads, clocked at 16 MHz. The reasons for selecting this type of optical sensors are described as well. The tests were carried out under laboratory conditions, using a test stand with a Sulzer 3AL 25/3 engine, operating under a load created by a Domel GD8 500–50/3 electric generator. A unique method is presented in the paper, which enables the measuring and calculation of torsional vibrations of engine crankshafts. The method was developed at the Chair of Marine Power Plants at the Maritime University of Gdynia. It has been proven that the distribution of differences in the values of individual harmonic components depends on the location of a defective injector nozzle in the cylinder.