Skip navigation
2249 Views 5 Replies Latest reply: Mar 16, 2010 2:07 AM by LG RSS
David Jaehn Bronze 35 posts since
Jul 1, 2008
Currently Being Moderated

Mar 12, 2010 1:02 PM

Slow first login after openfire service restart

Hello, I'm finding that anytime that the openfire service is restarted it takes a long time (2+ min) for the user to login the first time.  It appears that after ANYONE loggs in, it still takes longer to login for the other users (30 sec or so).  After a user has logged in, if they log out and back in they get in wquickly (inside 5 sec or so) unless the services is stopped, then were back to the initial behavior again.  I would llike to avoid this behavior.  Doesnt seem to matter what client I use (Spark, Pandion, Pidgin). Using OpenFire 3.6.4.

 

The only thing I can think of is that due to our AD structure, I cannot point the Base DN at an isolated place, it basically just has top point at the root of the domain (then filters off non-openfire users based on a group membership.  I'm hoping that isnt the problem, as I have no control over that, we cannot move our user accounts to a more consolidated OU.  There is significant amount of text in the Openfire Server console, but nothing that looks too bad to me, though I admittedly have some trouble reading that into anything meaningful to me.  the servers resources during this time all look ok, nothing pegging or even close.

 

Searching the forums hasnt proven too much for me yet, any thoughts?

  • LG KeyContributor 6,192 posts since
    Dec 13, 2005
    Currently Being Moderated
    Mar 13, 2010 11:35 AM (in response to David Jaehn)
    Re: Slow first login after openfire service restart

    Hi,

     

     

    to see why it takes two minutes you may want to take javacores every 20 seconds, maybe a thread is blocking.

     

    Openfire uses a database cache. You could delete it after the first login to see whether this changes something.

     

    As it is open source you could get the current trunk which supports log4j and add some log statements to see where it takes long.

     

    The JVM does need to compile the code, you could start Openfire with "-Xcomp -Xbatch". The startup itself should be a little bit slower but I wonder whether you does notice a difference. in any case you should not use these settings for production as this produces compiled code without optimization.

     

    LG

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points