On Fri, Feb 28, 2025 at 3:31 PM Elijah <eli.ols...@gmail.com> wrote:
> Hello Guacamole Community, > > > I’ve been experiencing intermittent user timeouts while using Apache > Guacamole 1.5.5, and I’m trying to determine whether the issue is related > to network conditions, or client-side system memory management. I wanted to > reach out to see if anyone else has encountered similar behavior or has > insights into potential causes. > > > Issue Description: > > • Users are randomly timed out while actively using Guacamole. > > • This occurs more frequently when many Guacamole connections are open > and when I have a lot of system processes running on my local machine. > > • I suspect this could be due to browser behavior, specifically the > deallocation of memory from inactive tabs, or system/network resource > limitations. > > > I suspect you are correct about this - we've seen issues with recent versions of browsers that try to recover unused resources from tabs that are not active. Also, I see this happen periodically on my system when I'm close to limitations on system resources. > Troubleshooting Considerations: > > 1. Browser Tab Inactivity: > > • Could browser memory management or resource deallocation be impacting > Guacamole sessions? > Yes. > • Are there known browser-related session handling issues that might > cause timeouts if a tab is deprioritized? > I don't know about "known" - most of the issues are anecdotal and tend to come and go with various browser updates. > 2. Server/System Performance: > > • When the number of open Guacamole sessions increases, could system > resource exhaustion (e.g., CPU, RAM) contribute to unexpected disconnects? > Yes. > • Are there recommended settings for optimizing performance in > environments with a high number of active sessions? > IIRC, for guacd, the general guidance was 1 core and 4GB of RAM per 25 concurrent/active connections. Tomcat/Guacamole Client shouldn't need much in the way of resources - it simply facilitates the connection between the browser and guacd, and handles administrative stuff. > 3. Network Conditions: > > • Is there any mechanism within Guacamole that aggressively times out > sessions based on network instability? > I would not say that there is any mechanism that _agressively_ times out sessions. Yes, Guacamole does check for network stability and will shut down a connection if it is lost, but I would say it is rather forgiving, not aggressive. > • Would tweaking keep-alive settings or heartbeat intervals help mitigate > this? > > > I doubt it - I suspect the issues have more to do with the browser and/or client trying to manage the resources on the client, and I think this has more to do with whether the client tabs/windows are active or not. -Nick >