[jitsi-dev] IRC caused freeze (potentially)

Hey Danny,

So first of all, a huge THANK YOU, for all the hard work on this one!
You've done an awesome job and I am finally reliably back on our IRC
channel thanks to you! :slight_smile:

The plugin works really great!

I only have one suspicion for a potential issue. Since I installed it,
my Jitsi instance GUI freezes on occasion. It unlocks after about 10''
to 20'' but it then happens again after a while. I wasn't really sure
this had anything to do with IRC, until Pawel mentioned today that he
saw the same issue after starting to use it.

This is still not proof and it probably needs more serious
investigation but can you think of something that you might be doing
in the AWT Event Dispatch thread?

Emil

···

--
https://jitsi.org

Hi Emil (and others),

I don't have time atm for a full response, but I can only think of
things I'm doing in the AWT event thread as the result of a user action
in the UI. (Most operations are async by nature, though, so I only need
to initiate something.) The only thing I noticed is that Jitsi does some
pretty heavy user look-ups. With a few chat rooms with 100s of users
that can be quite a number. I have noticed a delay from that, though.

Obviously there is a thread running for the IRC connection, but that
occurs in the background, otherwise I wouldn't be able to return. I am
not surprised though that you find something ... it was far too quiet :stuck_out_tongue:

Can you do the obvious checks like running with IRC protocol disabled,
with and without existing connection, with or without open chat room? At
least that way we know when it does or doesn't happen. And you should
also get a pretty good impression of what is going on by enabling FINE
logging. It's quite verbose but FINE doesn't output actual IRC messages
yet, so it should be managable.

I'll look into this soon.

Danny

···

On 08/26/2014 06:06 PM, Emil Ivov wrote:

Hey Danny,

So first of all, a huge THANK YOU, for all the hard work on this one!
You've done an awesome job and I am finally reliably back on our IRC
channel thanks to you! :slight_smile:

The plugin works really great!

I only have one suspicion for a potential issue. Since I installed it,
my Jitsi instance GUI freezes on occasion. It unlocks after about 10''
to 20'' but it then happens again after a while. I wasn't really sure
this had anything to do with IRC, until Pawel mentioned today that he
saw the same issue after starting to use it.

This is still not proof and it probably needs more serious
investigation but can you think of something that you might be doing
in the AWT Event Dispatch thread?

Emil

Hi all,

this is the CPU spikes I reported earlier (maybe?). 22nd aug „Jitsi CPU spikes“.

I played some more with enabling and disableing IRC. It only occurs when IRC account is active. Takes a few minutes but then CPU usage rises and fans start spinning like crazy.

I have two low traffic IRC channels with few users on auto-join of which only the first or none connects.

Hope this helps, would be great to see addressed since I switched back to Adium. I’m afraid my laptop will melt :wink:

Cheers

···

Am 26.08.2014 um 19:45 schrieb Danny van Heumen <danny@dannyvanheumen.nl>:

Hi Emil (and others),

I don't have time atm for a full response, but I can only think of
things I'm doing in the AWT event thread as the result of a user action
in the UI. (Most operations are async by nature, though, so I only need
to initiate something.) The only thing I noticed is that Jitsi does some
pretty heavy user look-ups. With a few chat rooms with 100s of users
that can be quite a number. I have noticed a delay from that, though.

Obviously there is a thread running for the IRC connection, but that
occurs in the background, otherwise I wouldn't be able to return. I am
not surprised though that you find something ... it was far too quiet :stuck_out_tongue:

Can you do the obvious checks like running with IRC protocol disabled,
with and without existing connection, with or without open chat room? At
least that way we know when it does or doesn't happen. And you should
also get a pretty good impression of what is going on by enabling FINE
logging. It's quite verbose but FINE doesn't output actual IRC messages
yet, so it should be managable.

I'll look into this soon.

Danny

On 08/26/2014 06:06 PM, Emil Ivov wrote:

Hey Danny,

So first of all, a huge THANK YOU, for all the hard work on this one!
You've done an awesome job and I am finally reliably back on our IRC
channel thanks to you! :slight_smile:

The plugin works really great!

I only have one suspicion for a potential issue. Since I installed it,
my Jitsi instance GUI freezes on occasion. It unlocks after about 10''
to 20'' but it then happens again after a while. I wasn't really sure
this had anything to do with IRC, until Pawel mentioned today that he
saw the same issue after starting to use it.

This is still not proof and it probably needs more serious
investigation but can you think of something that you might be doing
in the AWT Event Dispatch thread?

Emil

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

···

Hi all,

  This is exactly what crossed my mind as soon as I read Emil's

message. I can’t yet think of a reason for the huge CPU spikes.
There are 2 points where I wait for an asynchronous call to
finish, where I thought I was on a dedicated thread (now I’m not
sure, so I’m going to check that). That may be a mistake, but that
still doesn’t explain the spikes.

  I will look at this as soon as possible.

  Kind regards,

  Danny

  On 08/26/2014 09:43 PM, Foss wrote:

Hi all,

    this is the CPU spikes I reported earlier (maybe?). 22nd aug

„Jitsi CPU spikes“.

    I played some more with enabling and disableing IRC. It only

occurs when IRC account is active. Takes a few minutes but then
CPU usage rises and fans start spinning like crazy.

    I have two low traffic IRC channels with few users on

auto-join of which only the first or none connects.

    Hope this helps, would be great to see addressed since I

switched back to Adium. I’m afraid my laptop will melt :wink:

Cheers

Am 26.08.2014 um 19:45 schrieb Danny van Heumen danny@dannyvanheumen.nl:

Hi Emil (and others),

        I don't have time atm for a full response, but I can only

think of

        things I'm doing in the AWT event thread as the result of a

user action

        in the UI. (Most operations are async by nature, though, so

I only need

        to initiate something.) The only thing I noticed is that

Jitsi does some

        pretty heavy user look-ups. With a few chat rooms with 100s

of users

        that can be quite a number. I have noticed a delay from

that, though.

        Obviously there is a thread running for the IRC connection,

but that

        occurs in the background, otherwise I wouldn't be able to

return. I am

        not surprised though that you find something ... it was far

