Normally, Openfire should start up (very) fast. It is typically very slow only when something in the network is very slow (for example, the connection to an external database or directory service), when it is very heavily used (without proper configuration having been applied), or when custom plugins have added that introduce bugs.
The stack trace that you provided sadly does not show anything wrong. Was it taken during that initial 10 minutes? If that’s not the case, then please create a new thread dump when Openfire is starting up.
I developed the openfire plugin myself,but the plugin starts quickly, but openfire service starts slowly.
the startup time is from 08:45 to 08: 58, with an interval of 13 minutes;
Here is mine openfire startup log.
2022.01.14 08:45:18 INFO [main]: org.jivesoftware.openfire.XMPPServer - Registering shutdown hook (standalone mode)
2022.01.14 08:45:18 INFO [main]: org.logicalcobwebs.proxool.ProxoolFacade - Proxool 0.9.0RC3+ (February 6 2008)
2022.01.14 08:45:19 INFO [main]: org.jivesoftware.util.cache.CacheFactory - Created cache [org.jivesoftware.util.cache.DefaultLocalCacheStrategy] for Routing Servers Cache
2022.01.14 08:45:19 INFO [main]: org.jivesoftware.util.cache.CacheFactory - Created cache [org.jivesoftware.util.cache.DefaultLocalCacheStrategy] for Routing Components Cache
2022.01.14 08:45:19 INFO [main]: org.jivesoftware.util.cache.CacheFactory - Created cache [org.jivesoftware.util.cache.DefaultLocalCacheStrategy] for Routing Users Cache
2022.01.14 08:45:19 INFO [main]: org.jivesoftware.util.cache.CacheFactory - Created cache [org.jivesoftware.util.cache.DefaultLocalCacheStrategy] for Routing AnonymousUsers Cache
2022.01.14 08:45:19 INFO [main]: org.jivesoftware.util.cache.CacheFactory - Created cache [org.jivesoftware.util.cache.DefaultLocalCacheStrategy] for Routing User Sessions
2022.01.14 08:45:19 INFO [main]: org.jivesoftware.util.cache.CacheFactory - Created cache [org.jivesoftware.util.cache.DefaultLocalCacheStrategy] for Roster
2022.01.14 08:45:19 INFO [main]: org.jivesoftware.util.cache.CacheFactory - Created cache [org.jivesoftware.util.cache.DefaultLocalCacheStrategy] for Multicast Service
2022.01.14 08:45:19 INFO [main]: org.jivesoftware.util.cache.CacheFactory - Created cache [org.jivesoftware.util.cache.DefaultLocalCacheStrategy] for Offline Message Size
2022.01.14 08:45:19 INFO [main]: org.jivesoftware.util.cache.CacheFactory - Created cache [org.jivesoftware.util.cache.DefaultLocalCacheStrategy] for VCard
2022.01.14 08:45:19 INFO [main]: org.jivesoftware.util.cache.CacheFactory - Created cache [org.jivesoftware.util.cache.DefaultLocalCacheStrategy] for Privacy Lists
2022.01.14 08:45:19 INFO [main]: org.jivesoftware.util.cache.CacheFactory - Created cache [org.jivesoftware.util.cache.DefaultLocalCacheStrategy] for File Transfer Cache
2022.01.14 08:45:41 INFO [main]: org.jivesoftware.util.cache.CacheFactory - Created cache [org.jivesoftware.util.cache.DefaultLocalCacheStrategy] for Offline Presence Cache
2022.01.14 08:45:41 INFO [main]: org.jivesoftware.util.cache.CacheFactory - Created cache [org.jivesoftware.util.cache.DefaultLocalCacheStrategy] for Last Activity Cache
2022.01.14 08:45:41 INFO [main]: org.jivesoftware.util.cache.CacheFactory - Created cache [org.jivesoftware.util.cache.DefaultLocalCacheStrategy] for User
2022.01.14 08:45:41 INFO [main]: org.jivesoftware.util.cache.CacheFactory - Created cache [org.jivesoftware.util.cache.DefaultLocalCacheStrategy] for Remote Users Existence
2022.01.14 08:45:41 ERROR [main]: org.jivesoftware.openfire.user.UserManager - Error loading user provider: com.superred.openfire.provider.SuperredUserProvider
java.lang.ClassNotFoundException: com.superred.openfire.provider.SuperredUserProvider
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:419)
at java.lang.ClassLoader.loadClass(ClassLoader.java:352)
at org.jivesoftware.util.ClassUtils.loadClass(ClassUtils.java:76)
at org.jivesoftware.util.ClassUtils.forName(ClassUtils.java:48)
at org.jivesoftware.openfire.user.UserManager.initProvider(UserManager.java:490)
at org.jivesoftware.openfire.user.UserManager.<init>(UserManager.java:97)
at org.jivesoftware.openfire.user.UserManager.<init>(UserManager.java:55)
at org.jivesoftware.openfire.user.UserManager$UserManagerContainer.<clinit>(UserManager.java:61)
at org.jivesoftware.openfire.user.UserManager.getInstance(UserManager.java:82)
at org.jivesoftware.openfire.XMPPServer.getUserManager(XMPPServer.java:1173)
at org.jivesoftware.openfire.spi.PresenceManagerImpl.initialize(PresenceManagerImpl.java:530)
at org.jivesoftware.openfire.XMPPServer.initModules(XMPPServer.java:539)
at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:428)
at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:163)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:105)
at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:56)
2022.01.14 08:46:11 INFO [main]: org.jivesoftware.util.cache.CacheFactory - Created cache [org.jivesoftware.util.cache.DefaultLocalCacheStrategy] for Components Sessions
2022.01.14 08:46:11 INFO [main]: org.jivesoftware.util.cache.CacheFactory - Created cache [org.jivesoftware.util.cache.DefaultLocalCacheStrategy] for Connection Managers Sessions
2022.01.14 08:46:11 INFO [main]: org.jivesoftware.util.cache.CacheFactory - Created cache [org.jivesoftware.util.cache.DefaultLocalCacheStrategy] for Incoming Server Sessions
2022.01.14 08:46:11 INFO [main]: org.jivesoftware.util.cache.CacheFactory - Created cache [org.jivesoftware.util.cache.DefaultLocalCacheStrategy] for Sessions by Hostname
2022.01.14 08:46:11 INFO [main]: org.jivesoftware.util.cache.CacheFactory - Created cache [org.jivesoftware.util.cache.DefaultLocalCacheStrategy] for Validated Domains
2022.01.14 08:46:11 INFO [main]: org.jivesoftware.util.cache.CacheFactory - Created cache [org.jivesoftware.util.cache.DefaultLocalCacheStrategy] for Client Session Info Cache
2022.01.14 08:47:34 INFO [main]: org.jivesoftware.util.cache.CacheFactory - Created local-only cache [org.jivesoftware.util.cache.DefaultLocalCacheStrategy] for Entity Capabilities
2022.01.14 08:47:34 INFO [main]: org.jivesoftware.util.cache.CacheFactory - Created local-only cache [org.jivesoftware.util.cache.DefaultLocalCacheStrategy] for Entity Capabilities Users
2022.01.14 08:48:57 INFO [main]: org.jivesoftware.util.cache.CacheFactory - Created cache [org.jivesoftware.util.cache.DefaultLocalCacheStrategy] for Directed Presences
2022.01.14 08:48:57 INFO [main]: org.jivesoftware.util.cache.CacheFactory - Created local-only cache [org.jivesoftware.util.cache.DefaultLocalCacheStrategy] for PEPServiceManager
2022.01.14 08:49:57 INFO [main]: org.jivesoftware.util.cache.CacheFactory - Created cache [org.jivesoftware.util.cache.DefaultLocalCacheStrategy] for File Transfer
2022.01.14 08:50:32 INFO [main]: org.jivesoftware.util.cache.CacheFactory - Created cache [org.jivesoftware.util.cache.DefaultLocalCacheStrategy] for Published Items
2022.01.14 08:50:32 INFO [main]: org.logicalcobwebs.proxool.openfire - Proxool statistics legend: "s - r (a/t/o)" > s=served, r=refused (only shown if non-zero), a=active, t=total, o=offline (being tested)
2022.01.14 08:50:32 INFO [main]: org.jivesoftware.util.cache.CacheFactory - Created cache [org.jivesoftware.util.cache.DefaultLocalCacheStrategy] for Disco Server Features
2022.01.14 08:51:02 INFO [main]: org.jivesoftware.util.cache.CacheFactory - Created cache [org.jivesoftware.util.cache.DefaultLocalCacheStrategy] for Disco Server Items
2022.01.14 08:54:23 INFO [main]: org.jivesoftware.openfire.pubsub.PubSubModule - 发布-订阅域:pubsub.143.104.133.221
2022.01.14 08:57:34 INFO [main]: org.jivesoftware.openfire.muc.spi.MultiUserChatServiceImpl - 多用户聊天域:conference.143.104.133.221
2022.01.14 08:57:34 INFO [main]: org.jivesoftware.openfire.XMPPServer - Openfire 4.1.3 [2022-1-14 8:57:34]
2022.01.14 08:57:57 INFO [pool-3-thread-1]: org.jivesoftware.openfire.spi.EncryptionArtifactFactory - Creating new SslContextFactory instance
2022.01.14 08:57:57 INFO [pool-3-thread-1]: org.jivesoftware.util.cache.CacheFactory - Created cache [org.jivesoftware.util.cache.DefaultLocalCacheStrategy] for Favicon Misses
2022.01.14 08:57:57 INFO [pool-3-thread-1]: org.jivesoftware.util.cache.CacheFactory - Created cache [org.jivesoftware.util.cache.DefaultLocalCacheStrategy] for Favicon Hits
2022.01.14 08:58:19 INFO [pool-3-thread-1]: org.jivesoftware.openfire.container.AdminConsolePlugin - 管理平台开始监听:
http://:9092
https://:9091
2022.01.14 08:58:19 INFO [pool-3-thread-1]: org.jivesoftware.openfire.container.PluginManager - Successfully loaded plugin 'admin'.
2022.01.14 08:58:19 INFO [pool-4-thread-2]: com.superred.openfire.plugin.SuperredAuditPlugin - SuperredAuditPlugin initialize.
2022.01.14 08:58:19 INFO [pool-4-thread-2]: com.superred.AuditGlobal - Global memory init...
2022.01.14 08:58:19 INFO [pool-4-thread-2]: org.quartz.impl.StdSchedulerFactory - Using default implementation for ThreadExecutor
2022.01.14 08:58:19 INFO [pool-4-thread-2]: org.quartz.simpl.SimpleThreadPool - Job execution threads will use class loader of thread: pool-4-thread-2
2022.01.14 08:58:19 INFO [pool-4-thread-2]: org.quartz.core.SchedulerSignalerImpl - Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
2022.01.14 08:58:19 INFO [pool-4-thread-2]: org.quartz.core.QuartzScheduler - Quartz Scheduler v.2.3.0-SNAPSHOT created.
2022.01.14 08:58:19 INFO [pool-4-thread-2]: org.quartz.simpl.RAMJobStore - RAMJobStore initialized.
2022.01.14 08:58:19 INFO [pool-4-thread-2]: org.quartz.core.QuartzScheduler - Scheduler meta-data: Quartz Scheduler (v2.3.0-SNAPSHOT) 'DefaultQuartzScheduler' with instanceId 'NON_CLUSTERED'
Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
NOT STARTED.
Currently in standby mode.
Number of jobs executed: 0
Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads.
Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.
2022.01.14 08:58:19 INFO [pool-4-thread-2]: org.quartz.impl.StdSchedulerFactory - Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
2022.01.14 08:58:19 INFO [pool-4-thread-2]: org.quartz.impl.StdSchedulerFactory - Quartz scheduler version: 2.3.0-SNAPSHOT
2022.01.14 08:58:20 INFO [Thread-22]: com.superred.thread.LuceneWhiteAndBlackExportThread - LuceneWhiteAndBlackExportThread start
2022.01.14 08:58:20 INFO [pool-4-thread-2]: org.quartz.core.QuartzScheduler - Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
2022.01.14 08:58:20 INFO [pool-4-thread-2]: org.jivesoftware.openfire.container.PluginManager - Successfully loaded plugin 'superredauditholder'.
2022.01.14 08:58:20 INFO [Thread-22]: com.superred.thread.LuceneWhiteAndBlackExportThread - LuceneWhiteAndBlackExportThread end
2022.01.14 08:58:20 INFO [pool-3-thread-1]: org.jivesoftware.openfire.container.PluginMonitor - Finished processing all plugins.
Apparently, you’ve configured your server to use a proprietary User Provider (that cannot be found). I can only guess what kind of other configuration changes are made.
My advise would be to undo all of those changes, and see if the server startup reverts back to normal again.
My tests in other Linux environments are normal. I think the whole mistake should have little impact.
I try to create thread dump while the server is starting up. The database is local.
Does the red part in the figure above have any accfect ?
Now my client are always offline after being online. I cann’t find the reason.
Is the heartbeat packet time interval of the client’s online status configured on the server or the client?