Cavitation occurring in capillary tubes