On Tue, Feb 5, 2019 at 1:14 PM Amarjeet Singh <[email protected]> wrote:

> Hi Team,
>
> *Browser : Chrome*
> *Client : guacamole-client version 1.0.0 with no code changes.*
> *Server : guacamole-server version 1.0.0 with no code changes apart from
> debug logs.*
> *FreeRDP : Version 1.0.2 with support of disp channels.*
>
> I have added the support of disp channel in FreeRDP-1.0.2 to support
> display update on the fly in Guacamole.
>
> It is working fine but in *one of the scenario which is very rare though
> it works with delay of 6-7 seconds which is weird.*
>
> STEP 1 : When I copy large amount of data from the local application in the
> local clipboard which is 4-5  times the below :-
>
> *GUAC_RDP_CLIPBOARD_MAX_LENGTH 262144*
>
>
> STEP 2 : Then I clicked on the Guacamole Screen [  Browser where guacamole
> client is running ]
>
> STEP 3: Now, If I tried to change the screen size then there is a delay.
>

So, to clarify, in order to reproduce the delay *at all*, you have to copy
a significant amount of data from your client to the clipboard, activate
the web browser running Guacamole, and then resize the screen?


>
> I added the logs of the guacamole-server at rdp_disp.c
>
>
>
>  if (disp->disp != NULL)
>
>         {
>
>             guac_client_log(client, GUAC_LOG_INFO,
>
>                             "Sending display channels");
>
>             disp->disp->SendMonitorLayout(disp->disp, 1, monitors);
>
>         }
>
>
>
> There is a delay of 7 seconds in the above  logs.
>

What happens during the delay?  In particular I'd be interested to know:
- CPU utilization on the system running the browser, particularly any
browser-related processes.
- CPU utilization on the system running Guacamole Client (Tomcat, JBOSS,
etc.), particularly of the Java process.
- CPU utilization on the system running guacd, particularly for any guacd
processes
- CPU utilization on the destination system, where you are logged in via
RDP.
- Network activity/utilization between each of these components during the
delay - is there any network activity, how much, etc.


> STEP 4 : If I copy small amount of data again from the local application
> and click on the Browser [ guacamole-client ]. Everything is working fine.
>
> I am not coming to any conclusion as I am no expert in Angular JS.
> *Could it be possible that guacamole-client is taking time to process the
> clipborad data ?*
>

Well, clearly *something* is taking a while to process the data, though
it's not clear what.  You need to systematically determine where the delay
is occurring and what is responsible for causing it.  Adding the debug
messages is a good first step, but you should look at the whole of what
each of the systems is doing, as well, and eliminate each component.

-Nick

Reply via email to