too quiet :stuck_out_tongue:

        Can you do the obvious checks like running with IRC protocol

disabled,

        with and without existing connection, with or without open

chat room? At

        least that way we know when it does or doesn't happen. And

you should

        also get a pretty good impression of what is going on by

enabling FINE

        logging. It's quite verbose but FINE doesn't output actual

IRC messages

        yet, so it should be managable.



        I'll look into this soon.



        Danny







        On 08/26/2014 06:06 PM, Emil Ivov wrote:

Hey Danny,

          So first of all, a huge THANK YOU, for all the hard work

on this one!

          You've done an awesome job and I am finally reliably back

on our IRC

          channel thanks to you! :)



          The plugin works really great!



          I only have one suspicion for a potential issue. Since I

installed it,

          my Jitsi instance GUI freezes on occasion. It unlocks

after about 10’’

          to 20'' but it then happens again after a while. I wasn't

really sure

          this had anything to do with IRC, until Pawel mentioned

today that he

          saw the same issue after starting to use it.



          This is still not proof and it probably needs more serious

          investigation but can you think of something that you

might be doing

          in the AWT Event Dispatch thread?



          Emil
        _______________________________________________

        dev mailing list

        dev@jitsi.org

        Unsubscribe instructions and other list options:

_______________________________________________
dev mailing list
Unsubscribe instructions and other list options:

http://lists.jitsi.org/mailman/listinfo/dev
dev@jitsi.orghttp://lists.jitsi.org/mailman/listinfo/dev

It might help Danny if you could send a Java thread dump when the issue occurs. The one you sent earlier only includes the native code from OSX and unfortunately isn't useful for debugging.

Freundliche Grüsse,
Ingo Bauersachs

-- sent from my mobile

···

Le 27.08.2014 à 03:45, "Foss" <foss@openmailbox.org> a écrit :

Hi all,

this is the CPU spikes I reported earlier (maybe?). 22nd aug „Jitsi CPU spikes“.

I played some more with enabling and disableing IRC. It only occurs when IRC account is active. Takes a few minutes but then CPU usage rises and fans start spinning like crazy.

I have two low traffic IRC channels with few users on auto-join of which only the first or none connects.

Hope this helps, would be great to see addressed since I switched back to Adium. I’m afraid my laptop will melt :wink:

Cheers

Am 26.08.2014 um 19:45 schrieb Danny van Heumen <danny@dannyvanheumen.nl>:

Hi Emil (and others),

I don't have time atm for a full response, but I can only think of
things I'm doing in the AWT event thread as the result of a user action
in the UI. (Most operations are async by nature, though, so I only need
to initiate something.) The only thing I noticed is that Jitsi does some
pretty heavy user look-ups. With a few chat rooms with 100s of users
that can be quite a number. I have noticed a delay from that, though.

Obviously there is a thread running for the IRC connection, but that
occurs in the background, otherwise I wouldn't be able to return. I am
not surprised though that you find something ... it was far too quiet :stuck_out_tongue:

Can you do the obvious checks like running with IRC protocol disabled,
with and without existing connection, with or without open chat room? At
least that way we know when it does or doesn't happen. And you should
also get a pretty good impression of what is going on by enabling FINE
logging. It's quite verbose but FINE doesn't output actual IRC messages
yet, so it should be managable.

I'll look into this soon.

Danny

On 08/26/2014 06:06 PM, Emil Ivov wrote:
Hey Danny,

So first of all, a huge THANK YOU, for all the hard work on this one!
You've done an awesome job and I am finally reliably back on our IRC
channel thanks to you! :slight_smile:

The plugin works really great!

I only have one suspicion for a potential issue. Since I installed it,
my Jitsi instance GUI freezes on occasion. It unlocks after about 10''
to 20'' but it then happens again after a while. I wasn't really sure
this had anything to do with IRC, until Pawel mentioned today that he
saw the same issue after starting to use it.

This is still not proof and it probably needs more serious
investigation but can you think of something that you might be doing
in the AWT Event Dispatch thread?

Emil

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

···

Hey Foss,

  Can you check if the CPU spike(s) start after you have listed the available IRC chat rooms?

  (So "File" -> "Add chat room" -> "List")

  And could you also confirm that, if you do not touch IRC chat rooms listing (after a clean start of the program), that CPU stays as normal?

  Thanks!

  Danny

  On 26-08-14 21:43, Foss wrote:

Hi all,

    this is the CPU spikes I reported earlier (maybe?). 22nd aug �Jitsi CPU spikes�.
    I played some more with enabling and disableing IRC. It only occurs when IRC account is active. Takes a few minutes but then CPU usage rises and fans start spinning like crazy.
    I have two low traffic IRC channels with few users on auto-join of which only the first or none connects.
    Hope this helps, would be great to see addressed since I switched back to Adium. I�m afraid my laptop will melt ;)

Cheers

Am 26.08.2014 um 19:45 schrieb Danny van Heumen danny@dannyvanheumen.nl:

Hi Emil (and others),

        I don't have time atm for a full response, but I can only think of

        things I'm doing in the AWT event thread as the result of a user action

        in the UI. (Most operations are async by nature, though, so I only need

        to initiate something.) The only thing I noticed is that Jitsi does some

        pretty heavy user look-ups. With a few chat rooms with 100s of users

        that can be quite a number. I have noticed a delay from that, though.



        Obviously there is a thread running for the IRC connection, but that

        occurs in the background, otherwise I wouldn't be able to return. I am

        not surprised though that you find something ... it was far too quiet :-P



        Can you do the obvious checks like running with IRC protocol disabled,

        with and without existing connection, with or without open chat room? At

        least that way we know when it does or doesn't happen. And you should

        also get a pretty good impression of what is going on by enabling FINE

        logging. It's quite verbose but FINE doesn't output actual IRC messages

        yet, so it should be managable.



        I'll look into this soon.



        Danny







        On 08/26/2014 06:06 PM, Emil Ivov wrote:

