Is xRDP slow on your linux vm ?

Here is an easy way to improve the TCP/IP performance:

Configure the TCP send buffer size

Edit the file /etc/xrdp/xrdp.ini and update tcp_send_buffer_bytes

tcp_send_buffer_bytes=4194304

Restart the service:

 systemctl restart xrdp

Configure the kernel network buffer size

Change the network buffer size to a larger value with using the next command:

sudo sysctl -w net.core.wmem_max=8388608

And create a new file /etc/sysctl.d/xrdp.conf with the following content:

net.core.wmem_max = 8388608

Restart the service:

 systemctl restart xrdp