Suitable opensource JDK or JRE must used for openfire 5.0.0

A suitable open-source JDK or JRE must be used for Openfire 5.0.0.

i am using Oracle 17.0.10.

IMPLEMENTOR=“Oracle Corporation”
JAVA_RUNTIME_VERSION=“17.0.10+11-LTS-240”
JAVA_VERSION=“17.0.10”
JAVA_VERSION_DATE=“2024-01-16”
LIBC=“gnu”
MODULES=“java.base java.compiler java.datatransfer java.xml java.prefs java.desktop java.instrument java.logging java.management java.security.sasl java.naming java.rmi java.management.rmi java.net.http java.scripting java.security.jgss java.transaction.xa java.sql java.sql.rowset java.xml.crypto java.se java.smartcardio jdk.accessibility jdk.internal.jvmstat jdk.attach jdk.charsets jdk.compiler jdk.crypto.ec jdk.crypto.cryptoki jdk.dynalink jdk.internal.ed jdk.editpad jdk.hotspot.agent jdk.httpserver jdk.incubator.foreign jdk.incubator.vector jdk.internal.le jdk.internal.opt jdk.internal.vm.ci jdk.internal.vm.compiler jdk.internal.vm.compiler.management jdk.jartool jdk.javadoc jdk.jcmd jdk.management jdk.management.agent jdk.jconsole jdk.jdeps jdk.jdwp.agent jdk.jdi jdk.jfr jdk.jlink jdk.jpackage jdk.jshell jdk.jsobject jdk.jstatd jdk.localedata jdk.management.jfr jdk.naming.dns jdk.naming.rmi jdk.net jdk.nio.mapmode jdk.random jdk.sctp jdk.security.auth jdk.security.jgss jdk.unsupported jdk.unsupported.desktop jdk.xml.dom jdk.zipfs”
OS_ARCH=“x86_64”
OS_NAME=“Linux”
SOURCE=“.:git:925b9c539b74 open:git:1fc84ea33c9e”

Sorry, I want to ask what is suitable JAVA or jdk ??

I am using this once.

becuse my JVM is almost full using this JDK

Any version of Java equal to or higher than version 17 should be fine. I do not expect that a different version of Java will have a major impact on memory usage.

I am using my old Openfire 4.9.2 & JDK installed in my RHEL server as
opt]$ java -version
openjdk version “11.0.25” 2024-10-15 LTS
OpenJDK Runtime Environment (Red_Hat-11.0.25.0.9-1) (build 11.0.25+9-LTS)
OpenJDK 64-Bit Server VM (Red_Hat-11.0.25.0.9-1) (build 11.0.25+9-LTS, mixed mode, sharing)
[webadmin@AVN-ITG-Openfire_4_7_3 opt]$ openjdk version “11.0.25” 2024-10-15 LTS

Thats is working fine and now i have inetegrated new openfire 5.0.0 & with new downlaoded and kprt in opt folder JDK 17 after 1 week and CPU usage & memory is almost 100 %

heapdump_Leak_Suspects.zip (120.1 KB)
Please check this heap dump.

You are using the embedded database, which gets loaded in memory completely.

For large Openfire instances, it is recommended to use one of the other database types that Openfire supports (like Postgres, SQL Server or MySQL).

I’m not sure why your database is so large. You could use the dbaccess plugin, or external tools, to inspect the database. Perhaps you can clean it up to save on size.

If I don’t want to use the other DB because for the last 8-9 years we were using the same DB, and after upgrading to Openfire 5.0.0, an issue occurs.
Well, I shifted back to the old version, 4.9.2, and still it is working fine.
I can see in the embedded DB folder openfire.script, openfire.log, & openfire.lobs. These files are growing large in number, which was not seen in previous versions.

openfire.log (1.8 MB)
I have integrated with MySQL and am getting the same error.

openfire.log (1.9 MB)
Getting same error in postgresql as well.

Are you using clustering?

Try creating or updating the property with the name provider.pubsub-persistence.className to value org.jivesoftware.openfire.pubsub.DefaultPubSubPersistenceProvider. You need to restart Openfire afterwards.

No, I am not using clustering.
Still, do I have to change these properties?

Yes, please do, and let us know if it makes a notable difference.

Till now it’s working.
I will update tomorrow.

1 Like

Yes, it worked.

Please add this. future builds.