Hey Danny,

          So first of all, a huge THANK YOU, for all the hard work on this one!

          You've done an awesome job and I am finally reliably back on our IRC

          channel thanks to you! :)



          The plugin works really great!



          I only have one suspicion for a potential issue. Since I installed it,

          my Jitsi instance GUI freezes on occasion. It unlocks after about 10''

          to 20'' but it then happens again after a while. I wasn't really sure

          this had anything to do with IRC, until Pawel mentioned today that he

          saw the same issue after starting to use it.



          This is still not proof and it probably needs more serious

          investigation but can you think of something that you might be doing

          in the AWT Event Dispatch thread?



          Emil

Hi all,

I'm quite confident that I have tracked the cause for the "Jitsi CPU
spikes". I haven't fixed it (yet), but for the record I want to put my
findings on the mailing list.

It seems that the spikes are caused by the manner in which available
chat rooms are inserted into the UI list control in the server chat room
list dialog. After each chat room that gets added to the list a
Sort-operation automatically gets called. Now, for a few chat rooms,
this is not a big deal. However, since an IRC server can easily host
16.000+ chat rooms, sorting after each individual insertion will result
in a rather large backlog of sorting operations of which every but the
last one is useless.

Danny

···

On 26-08-14 21:43, Foss wrote:

Hi all,

this is the CPU spikes I reported earlier (maybe?). 22nd aug �Jitsi
CPU spikes�.

I played some more with enabling and disableing IRC. It only occurs
when IRC account is active. Takes a few minutes but then CPU usage
rises and fans start spinning like crazy.

I have two low traffic IRC channels with few users on auto-join of
which only the first or none connects.

Hope this helps, would be great to see addressed since I switched back
to Adium. I�m afraid my laptop will melt :wink:

Cheers

Am 26.08.2014 um 19:45 schrieb Danny van Heumen
<danny@dannyvanheumen.nl <mailto:danny@dannyvanheumen.nl>>:

Hi Emil (and others),

I don't have time atm for a full response, but I can only think of
things I'm doing in the AWT event thread as the result of a user action
in the UI. (Most operations are async by nature, though, so I only need
to initiate something.) The only thing I noticed is that Jitsi does some
pretty heavy user look-ups. With a few chat rooms with 100s of users
that can be quite a number. I have noticed a delay from that, though.

Obviously there is a thread running for the IRC connection, but that
occurs in the background, otherwise I wouldn't be able to return. I am
not surprised though that you find something ... it was far too quiet :stuck_out_tongue:

Can you do the obvious checks like running with IRC protocol disabled,
with and without existing connection, with or without open chat room? At
least that way we know when it does or doesn't happen. And you should
also get a pretty good impression of what is going on by enabling FINE
logging. It's quite verbose but FINE doesn't output actual IRC messages
yet, so it should be managable.

I'll look into this soon.

Danny

On 08/26/2014 06:06 PM, Emil Ivov wrote:

Hey Danny,

So first of all, a huge THANK YOU, for all the hard work on this one!
You've done an awesome job and I am finally reliably back on our IRC
channel thanks to you! :slight_smile:

The plugin works really great!

I only have one suspicion for a potential issue. Since I installed it,
my Jitsi instance GUI freezes on occasion. It unlocks after about 10''
to 20'' but it then happens again after a while. I wasn't really sure
this had anything to do with IRC, until Pawel mentioned today that he
saw the same issue after starting to use it.

This is still not proof and it probably needs more serious
investigation but can you think of something that you might be doing
in the AWT Event Dispatch thread?

Emil

_______________________________________________
dev mailing list
dev@jitsi.org <mailto:dev@jitsi.org>
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

Quick comment: the blockages I mentioned did NOT seem to have any effect on
the CPU whatsoever. There weren't any spikes

--sent from my mobile

···

On 26 Aug 2014 11:57 PM, "Danny van Heumen" <danny@dannyvanheumen.nl> wrote:

Hi all,

This is exactly what crossed my mind as soon as I read Emil's message. I
can't yet think of a reason for the huge CPU spikes. There are 2 points
where I wait for an asynchronous call to finish, where I thought I was on a
dedicated thread (now I'm not sure, so I'm going to check that). That may
be a mistake, but that still doesn't explain the spikes.

I will look at this as soon as possible.

Kind regards,
Danny

On 08/26/2014 09:43 PM, Foss wrote:

Hi all,

this is the CPU spikes I reported earlier (maybe?). 22nd aug „Jitsi CPU
spikes“.

I played some more with enabling and disableing IRC. It only occurs when
IRC account is active. Takes a few minutes but then CPU usage rises and
fans start spinning like crazy.

I have two low traffic IRC channels with few users on auto-join of which
only the first or none connects.

Hope this helps, would be great to see addressed since I switched back
to Adium. I’m afraid my laptop will melt :wink:

Cheers

Am 26.08.2014 um 19:45 schrieb Danny van Heumen <danny@dannyvanheumen.nl > >:

Hi Emil (and others),

I don't have time atm for a full response, but I can only think of
things I'm doing in the AWT event thread as the result of a user action
in the UI. (Most operations are async by nature, though, so I only need
to initiate something.) The only thing I noticed is that Jitsi does some
pretty heavy user look-ups. With a few chat rooms with 100s of users
that can be quite a number. I have noticed a delay from that, though.

Obviously there is a thread running for the IRC connection, but that
occurs in the background, otherwise I wouldn't be able to return. I am
not surprised though that you find something ... it was far too quiet :stuck_out_tongue:

Can you do the obvious checks like running with IRC protocol disabled,
with and without existing connection, with or without open chat room? At
least that way we know when it does or doesn't happen. And you should
also get a pretty good impression of what is going on by enabling FINE
logging. It's quite verbose but FINE doesn't output actual IRC messages
yet, so it should be managable.

I'll look into this soon.

Danny

On 08/26/2014 06:06 PM, Emil Ivov wrote:

Hey Danny,

So first of all, a huge THANK YOU, for all the hard work on this one!
You've done an awesome job and I am finally reliably back on our IRC
channel thanks to you! :slight_smile:

The plugin works really great!

I only have one suspicion for a potential issue. Since I installed it,
my Jitsi instance GUI freezes on occasion. It unlocks after about 10''
to 20'' but it then happens again after a while. I wasn't really sure
this had anything to do with IRC, until Pawel mentioned today that he
saw the same issue after starting to use it.

