[jitsi-dev] Jitsi Process "goes crazy" once in a while


#1

Hi,

Once in a while I observe the Jitsi process to "go crazy". CPU usage
goes up to 100% (slowing down the whole system). It seems, that the
process spins/busy-waits for something, but I have no idea what the
cause might be.

This behavior might even occur, if there are not open chats or calls.
The process run just fine, and suddenly, my system slows down, the fan
is speeding up (making a lot of noise) and I can observe the Jitsi
process to be at 100% user CPU usage blocking a whole core (it's
actually 25% CPU usage as I am on a 4 core machine).

Restarting Jisti usually (but not always) resolves the issue. Btw: I am
running Jitsi on Debian.

Any help would be highly appreciated!

-Matthias


#2

Hello Matthias,

I don't think we have published any instructions somewhere on how to
profile Jitsi or how to troubleshoot problems like this.

HPROF, a tool for heap and cpu profiling, can collect CPU usage
information by sampling threads. HPROF is a JVM native agent library
which is dynamically loaded through a command line option, at JVM
startup, and becomes part of the JVM process.

Could you please run Jitsi with the following java argument:

    -J-agentlib:hprof=cpu=samples

If you've installed Jitsi with APT, you can edit this file:

    /usr/bin/jitsi (it's just a bash script)

By default, heap profiling information (sites and dump) is written out
to java.hprof.txt (ascii).

When you have the java.hprof.txt from a high CPU usage session, could
you please post it here?

Thank you.

Best,
George

···

On Tue, Sep 22, 2015 at 11:16:53AM +0200, Matthias J. Sax wrote:

Hi,

Once in a while I observe the Jitsi process to "go crazy". CPU usage
goes up to 100% (slowing down the whole system). It seems, that the
process spins/busy-waits for something, but I have no idea what the
cause might be.

This behavior might even occur, if there are not open chats or calls.
The process run just fine, and suddenly, my system slows down, the fan
is speeding up (making a lot of noise) and I can observe the Jitsi
process to be at 100% user CPU usage blocking a whole core (it's
actually 25% CPU usage as I am on a 4 core machine).

Restarting Jisti usually (but not always) resolves the issue. Btw: I am
running Jitsi on Debian.

Any help would be highly appreciated!

-Matthias

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


#3

Hi Matthias,

Hi,

Once in a while I observe the Jitsi process to "go crazy". CPU usage
goes up to 100% (slowing down the whole system). It seems, that the
process spins/busy-waits for something, but I have no idea what the
cause might be.

This behavior might even occur, if there are not open chats or calls.
The process run just fine, and suddenly, my system slows down, the fan
is speeding up (making a lot of noise) and I can observe the Jitsi
process to be at 100% user CPU usage blocking a whole core (it's
actually 25% CPU usage as I am on a 4 core machine).

I know of one issue that I have not been able to reproduce which is
related to IRC. Specifically (IIRC) with existing IRC connections after
the system comes back from suspend/stand-by. What happens is that
instead of waiting for the next data from an IRC connection, it keeps
reading 0. Damencho sent me a screenshot some time ago where he
investigated it a bit.

Does any of this match your situation? I.e. do you have active IRC
connections? Did your computer/notebook wake up from suspend? (Maybe an
issue with network connectivity?)

From reading your description, I get the impression that it happens
spontaneously. Without you making any changes to the system's state. Is
that correct?

Also, can you describe us which protocols / types of accounts you are using?

Kind regards,
Danny

Restarting Jisti usually (but not always) resolves the issue. Btw: I am
running Jitsi on Debian.

If completely exiting Jitsi and starting it anew does not fix the issue,
then I'm quite certain that it is no issue I have encountered. So in
that case, any additional information is welcome :slight_smile:

Danny

···

On 22-09-15 11:16, Matthias J. Sax wrote:

Any help would be highly appreciated!

-Matthias

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