Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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 ;-)

Title:
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!
  • 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
  • Outside of code tags, you may need to use entities for some characters:
            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?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others chanting in the Monastery: (7)
    As of 2014-09-16 05:26 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      My favorite cookbook is:










      Results (156 votes), past polls