1 Answer
- Newest
- Most votes
- Most comments
1
Hello,
Thank you for using Amazon WorkSpaces.
I understand that large log files are being generated in the C:\ProgramData\Amazon\WSP folder, which are consuming your available space on your C:\ drive.
Please allow me to inform you that our internal teams are currently working on this issue, which is already known to us. Please see the temporary workaround below.
Q) Any risk in removing these files in this directory?
As these are merely the log files, there are no actual risks in removing them.
Q) Any way these can be cleaned up automatically without having to setup our own PS job or some such?
Be assured that our internal team is actively working on this, but I am unable to provide an ETA on when exactly this issue will be fixed. Please use the following workaround for the time being.
1. Clear the log folder to remove the existing log files
a. For Windows - run the following in cmd.
schtasks.exe /Create /RU SYSTEM /NP /RL HIGHEST /TN "WSPMetricsCleanup" /SC "hourly" /TR "powershell.exe -noprofile -ExecutionPolicy Unrestricted -Command 'Get-ChildItem C:/ProgramData/Amazon/WSP | where-object {$_.length -gt 10000000} | foreach { Remove-Item $_.fullname -Force -Recurse; }'"
b. This command will create a Windows Task to cleanup metrics that are bloating the WSP logs folder on an hourly basis.
2. Restart WSP host agent service on the WorkSpace
a. For Windows - run the following in either cmd or powershell.
powershell -command "Restart-Service dcvserver -Force"
3. Connect to your WorkSpaces using TCP transport protocol instead of QUIC/UDP connection.
a. On your Windows or Mac WorkSpaces client, go to *Settings*→ *Manage Connection Settings*; select *Use TCP transport protocol only*
b. No action is needed if you use WorkSpaces Web Access as your client
c. If you don’t or can’t perform this step (i.e. due to network restrictions), the issue may reoccur. In that case, please repeat steps 1 and 2.
Hope it helps!!
Thank you!
answered 10 months ago
Relevant content
- asked 3 months ago
- asked 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 5 months ago