GoogleCloudPlatform / iap-desktop

IAP Desktop is a Windows application that provides zero-trust Remote Desktop and SSH access to Linux and Windows VMs on Google Cloud.
Apache License 2.0
729 stars 166 forks source link

System.OutOfMemoryException #1392

Closed bt-zdunning closed 3 months ago

bt-zdunning commented 4 months ago

IAP Desktop Version 2.41.1463.0

I constantly receive System.OutOfMemoryException errors when using IAP desktop, even when I have plenty of memory available on my machine.

This happens when trying to RDP/SSH into an instance, or add a new project in Project Explorer. I've seen it where I'll be around 50% memory utilization and will still receive the error.

jpassing commented 4 months ago

Assuming you're currently using the 32-bit version of IAP Desktop, could you try if switching to the 64-bit (x64) version helps?

It's quite likely that you're not really running out of memory, but that the 2GB of virtual memory space that a 32-bit process has is becoming too fragmented, causing larger memory allocations to fail. This situation is not uncommon when using multiple RDP sessions in parallel (#1203) as the RDP control tends to consume a fair amount of virtual memory for each session.

jpassing commented 3 months ago

Did switching to 64-bit resolve the problem? If not, please reopen the issue.