Rock porosity is a key physical parameter at room temperature and pressure that plays an important role in evaluating reserves of oil and natural gas. Research on rock porosity spans over a hundred years. However, in situ porosity under a high isostatic pressure has not been adequately explored, and the experimental conditions for measuring porosity remain unclear. To investigate the feasibility of porosity measurement under a high isostatic pressure and the optimal choice of experimental conditions for this, we design an experimental apparatus that can achieve isostatic pressure up to 200 MPa to fit the relationship between the void volume of a given sample and the drop in gas pressure in an empty standard chamber. The effect of experimental parameters, such as the initial gas pressure at the inlet, the time needed for the gas to reach equilibrium, and the time needed for vacuuming, on the porosity experiment was examined. A series of porosity experiments under different isostatic pressures of up to 200 MPa were carried out with this apparatus. The results quantitatively verify the degree to which porosity is related to isostatic pressure.