This is still not proof and it probably needs more serious
investigation but can you think of something that you might be doing
in the AWT Event Dispatch thread?

Emil

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

_______________________________________________
dev mailing listdev@jitsi.org
Unsubscribe instructions and other list options:http://lists.jitsi.org/mailman/listinfo/dev

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

Yes, I was going to. Just haven't had the time to look into this yet.

···

On Wed, Aug 27, 2014 at 8:01 AM, Ingo Bauersachs <ingo@jitsi.org> wrote:

It might help Danny if you could send a Java thread dump when the issue
occurs. The one you sent earlier only includes the native code from OSX and
unfortunately isn't useful for debugging.

Freundliche Grüsse,
Ingo Bauersachs

-- sent from my mobile

Le 27.08.2014 à 03:45, "Foss" <foss@openmailbox.org> a écrit :

Hi all,

this is the CPU spikes I reported earlier (maybe?). 22nd aug „Jitsi CPU
spikes“.

I played some more with enabling and disableing IRC. It only occurs when IRC
account is active. Takes a few minutes but then CPU usage rises and fans
start spinning like crazy.

I have two low traffic IRC channels with few users on auto-join of which
only the first or none connects.

Hope this helps, would be great to see addressed since I switched back to
Adium. I’m afraid my laptop will melt :wink:

Cheers

Am 26.08.2014 um 19:45 schrieb Danny van Heumen <danny@dannyvanheumen.nl>:

Hi Emil (and others),

I don't have time atm for a full response, but I can only think of
things I'm doing in the AWT event thread as the result of a user action
in the UI. (Most operations are async by nature, though, so I only need
to initiate something.) The only thing I noticed is that Jitsi does some
pretty heavy user look-ups. With a few chat rooms with 100s of users
that can be quite a number. I have noticed a delay from that, though.

Obviously there is a thread running for the IRC connection, but that
occurs in the background, otherwise I wouldn't be able to return. I am
not surprised though that you find something ... it was far too quiet :stuck_out_tongue:

Can you do the obvious checks like running with IRC protocol disabled,
with and without existing connection, with or without open chat room? At
least that way we know when it does or doesn't happen. And you should
also get a pretty good impression of what is going on by enabling FINE
logging. It's quite verbose but FINE doesn't output actual IRC messages
yet, so it should be managable.

I'll look into this soon.

Danny

On 08/26/2014 06:06 PM, Emil Ivov wrote:

Hey Danny,

So first of all, a huge THANK YOU, for all the hard work on this one!
You've done an awesome job and I am finally reliably back on our IRC
channel thanks to you! :slight_smile:

The plugin works really great!

I only have one suspicion for a potential issue. Since I installed it,
my Jitsi instance GUI freezes on occasion. It unlocks after about 10''
to 20'' but it then happens again after a while. I wasn't really sure
this had anything to do with IRC, until Pawel mentioned today that he
saw the same issue after starting to use it.

This is still not proof and it probably needs more serious
investigation but can you think of something that you might be doing
in the AWT Event Dispatch thread?

Emil

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

--
https://jitsi.org

Nope. Had the freeze even without IRC enabled.

···

On Wed, Aug 27, 2014 at 8:12 AM, Emil Ivov <emcho@jitsi.org> wrote:

Yes, I was going to. Just haven't had the time to look into this yet.

On Wed, Aug 27, 2014 at 8:01 AM, Ingo Bauersachs <ingo@jitsi.org> wrote:

It might help Danny if you could send a Java thread dump when the issue
occurs. The one you sent earlier only includes the native code from OSX and
unfortunately isn't useful for debugging.

Freundliche Grüsse,
Ingo Bauersachs

-- sent from my mobile

Le 27.08.2014 à 03:45, "Foss" <foss@openmailbox.org> a écrit :

Hi all,

this is the CPU spikes I reported earlier (maybe?). 22nd aug „Jitsi CPU
spikes“.

I played some more with enabling and disableing IRC. It only occurs when IRC
account is active. Takes a few minutes but then CPU usage rises and fans
start spinning like crazy.

I have two low traffic IRC channels with few users on auto-join of which
only the first or none connects.

Hope this helps, would be great to see addressed since I switched back to
Adium. I’m afraid my laptop will melt :wink:

Cheers

Am 26.08.2014 um 19:45 schrieb Danny van Heumen <danny@dannyvanheumen.nl>:

Hi Emil (and others),

I don't have time atm for a full response, but I can only think of
things I'm doing in the AWT event thread as the result of a user action
in the UI. (Most operations are async by nature, though, so I only need
to initiate something.) The only thing I noticed is that Jitsi does some
pretty heavy user look-ups. With a few chat rooms with 100s of users
that can be quite a number. I have noticed a delay from that, though.

Obviously there is a thread running for the IRC connection, but that
occurs in the background, otherwise I wouldn't be able to return. I am
not surprised though that you find something ... it was far too quiet :stuck_out_tongue:

Can you do the obvious checks like running with IRC protocol disabled,
with and without existing connection, with or without open chat room? At
least that way we know when it does or doesn't happen. And you should
also get a pretty good impression of what is going on by enabling FINE
logging. It's quite verbose but FINE doesn't output actual IRC messages
yet, so it should be managable.

I'll look into this soon.

Danny

On 08/26/2014 06:06 PM, Emil Ivov wrote:

Hey Danny,

So first of all, a huge THANK YOU, for all the hard work on this one!
You've done an awesome job and I am finally reliably back on our IRC
channel thanks to you! :slight_smile:

The plugin works really great!

I only have one suspicion for a potential issue. Since I installed it,
my Jitsi instance GUI freezes on occasion. It unlocks after about 10''
to 20'' but it then happens again after a while. I wasn't really sure
this had anything to do with IRC, until Pawel mentioned today that he
saw the same issue after starting to use it.

This is still not proof and it probably needs more serious
investigation but can you think of something that you might be doing
in the AWT Event Dispatch thread?

Emil

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

--
https://jitsi.org

--
https://jitsi.org

Hi all,

I've pushed a change to master which significantly improves the CPU load
for adding 16000+ chat rooms.

