PJSC TATNEFT implements a program to optimize production processes and reduce costs. Reducing the cost of operating ground-based oilfield equipment is one of the most important tasks within the framework of the designated program. In this article, technical solutions aimed at optimizing production processes in the field of operation of equipment of the production well stock are considered. In the process of a mechanized method of oil production by sucker-rod pumping units, there are a number of technical problems that have a serious impact on the efficiency of operation of the production stock of wells and, in general, on the volume of oil production. A large-scale problem in the operation of pumping units is oil leakage on drive gearboxes.