There are two ages when bacterial peritonitis peaks in children, according to the studies done.  The first is during the neonatal period, and the second is at around five years of age. Later in life, peritonitis due to kidney or liver diseases can occur in the late fifties.