This change does not completely remove the CPU load, but it is decreased
significantly enough that one can wait for it to finish. It usually
takes in the order of a few seconds to handle the insertions. The
current implementation inserts a chat room at the correct position in
the list, such that it is not necessary to do any sorting.

Danny

···

On 29-10-14 22:52, Danny van Heumen wrote:

Hi all,

I'm quite confident that I have tracked the cause for the "Jitsi CPU
spikes". I haven't fixed it (yet), but for the record I want to put my
findings on the mailing list.

It seems that the spikes are caused by the manner in which available
chat rooms are inserted into the UI list control in the server chat room
list dialog. After each chat room that gets added to the list a
Sort-operation automatically gets called. Now, for a few chat rooms,
this is not a big deal. However, since an IRC server can easily host
16.000+ chat rooms, sorting after each individual insertion will result
in a rather large backlog of sorting operations of which every but the
last one is useless.

Danny

On 26-08-14 21:43, Foss wrote:

Hi all,

this is the CPU spikes I reported earlier (maybe?). 22nd aug �Jitsi
CPU spikes�.

[...]

... and the plot thickens!

Anyways, I've checked but everywhere where I actually wait for an async
operation (just to be sure), its in a different thread then the AWT
event thread, and even different threads alltogether. So no easy fix there.

I'm wondering ... would it have anything to do with the garbage
collector? ... that would be a good reason why everything stops for a
bit ... though 10 seconds is quite long for the GC in this case, I think.

On what OS and version of the JRE are you running when it happens?

Kind regards,
Danny

···

On 08/27/2014 03:10 PM, Emil Ivov wrote:

Nope. Had the freeze even without IRC enabled.

On Wed, Aug 27, 2014 at 8:12 AM, Emil Ivov <emcho@jitsi.org> wrote:

Yes, I was going to. Just haven't had the time to look into this yet.

On Wed, Aug 27, 2014 at 8:01 AM, Ingo Bauersachs <ingo@jitsi.org> wrote:

It might help Danny if you could send a Java thread dump when the issue
occurs. The one you sent earlier only includes the native code from OSX and
unfortunately isn't useful for debugging.

Freundliche Grüsse,
Ingo Bauersachs

-- sent from my mobile

Le 27.08.2014 à 03:45, "Foss" <foss@openmailbox.org> a écrit :

Hi all,

this is the CPU spikes I reported earlier (maybe?). 22nd aug „Jitsi CPU
spikes“.

I played some more with enabling and disableing IRC. It only occurs when IRC
account is active. Takes a few minutes but then CPU usage rises and fans
start spinning like crazy.

I have two low traffic IRC channels with few users on auto-join of which
only the first or none connects.

Hope this helps, would be great to see addressed since I switched back to
Adium. I’m afraid my laptop will melt :wink:

Cheers

Am 26.08.2014 um 19:45 schrieb Danny van Heumen <danny@dannyvanheumen.nl>:

Hi Emil (and others),

I don't have time atm for a full response, but I can only think of
things I'm doing in the AWT event thread as the result of a user action
in the UI. (Most operations are async by nature, though, so I only need
to initiate something.) The only thing I noticed is that Jitsi does some
pretty heavy user look-ups. With a few chat rooms with 100s of users
that can be quite a number. I have noticed a delay from that, though.

Obviously there is a thread running for the IRC connection, but that
occurs in the background, otherwise I wouldn't be able to return. I am
not surprised though that you find something ... it was far too quiet :stuck_out_tongue:

Can you do the obvious checks like running with IRC protocol disabled,
with and without existing connection, with or without open chat room? At
least that way we know when it does or doesn't happen. And you should
also get a pretty good impression of what is going on by enabling FINE
logging. It's quite verbose but FINE doesn't output actual IRC messages
yet, so it should be managable.

I'll look into this soon.

Danny

On 08/26/2014 06:06 PM, Emil Ivov wrote:

Hey Danny,

So first of all, a huge THANK YOU, for all the hard work on this one!
You've done an awesome job and I am finally reliably back on our IRC
channel thanks to you! :slight_smile:

The plugin works really great!

I only have one suspicion for a potential issue. Since I installed it,
my Jitsi instance GUI freezes on occasion. It unlocks after about 10''
to 20'' but it then happens again after a while. I wasn't really sure
this had anything to do with IRC, until Pawel mentioned today that he
saw the same issue after starting to use it.

This is still not proof and it probably needs more serious
investigation but can you think of something that you might be doing
in the AWT Event Dispatch thread?

Emil

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

--
https://jitsi.org

FWIW, the reason for the freeze (discovered by Damencho) was a
misbehaving OS beep that would occur when backspacing into emptiness
for example.

In other words: totally unrelated to IRC.

···

On Wed, Aug 27, 2014 at 10:23 PM, Danny van Heumen <danny@dannyvanheumen.nl> wrote:

... and the plot thickens!

Anyways, I've checked but everywhere where I actually wait for an async
operation (just to be sure), its in a different thread then the AWT
event thread, and even different threads alltogether. So no easy fix there.

I'm wondering ... would it have anything to do with the garbage
collector? ... that would be a good reason why everything stops for a
bit ... though 10 seconds is quite long for the GC in this case, I think.

On what OS and version of the JRE are you running when it happens?

Kind regards,
Danny

On 08/27/2014 03:10 PM, Emil Ivov wrote:

Nope. Had the freeze even without IRC enabled.

On Wed, Aug 27, 2014 at 8:12 AM, Emil Ivov <emcho@jitsi.org> wrote:

Yes, I was going to. Just haven't had the time to look into this yet.

On Wed, Aug 27, 2014 at 8:01 AM, Ingo Bauersachs <ingo@jitsi.org> wrote:

It might help Danny if you could send a Java thread dump when the issue
occurs. The one you sent earlier only includes the native code from OSX and
unfortunately isn't useful for debugging.

Freundliche Grüsse,
Ingo Bauersachs

-- sent from my mobile

Le 27.08.2014 à 03:45, "Foss" <foss@openmailbox.org> a écrit :

Hi all,

this is the CPU spikes I reported earlier (maybe?). 22nd aug „Jitsi CPU
spikes“.

