Hi Kertész László,
The problem here that this portaudio implementation is flaky
What does get the 100% - portaudio, Java or PulseAudio?
Nothing of this happens on my machine. A top command shows high cpu load of Java (around 80%) and the usual suspects such as xorg. Pulseaudio is peaceful (around 5-10% usage). (please see top command of ordinary audio call below)
My test config is: SC calling the echo test on my Asterisk server and pointing the mike to the speakers. A working echo canceller prevents a feedback.
On my rather strong machine everything works fine - unless I switch to full screen wideo. This obviously blocks something and latency goes up and the echo canceller stops working (out of buffer)
This latency sticks - it doesn't go away when I deactivate video. Not even hanging up and redialing helps. Only waiting for a couple of minutes without calling, lets the echo canceller work again.
But even without video after a while the echo gets stronger and a screeching feedback starts. It happens when "doing something" with SC - such as chatting, switching windows etc.
I suspect the voice data get queued up somewhere because something prevents SC from fetching the audio packets in time. Obviously the respective buffer is big enough. This could also be caused by lack of memory and the Java garbage collection getting into the way.
How would I be able to track better, what's going on in my machine? Is there a way to look into the different Java threads (as with top for the processes) and record this?
See my processes:
top - 20:01:23 up 20:09, 3 users, load average: 1.41, 1.20, 0.96
Tasks: 178 total, 4 running, 172 sleeping, 2 stopped, 0 zombie
Cpu(s): 40.6%us, 19.0%sy, 0.0%ni, 40.1%id, 0.3%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 1016396k total, 952520k used, 63876k free, 29044k buffers
Swap: 3004148k total, 80096k used, 2924052k free, 447000k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
5187 beccon 20 0 751m 144m 35m S 61 14.6 7:20.56 java
1181 root 20 0 114m 29m 18m R 31 3.0 10:43.75 Xorg
2825 beccon 20 0 408m 114m 23m S 10 11.6 8:52.56 firefox-bin
3734 beccon 20 0 166m 64m 15m S 7 6.5 4:37.21 plugin-containe
1802 beccon 9 -11 160m 16m 15m R 6 1.6 1:10.38 pulseaudio
To unsubscribe, e-mail: email@example.com
For additional commands, e-mail: firstname.lastname@example.org