Overflow java memory

Hello, my openfire alway has problem while overflow java memory. sometimes I have reboot my server because this issue. out of the blue neither users is available to login so I reboot the server.

I wish figure out that issue ( overflow java memory ). my openfire version is 3.6.4 and the openfire configuration file /etc/sysconf/openfire is setting as follow:

OPENFIRE_OPTS="-Xms2048m -Xmx2048m"

I have added xmpp.pep.enabled to false as suggest from this community. initial seems it’s work but the problem come back and I need solve it.

if I update to 3.7.1version I lost some datas ? have I do something after update ?

any tip is welcome.

Do you use persistent pubsub nodes?

sorry, but I don’t know what is “persistent pubsub nodes” how can find out that ?

thanks.