1. Here are multiple thread stacktraces
2. I noticed that mouse "double click" event is randomly trigger spinning
a) That "double click" in "planner" app is used to "rename task", but I
noticed that is also copies name of the task to clipboard, which in turn
is transmitted to guacamole client via VNC
b) Some "garbage" is produced during clipboard copying (see screenshot
attached) - I speculate maybe some "illegal byte" in clipboard causes
that spinning
- Daniel
--------------------------------------
top - 16:54:15 up 106 days, 5:38, 0 users, load average: 2.18, 1.38, 0.74
Tasks: 5 total, 1 running, 4 sleeping, 0 stopped, 0 zombie
%Cpu(s): 51.1 us, 0.2 sy, 0.0 ni, 48.8 id, 0.0 wa, 0.0 hi, 0.0 si,
0.0 st
KiB Mem : 32714444 total, 2997368 free, 4786908 used, 24930168 buff/cache
KiB Swap: 1048572 total, 993004 free, 55568 used. 27235696 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
40 root 20 0 495484 46172 9504 S 100.0 0.1 4:07.23 guacd
87 root 20 0 495368 38116 9332 S 100.0 0.1 3:57.82 guacd
1 root 20 0 385692 15956 5476 S 0.0 0.0 0:05.98 guacd
47 root 20 0 11880 3148 2752 S 0.0 0.0 0:00.00 bash
234 root 20 0 52004 3968 3388 R 0.0 0.0 0:00.00 top
---------------------------------------
[root@9fe1481852b5 /]# gdb -batch -ex 'thread apply all backtrace' -p 40
[New LWP 46]
[New LWP 45]
[New LWP 44]
[New LWP 43]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
0x00007f7c9df6e8ed in recvmsg () from /lib64/libpthread.so.0
Thread 5 (Thread 0x7f7c96a77700 (LWP 43)):
#0 0x00007f7c9df68ef7 in pthread_join () from /lib64/libpthread.so.0
#1 0x0000000000404c1d in guacd_user_start
(parser=parser@entry=0x7f7c88004b50, user=user@entry=0x7f7c88002c40) at
user.c:162
#2 0x0000000000404fb5 in guacd_handle_user
(user=user@entry=0x7f7c88002c40) at user.c:301
#3 0x00000000004046c1 in guacd_user_thread (data=0x7f7c9001d790) at
proc.c:95
#4 0x00007f7c9df67dc5 in start_thread () from /lib64/libpthread.so.0
#5 0x00007f7c9cf3676d in clone () from /lib64/libc.so.6
Thread 4 (Thread 0x7f7c96276700 (LWP 44)):
#0 guac_iconv (reader=0x7f7c9586c270 <GUAC_READ_UTF8>,
input=input@entry=0x7f7c962356a0, in_remaining=2, in_remaining@entry=11,
writer=0x7f7c9586c300 <GUAC_WRITE_UTF8>,
output=output@entry=0x7f7c962356a8, out_remaining=1,
out_remaining@entry=262144) at iconv.c:79
#1 0x00007f7c95869e28 in guac_vnc_cut_text (client=<optimized out>,
text=<optimized out>, textlen=11) at clipboard.c:135
#2 0x00007f7c95654837 in HandleRFBServerMessage () from
/lib64/libvncclient.so.0
#3 0x00007f7c9586b1a0 in guac_vnc_client_thread (data=0x7f7c9000abc0)
at vnc.c:350
#4 0x00007f7c9df67dc5 in start_thread () from /lib64/libpthread.so.0
#5 0x00007f7c9cf3676d in clone () from /lib64/libc.so.6
Thread 3 (Thread 0x7f7c8ca8e700 (LWP 45)):
#0 0x00007f7c9cf2be2d in poll () from /lib64/libc.so.6
#1 0x00007f7c9e92ed96 in guac_socket_fd_select_handler
(socket=<optimized out>, usec_timeout=<optimized out>) at socket-fd.c:350
#2 0x00007f7c9e92b342 in guac_parser_read
(parser=parser@entry=0x7f7c88004b50, socket=socket@entry=0x7f7c88000b60,
usec_timeout=usec_timeout@entry=15000000) at parser.c:222
#3 0x0000000000404a47 in guacd_user_input_thread (data=<optimized out>)
at user.c:106
#4 0x00007f7c9df67dc5 in start_thread () from /lib64/libpthread.so.0
#5 0x00007f7c9cf3676d in clone () from /lib64/libc.so.6
Thread 2 (Thread 0x7f7c87fff700 (LWP 46)):
#0 0x00007f7c9df6ebdd in nanosleep () from /lib64/libpthread.so.0
#1 0x00007f7c9e92ea0e in __guac_socket_keep_alive_thread
(data=0x7f7c9000ad10) at socket.c:69
#2 0x00007f7c9df67dc5 in start_thread () from /lib64/libpthread.so.0
#3 0x00007f7c9cf3676d in clone () from /lib64/libc.so.6
Thread 1 (Thread 0x7f7c97278700 (LWP 40)):
#0 0x00007f7c9df6e8ed in recvmsg () from /lib64/libpthread.so.0
#1 0x0000000000404354 in guacd_recv_fd (sock=<optimized out>) at
move-fd.c:86
#2 0x0000000000404597 in guacd_exec_proc (protocol=0x7f7c90002b63
"vnc", proc=0x7f7c9000aba0) at proc.c:180
#3 guacd_create_proc (protocol=protocol@entry=0x7f7c90002b63 "vnc") at
proc.c:253
#4 0x0000000000403cc0 in guacd_route_connection (socket=0x7f7c9000ac90,
map=0x7f7c9f28d010) at connection.c:299
#5 guacd_connection_thread (data=0x153f450) at connection.c:394
#6 0x00007f7c9df67dc5 in start_thread () from /lib64/libpthread.so.0
#7 0x00007f7c9cf3676d in clone () from /lib64/libc.so.6
[root@9fe1481852b5 /]#
---------------------------------
[root@9fe1481852b5 /]# gdb -batch -ex 'thread apply all backtrace' -p 87
[New LWP 93]
[New LWP 92]
[New LWP 91]
[New LWP 90]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
0x00007f7c9df6e8ed in recvmsg () from /lib64/libpthread.so.0
Thread 5 (Thread 0x7f7c96276700 (LWP 90)):
#0 0x00007f7c9df68ef7 in pthread_join () from /lib64/libpthread.so.0
#1 0x0000000000404c1d in guacd_user_start
(parser=parser@entry=0x7f7c9000bd20, user=user@entry=0x7f7c90004980) at
user.c:162
#2 0x0000000000404fb5 in guacd_handle_user
(user=user@entry=0x7f7c90004980) at user.c:301
#3 0x00000000004046c1 in guacd_user_thread (data=0x7f7c8801da30) at
proc.c:95
#4 0x00007f7c9df67dc5 in start_thread () from /lib64/libpthread.so.0
#5 0x00007f7c9cf3676d in clone () from /lib64/libc.so.6
Thread 4 (Thread 0x7f7c96a77700 (LWP 91)):
#0 guac_iconv (reader=0x7f7c94069270 <GUAC_READ_UTF8>,
input=input@entry=0x7f7c96a366a0, in_remaining=2, in_remaining@entry=11,
writer=0x7f7c94069300 <GUAC_WRITE_UTF8>,
output=output@entry=0x7f7c96a366a8, out_remaining=1,
out_remaining@entry=262144) at iconv.c:79
#1 0x00007f7c94066e28 in guac_vnc_cut_text (client=<optimized out>,
text=<optimized out>, textlen=11) at clipboard.c:135
#2 0x00007f7c87df2837 in HandleRFBServerMessage () from
/lib64/libvncclient.so.0
#3 0x00007f7c940681a0 in guac_vnc_client_thread (data=0x7f7c8800ae60)
at vnc.c:350
#4 0x00007f7c9df67dc5 in start_thread () from /lib64/libpthread.so.0
#5 0x00007f7c9cf3676d in clone () from /lib64/libc.so.6
Thread 3 (Thread 0x7f7c97278700 (LWP 92)):
#0 0x00007f7c9cf2be2d in poll () from /lib64/libc.so.6
#1 0x00007f7c9e92ed96 in guac_socket_fd_select_handler
(socket=<optimized out>, usec_timeout=<optimized out>) at socket-fd.c:350
#2 0x00007f7c9e92b342 in guac_parser_read
(parser=parser@entry=0x7f7c9000bd20, socket=socket@entry=0x7f7c9000bca0,
usec_timeout=usec_timeout@entry=15000000) at parser.c:222
#3 0x0000000000404a47 in guacd_user_input_thread (data=<optimized out>)
at user.c:106
#4 0x00007f7c9df67dc5 in start_thread () from /lib64/libpthread.so.0
#5 0x00007f7c9cf3676d in clone () from /lib64/libc.so.6
Thread 2 (Thread 0x7f7c95274700 (LWP 93)):
#0 0x00007f7c9df6ebdd in nanosleep () from /lib64/libpthread.so.0
#1 0x00007f7c9e92ea0e in __guac_socket_keep_alive_thread
(data=0x7f7c8800afb0) at socket.c:69
#2 0x00007f7c9df67dc5 in start_thread () from /lib64/libpthread.so.0
#3 0x00007f7c9cf3676d in clone () from /lib64/libc.so.6
Thread 1 (Thread 0x7f7c95a75700 (LWP 87)):
#0 0x00007f7c9df6e8ed in recvmsg () from /lib64/libpthread.so.0
#1 0x0000000000404354 in guacd_recv_fd (sock=<optimized out>) at
move-fd.c:86
#2 0x0000000000404597 in guacd_exec_proc (protocol=0x7f7c88002e03
"vnc", proc=0x7f7c8800ae40) at proc.c:180
#3 guacd_create_proc (protocol=protocol@entry=0x7f7c88002e03 "vnc") at
proc.c:253
#4 0x0000000000403cc0 in guacd_route_connection (socket=0x7f7c8800af30,
map=0x7f7c9f28d010) at connection.c:299
#5 guacd_connection_thread (data=0x153d6a0) at connection.c:394
#6 0x00007f7c9df67dc5 in start_thread () from /lib64/libpthread.so.0
#7 0x00007f7c9cf3676d in clone () from /lib64/libc.so.6
[root@9fe1481852b5 /]#
Daniel Nguyen
W dniu 23.07.2017 o 17:31, Mike Jumper [via Apache Guacamole
(incubating) - Users] pisze:
> On Sat, Jul 22, 2017 at 3:28 AM, danielos <[hidden email]
> </user/SendEmail.jtp?type=node&node=1375&i=0>> wrote:
>
> > I managed to install gdb in guacd container:
> >
> > -----------------------------
> >
> > [root@480dcc5d723f /]# top
> > top - 10:44:32 up 104 days, 23:28, 0 users, load average: 1.66,
> 1.95, 1.65
> > Tasks: 4 total, 1 running, 3 sleeping, 0 stopped, 0 zombie
> > %Cpu(s): 4.7 us, 0.7 sy, 0.0 ni, 93.8 id, 0.8 wa, 0.0 hi, 0.0
> si, 0.0
> > st
> > KiB Mem : 32714444 total, 4350124 free, 4299328 used, 24064992
> buff/cache
> > KiB Swap: 1048572 total, 993004 free, 55568 used. 27710752
> avail Mem
> >
> > PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+
> COMMAND
> > 32 root 20 0 495456 45820 9360 S 100.0 0.1 132:28.00
> guacd
> > 1 root 20 0 295568 15732 5332 S 0.0 0.0 0:01.08 guacd
> > 39 root 20 0 11880 2996 2584 S 0.0 0.0 0:00.00 bash
> > 178 root 20 0 52004 3888 3308 R 0.0 0.0 0:00.00 top
> >
> > -----------------------------
> >
> >
> > [root@480dcc5d723f /]# gdb -batch -ex bt -p 32
> > [New LWP 38]
> > [New LWP 36]
> > [Thread debugging using libthread_db enabled]
> > Using host libthread_db library "/lib64/libthread_db.so.1".
> > 0x00007f328ab93ef7 in pthread_join () from /lib64/libpthread.so.0
> > #0 0x00007f328ab93ef7 in pthread_join () from /lib64/libpthread.so.0
> > #1 0x00007f32820aa859 in guac_vnc_client_free_handler
> > (client=0x7f327c00abc0) at client.c:71
> > #2 0x00007f328b554b72 in guac_client_free (client=0x7f327c00abc0) at
> > client.c:193
> > #3 0x0000000000404310 in guacd_exec_proc (protocol=0x7f327c002b63
> "vnc",
> > proc=0x7f327c00aba0) at proc.c:191
> > #4 guacd_create_proc (protocol=protocol@entry=0x7f327c002b63 "vnc") at
> > proc.c:253
> > #5 0x0000000000403a80 in guacd_route_connection
> (socket=0x7f327c00ad10,
> > map=0x7f328bacd010) at connection.c:299
> > #6 guacd_connection_thread (data=0x251e450) at connection.c:394
> > #7 0x00007f328ab92dc5 in start_thread () from /lib64/libpthread.so.0
> > #8 0x00007f3289b6173d in clone () from /lib64/libc.so.6
> > [root@480dcc5d723f /]#
> >
>
> guacd and its per-connection processes use multiple threads, so this
> backtrace does not necessarily represent where things are spinning.
> Rather than just running "bt", please try "thread apply all bt". That
> will run bt for all running threads within the process.
>
> - Mike
>
>
> ------------------------------------------------------------------------
> If you reply to this email, your message will be added to the
> discussion below:
> http://apache-guacamole-incubating-users.2363388.n4.nabble.com/guacd-0-9-12-incubating-is-using-100-cpu-tp1365p1375.html
>
>
> To unsubscribe from guacd 0.9.12-incubating is using 100% cpu, click
> here
> <http://apache-guacamole-incubating-users.2363388.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=1365&code=Z3VhY2Ftb2xlQGRhbi10ZWNoLnBsfDEzNjV8OTM3MTEyMDU2>.
> NAML
> <http://apache-guacamole-incubating-users.2363388.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
>
20170723_1910_screenshot_guacamole.png (187K)
<http://apache-guacamole-incubating-users.2363388.n4.nabble.com/attachment/1377/0/20170723_1910_screenshot_guacamole.png>
--
View this message in context:
http://apache-guacamole-incubating-users.2363388.n4.nabble.com/guacd-0-9-12-incubating-is-using-100-cpu-tp1365p1377.html
Sent from the Apache Guacamole (incubating) - Users mailing list archive at
Nabble.com.