Histamine production in Lactobacillus vaginalis improves cell survival at low pH by counteracting the acidification of the cytosol.