I played some more with enabling and disableing IRC. It only occurs when IRC
account is active. Takes a few minutes but then CPU usage rises and fans
start spinning like crazy.

I have two low traffic IRC channels with few users on auto-join of which
only the first or none connects.

Hope this helps, would be great to see addressed since I switched back to
Adium. I’m afraid my laptop will melt :wink:

Cheers

Am 26.08.2014 um 19:45 schrieb Danny van Heumen <danny@dannyvanheumen.nl>:

Hi Emil (and others),

I don't have time atm for a full response, but I can only think of
things I'm doing in the AWT event thread as the result of a user action
in the UI. (Most operations are async by nature, though, so I only need
to initiate something.) The only thing I noticed is that Jitsi does some
pretty heavy user look-ups. With a few chat rooms with 100s of users
that can be quite a number. I have noticed a delay from that, though.

Obviously there is a thread running for the IRC connection, but that
occurs in the background, otherwise I wouldn't be able to return. I am
not surprised though that you find something ... it was far too quiet :stuck_out_tongue:

Can you do the obvious checks like running with IRC protocol disabled,
with and without existing connection, with or without open chat room? At
least that way we know when it does or doesn't happen. And you should
also get a pretty good impression of what is going on by enabling FINE
logging. It's quite verbose but FINE doesn't output actual IRC messages
yet, so it should be managable.

I'll look into this soon.

Danny

On 08/26/2014 06:06 PM, Emil Ivov wrote:

Hey Danny,

So first of all, a huge THANK YOU, for all the hard work on this one!
You've done an awesome job and I am finally reliably back on our IRC
channel thanks to you! :slight_smile:

The plugin works really great!

I only have one suspicion for a potential issue. Since I installed it,
my Jitsi instance GUI freezes on occasion. It unlocks after about 10''
to 20'' but it then happens again after a while. I wasn't really sure
this had anything to do with IRC, until Pawel mentioned today that he
saw the same issue after starting to use it.

This is still not proof and it probably needs more serious
investigation but can you think of something that you might be doing
in the AWT Event Dispatch thread?

Emil

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

--
https://jitsi.org

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

--
https://jitsi.org

and that discovered freeze was fixed already?

···

Am 04.09.2014 um 10:27 schrieb Emil Ivov <emcho@jitsi.org>:

FWIW, the reason for the freeze (discovered by Damencho) was a
misbehaving OS beep that would occur when backspacing into emptiness
for example.

In other words: totally unrelated to IRC.

On Wed, Aug 27, 2014 at 10:23 PM, Danny van Heumen > <danny@dannyvanheumen.nl> wrote:

... and the plot thickens!

Anyways, I've checked but everywhere where I actually wait for an async
operation (just to be sure), its in a different thread then the AWT
event thread, and even different threads alltogether. So no easy fix there.

I'm wondering ... would it have anything to do with the garbage
collector? ... that would be a good reason why everything stops for a
bit ... though 10 seconds is quite long for the GC in this case, I think.

On what OS and version of the JRE are you running when it happens?

Kind regards,
Danny

On 08/27/2014 03:10 PM, Emil Ivov wrote:

Nope. Had the freeze even without IRC enabled.

On Wed, Aug 27, 2014 at 8:12 AM, Emil Ivov <emcho@jitsi.org> wrote:

Yes, I was going to. Just haven't had the time to look into this yet.

On Wed, Aug 27, 2014 at 8:01 AM, Ingo Bauersachs <ingo@jitsi.org> wrote:

It might help Danny if you could send a Java thread dump when the issue
occurs. The one you sent earlier only includes the native code from OSX and
unfortunately isn't useful for debugging.

Freundliche Grüsse,
Ingo Bauersachs

-- sent from my mobile

Le 27.08.2014 à 03:45, "Foss" <foss@openmailbox.org> a écrit :

Hi all,

this is the CPU spikes I reported earlier (maybe?). 22nd aug „Jitsi CPU
spikes“.

I played some more with enabling and disableing IRC. It only occurs when IRC
account is active. Takes a few minutes but then CPU usage rises and fans
start spinning like crazy.

I have two low traffic IRC channels with few users on auto-join of which
only the first or none connects.

Hope this helps, would be great to see addressed since I switched back to
Adium. I’m afraid my laptop will melt :wink:

Cheers

Am 26.08.2014 um 19:45 schrieb Danny van Heumen <danny@dannyvanheumen.nl>:

Hi Emil (and others),

I don't have time atm for a full response, but I can only think of
things I'm doing in the AWT event thread as the result of a user action
in the UI. (Most operations are async by nature, though, so I only need
to initiate something.) The only thing I noticed is that Jitsi does some
pretty heavy user look-ups. With a few chat rooms with 100s of users
that can be quite a number. I have noticed a delay from that, though.

Obviously there is a thread running for the IRC connection, but that
occurs in the background, otherwise I wouldn't be able to return. I am
not surprised though that you find something ... it was far too quiet :stuck_out_tongue:

Can you do the obvious checks like running with IRC protocol disabled,
with and without existing connection, with or without open chat room? At
least that way we know when it does or doesn't happen. And you should
also get a pretty good impression of what is going on by enabling FINE
logging. It's quite verbose but FINE doesn't output actual IRC messages
yet, so it should be managable.

I'll look into this soon.

Danny

On 08/26/2014 06:06 PM, Emil Ivov wrote:

Hey Danny,

So first of all, a huge THANK YOU, for all the hard work on this one!
You've done an awesome job and I am finally reliably back on our IRC
channel thanks to you! :slight_smile:

The plugin works really great!

I only have one suspicion for a potential issue. Since I installed it,
my Jitsi instance GUI freezes on occasion. It unlocks after about 10''
to 20'' but it then happens again after a while. I wasn't really sure
this had anything to do with IRC, until Pawel mentioned today that he
saw the same issue after starting to use it.

This is still not proof and it probably needs more serious
investigation but can you think of something that you might be doing
in the AWT Event Dispatch thread?

Emil

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

--
https://jitsi.org

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

--
https://jitsi.org

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

Hi Emil, thanks for letting me know.

···

