The present invention relates to a
reciprocating compressor (1) for compressing gas, comprising at least one cylinder (6), at least one
piston (5) supported in each cylinder (6), such that each
piston (5) and each cylinder (6) define a compression chamber (29) for compressing gas, an
inlet valve (19) for each compression chamber (29), an outlet valve (20) for each compression chamber (29), and at least one mechanical device (40), wherein the at least one
piston (5) is mechanically operatively connected to the mechanical device for
reciprocating motion of the at least one piston (5), wherein the mechanical device (40) includes a shaft (2) having at least one
cam (3), and the at least one piston (5) At least one
lubrication chamber (44) is indirectly supported on a shaft (2) having at least one
cam (3) by means of roller shoes (9) and working rollers (10), at least one mechanical device (40) is at least partially arranged in the
lubrication chamber, and the at least one mechanical device (40) is lubricated in the at least one
lubrication chamber (44), wherein the piston compressor (1) includes at least one diaphragm (34), and the at least one diaphragm (34) fluidly seals each lubrication chamber (44) from each compression chamber (29) to prevent
lubricant from entering the at least one compression chamber (29) from the lubrication chamber (44).