I’m strongly recommend you replace proxool by c3p0 or dbcp connection pooler. I saw Openfire hardly use prepared statements. Proxool lacks of the ability to cache prepared statements, but other libraries can. This miss dramatically decrease Openfire database performance.
I strongly recommend you choose c3p0 cause our tests show its more stable on high load about 4K request per second and more.