On 09/04/2014 10:27 AM, Emil Ivov wrote:

FWIW, the reason for the freeze (discovered by Damencho) was a
misbehaving OS beep that would occur when backspacing into emptiness
for example.

In other words: totally unrelated to IRC.

On Wed, Aug 27, 2014 at 10:23 PM, Danny van Heumen > <danny@dannyvanheumen.nl> wrote:

... and the plot thickens!

Anyways, I've checked but everywhere where I actually wait for an async
operation (just to be sure), its in a different thread then the AWT
event thread, and even different threads alltogether. So no easy fix there.

I'm wondering ... would it have anything to do with the garbage
collector? ... that would be a good reason why everything stops for a
bit ... though 10 seconds is quite long for the GC in this case, I think.

On what OS and version of the JRE are you running when it happens?

Kind regards,
Danny

On 08/27/2014 03:10 PM, Emil Ivov wrote:

Nope. Had the freeze even without IRC enabled.

On Wed, Aug 27, 2014 at 8:12 AM, Emil Ivov <emcho@jitsi.org> wrote:

Yes, I was going to. Just haven't had the time to look into this yet.

On Wed, Aug 27, 2014 at 8:01 AM, Ingo Bauersachs <ingo@jitsi.org> wrote:

It might help Danny if you could send a Java thread dump when the issue
occurs. The one you sent earlier only includes the native code from OSX and
unfortunately isn't useful for debugging.

Freundliche Grüsse,
Ingo Bauersachs

-- sent from my mobile

Le 27.08.2014 à 03:45, "Foss" <foss@openmailbox.org> a écrit :

Hi all,

this is the CPU spikes I reported earlier (maybe?). 22nd aug „Jitsi CPU
spikes“.

I played some more with enabling and disableing IRC. It only occurs when IRC
account is active. Takes a few minutes but then CPU usage rises and fans
start spinning like crazy.

I have two low traffic IRC channels with few users on auto-join of which
only the first or none connects.

Hope this helps, would be great to see addressed since I switched back to
Adium. I’m afraid my laptop will melt :wink:

Cheers

Am 26.08.2014 um 19:45 schrieb Danny van Heumen <danny@dannyvanheumen.nl>:

Hi Emil (and others),

I don't have time atm for a full response, but I can only think of
things I'm doing in the AWT event thread as the result of a user action
in the UI. (Most operations are async by nature, though, so I only need
to initiate something.) The only thing I noticed is that Jitsi does some
pretty heavy user look-ups. With a few chat rooms with 100s of users
that can be quite a number. I have noticed a delay from that, though.

Obviously there is a thread running for the IRC connection, but that
occurs in the background, otherwise I wouldn't be able to return. I am
not surprised though that you find something ... it was far too quiet :stuck_out_tongue:

Can you do the obvious checks like running with IRC protocol disabled,
with and without existing connection, with or without open chat room? At
least that way we know when it does or doesn't happen. And you should
also get a pretty good impression of what is going on by enabling FINE
logging. It's quite verbose but FINE doesn't output actual IRC messages
yet, so it should be managable.

I'll look into this soon.

Danny

On 08/26/2014 06:06 PM, Emil Ivov wrote:

Hey Danny,

So first of all, a huge THANK YOU, for all the hard work on this one!
You've done an awesome job and I am finally reliably back on our IRC
channel thanks to you! :slight_smile:

The plugin works really great!

I only have one suspicion for a potential issue. Since I installed it,
my Jitsi instance GUI freezes on occasion. It unlocks after about 10''
to 20'' but it then happens again after a while. I wasn't really sure
this had anything to do with IRC, until Pawel mentioned today that he
saw the same issue after starting to use it.

This is still not proof and it probably needs more serious
investigation but can you think of something that you might be doing
in the AWT Event Dispatch thread?

Emil

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

--
https://jitsi.org

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

It was an OS issue that applied to many other applications and an OS
restart seems to have resolved it.

--sent from my mobile

···

On 04 Sep 2014 2:46 PM, "Foss" <foss@openmailbox.org> wrote:

and that discovered freeze was fixed already?

Am 04.09.2014 um 10:27 schrieb Emil Ivov <emcho@jitsi.org>:

FWIW, the reason for the freeze (discovered by Damencho) was a
misbehaving OS beep that would occur when backspacing into emptiness
for example.

In other words: totally unrelated to IRC.

On Wed, Aug 27, 2014 at 10:23 PM, Danny van Heumen > <danny@dannyvanheumen.nl> wrote:

... and the plot thickens!

Anyways, I've checked but everywhere where I actually wait for an async
operation (just to be sure), its in a different thread then the AWT
event thread, and even different threads alltogether. So no easy fix there.

I'm wondering ... would it have anything to do with the garbage
collector? ... that would be a good reason why everything stops for a
bit ... though 10 seconds is quite long for the GC in this case, I think.

On what OS and version of the JRE are you running when it happens?

Kind regards,
Danny

On 08/27/2014 03:10 PM, Emil Ivov wrote:

Nope. Had the freeze even without IRC enabled.

On Wed, Aug 27, 2014 at 8:12 AM, Emil Ivov <emcho@jitsi.org> wrote:

Yes, I was going to. Just haven't had the time to look into this yet.

On Wed, Aug 27, 2014 at 8:01 AM, Ingo Bauersachs <ingo@jitsi.org> wrote:

It might help Danny if you could send a Java thread dump when the issue
occurs. The one you sent earlier only includes the native code from OSX and
unfortunately isn't useful for debugging.

Freundliche Grüsse,
Ingo Bauersachs

-- sent from my mobile

Le 27.08.2014 à 03:45, "Foss" <foss@openmailbox.org> a écrit :

Hi all,

this is the CPU spikes I reported earlier (maybe?). 22nd aug „Jitsi CPU
spikes“.

I played some more with enabling and disableing IRC. It only occurs when
IRC
account is active. Takes a few minutes but then CPU usage rises and fans
start spinning like crazy.

I have two low traffic IRC channels with few users on auto-join of which
only the first or none connects.

Hope this helps, would be great to see addressed since I switched back to
Adium. I’m afraid my laptop will melt :wink:

