In the refinery, chemical treatment is used to prepare crude oil before refining. The weathering rate is quantified in mpy (mils per year). The non-destructive probes used on pipelines measure electrical resistance, which is inversely proportional to the material thickness. We are going to take some samples of two different processes, one of which is going to be from the fractional tower in the plant AS (combination plant), where there are a couple of pipelines and "T" connections that have been affected by corrosion, so it will be essential to apply ionic liquids to evaluate how it can be avoided. The first test we will run is to take samples from the installed pipelines. The pipeline samples will be 1" x 3", and we will take three samples at each descent of the fractional tower. These descents go to the heat exchangers, using the same sample size as the current corrosion analysis. The other experiment will take place at the RP2 plant, which is part of the AS plant. A vacuum tower commonly exhibits corrosion at the tower exit in three different sections of the ejectors. The sample sizes will be the same for all tests. One of the most critical factors in this work is the material's composition. Nowadays, corrosion measurement is done by using sacrificial anodes directly on the product. At this time, Apollo company supplies a corrosion inhibitor based on oil with a pH of 7 or 6.5, dosed at 20 or 30 ppm, depending on the oil charge and status. In the test, it is observed that the consumption of the inhibitor is one to two cm for each barrel (200 liters).