Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

Hi All,

I've been scratching my head on this one for a few days now, and wonder if I'm losing it, so any input would be appreciated :)

I have a slightly tweaked DJabberd daemon running. After a while, and for no reason that I can determine, the CPU load suddenly shoots up to 97% and sticks.

What's weird is that I'm tailing the XMPP message log, and can't see continual messages (that to me would be indicative of something going on). Well, there are messages that come in bursts, but after that slows down, the CPU stays at 97%. Memory usage is consistent at 21Mb (50Mb virtual).

During this time, I can still send and receive messages with no lag, so I'm wondering what the hell could be hogging the CPU.

strace throws out an almost continual stream of:

epoll_wait(11, {{EPOLLOUT, {u32=25, u64=25}}}, 1000, -1) = 1 epoll_wait(11, {{EPOLLOUT, {u32=25, u64=25}}}, 1000, -1) = 1 epoll_wait(11, {{EPOLLOUT, {u32=25, u64=25}}}, 1000, -1) = 1 epoll_wait(11, {{EPOLLOUT, {u32=25, u64=25}}}, 1000, -1) = 1 epoll_wait(11, {{EPOLLOUT, {u32=25, u64=25}}}, 1000, -1) = 1 epoll_wait(11, {{EPOLLOUT, {u32=25, u64=25}}}, 1000, -1) = 1

A scan of the DJabberd lists shows that this is possibly an SSL error. A search points to it possibly being a timing issue (?) with watching the SSL connections, but it appears that that thread died with no resolution.

I've just disabled SSL in DJabberd (commented out set_config_sslcertificatekey and set_config_sslcertificatefile sets) , and I cannot now recreate the high load problem.

I'm running version 0.83 of DJabberd.

Has anyone encountered this issue before? Or have any idea on how to approach this?

In reply to Debugging DJabberd load issue (probably SSL related) by cLive ;-)

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?

    What's my password?
    Create A New User
    and all is quiet...

    How do I use this? | Other CB clients
    Other Users?
    Others making s'mores by the fire in the courtyard of the Monastery: (5)
    As of 2018-05-23 23:18 GMT
    Find Nodes?
      Voting Booth?