Cheers

Am 26.08.2014 um 19:45 schrieb Danny van Heumen <danny@dannyvanheumen.nl>:

Hi Emil (and others),

I don't have time atm for a full response, but I can only think of
things I'm doing in the AWT event thread as the result of a user action
in the UI. (Most operations are async by nature, though, so I only need
to initiate something.) The only thing I noticed is that Jitsi does some
pretty heavy user look-ups. With a few chat rooms with 100s of users
that can be quite a number. I have noticed a delay from that, though.

Obviously there is a thread running for the IRC connection, but that
occurs in the background, otherwise I wouldn't be able to return. I am
not surprised though that you find something ... it was far too quiet :stuck_out_tongue:

Can you do the obvious checks like running with IRC protocol disabled,
with and without existing connection, with or without open chat room? At
least that way we know when it does or doesn't happen. And you should
also get a pretty good impression of what is going on by enabling FINE
logging. It's quite verbose but FINE doesn't output actual IRC messages
yet, so it should be managable.

I'll look into this soon.

Danny

On 08/26/2014 06:06 PM, Emil Ivov wrote:

Hey Danny,

So first of all, a huge THANK YOU, for all the hard work on this one!
You've done an awesome job and I am finally reliably back on our IRC
channel thanks to you! :slight_smile:

The plugin works really great!

I only have one suspicion for a potential issue. Since I installed it,
my Jitsi instance GUI freezes on occasion. It unlocks after about 10''
to 20'' but it then happens again after a while. I wasn't really sure
this had anything to do with IRC, until Pawel mentioned today that he
saw the same issue after starting to use it.

This is still not proof and it probably needs more serious
investigation but can you think of something that you might be doing
in the AWT Event Dispatch thread?

Emil

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

--
https://jitsi.org

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

--
https://jitsi.org

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

I don't think that this has any relation to the CPU consumption issue that
you are reporting though.

--sent from my mobile

···

On 04 Sep 2014 3:47 PM, "Emil Ivov" <emcho@jitsi.org> wrote:

It was an OS issue that applied to many other applications and an OS
restart seems to have resolved it.

--sent from my mobile
On 04 Sep 2014 2:46 PM, "Foss" <foss@openmailbox.org> wrote:

and that discovered freeze was fixed already?

Am 04.09.2014 um 10:27 schrieb Emil Ivov <emcho@jitsi.org>:

FWIW, the reason for the freeze (discovered by Damencho) was a
misbehaving OS beep that would occur when backspacing into emptiness
for example.

In other words: totally unrelated to IRC.

On Wed, Aug 27, 2014 at 10:23 PM, Danny van Heumen >> <danny@dannyvanheumen.nl> wrote:

... and the plot thickens!

Anyways, I've checked but everywhere where I actually wait for an async
operation (just to be sure), its in a different thread then the AWT
event thread, and even different threads alltogether. So no easy fix
there.

I'm wondering ... would it have anything to do with the garbage
collector? ... that would be a good reason why everything stops for a
bit ... though 10 seconds is quite long for the GC in this case, I think.

On what OS and version of the JRE are you running when it happens?

Kind regards,
Danny

On 08/27/2014 03:10 PM, Emil Ivov wrote:

Nope. Had the freeze even without IRC enabled.

On Wed, Aug 27, 2014 at 8:12 AM, Emil Ivov <emcho@jitsi.org> wrote:

Yes, I was going to. Just haven't had the time to look into this yet.

On Wed, Aug 27, 2014 at 8:01 AM, Ingo Bauersachs <ingo@jitsi.org> wrote:

It might help Danny if you could send a Java thread dump when the issue
occurs. The one you sent earlier only includes the native code from OSX
and
unfortunately isn't useful for debugging.

Freundliche Grüsse,
Ingo Bauersachs

-- sent from my mobile

Le 27.08.2014 à 03:45, "Foss" <foss@openmailbox.org> a écrit :

Hi all,

this is the CPU spikes I reported earlier (maybe?). 22nd aug „Jitsi CPU
spikes“.

I played some more with enabling and disableing IRC. It only occurs when
IRC
account is active. Takes a few minutes but then CPU usage rises and fans
start spinning like crazy.

I have two low traffic IRC channels with few users on auto-join of which
only the first or none connects.

Hope this helps, would be great to see addressed since I switched back to
Adium. I’m afraid my laptop will melt :wink:

Cheers

Am 26.08.2014 um 19:45 schrieb Danny van Heumen <danny@dannyvanheumen.nl >> >:

Hi Emil (and others),

I don't have time atm for a full response, but I can only think of
things I'm doing in the AWT event thread as the result of a user action
in the UI. (Most operations are async by nature, though, so I only need
to initiate something.) The only thing I noticed is that Jitsi does some
pretty heavy user look-ups. With a few chat rooms with 100s of users
that can be quite a number. I have noticed a delay from that, though.

Obviously there is a thread running for the IRC connection, but that
occurs in the background, otherwise I wouldn't be able to return. I am
not surprised though that you find something ... it was far too quiet :stuck_out_tongue:

Can you do the obvious checks like running with IRC protocol disabled,
with and without existing connection, with or without open chat room? At
least that way we know when it does or doesn't happen. And you should
also get a pretty good impression of what is going on by enabling FINE
logging. It's quite verbose but FINE doesn't output actual IRC messages
yet, so it should be managable.

I'll look into this soon.

Danny

On 08/26/2014 06:06 PM, Emil Ivov wrote:

Hey Danny,

So first of all, a huge THANK YOU, for all the hard work on this one!
You've done an awesome job and I am finally reliably back on our IRC
channel thanks to you! :slight_smile:

The plugin works really great!

I only have one suspicion for a potential issue. Since I installed it,
my Jitsi instance GUI freezes on occasion. It unlocks after about 10''
to 20'' but it then happens again after a while. I wasn't really sure
this had anything to do with IRC, until Pawel mentioned today that he
saw the same issue after starting to use it.

This is still not proof and it probably needs more serious
investigation but can you think of something that you might be doing
in the AWT Event Dispatch thread?

Emil

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

--
https://jitsi.org

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

--
https://jitsi.org

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev