WA Desktop Client Error: An internal error occurred during: "Collecting garbage"
search cancel

WA Desktop Client Error: An internal error occurred during: "Collecting garbage"


Article ID: 262029


Updated On:


CA Workload Automation DE


While downloading a large number of applications from the Define perspective, half way through it quits and displays the following error in the Desktop Client: 

[Wed Mar 01 14:00:33 EST 2023] - An internal error occurred during: "Collecting garbage".



Release : 12.3



CA Workload Automation DSeries Desktop Client uses Eclipse. Eclipse is an IDE Framework. The Eclipse Framework makes it easy for adopters to use the features (buttons, lists, preferences, plugins, perspectives, etc). It is probably most widely known as being a Java development environment/IDE where you can write/debug programs in various coding languages (Java, C++, Angular, Python, etc.). 


Update Desktop Client Workspace Settings

Eclipse uses workspaces. The workspace is a directory on the disk where the Eclipse platform and all the installed plug-ins store preferences, configurations and temporary information. Desktop Client uses uses these workspaces. Worksapace configurations for Desktop Clients is maintained in the <DesktopClientInstallDir>/configurations/config.ini. The folder used for the workspace is set using the following property in this config.ini:


Your connections are saved in this workspace. Your preferences are saved in this workspace. The video in WA Desktop Client Tips (recommended) describes how you can "Export Desktop Client Preferences". 


Update Memory Settings: 

  • Close your instance of Desktop Client
  • Create a backup of: <DesktopClientInstallDir>\ESPdSeriesWADesktopClient.ini
  • Update the -Xms and -Xmx settings in the original file based on your needs. Perhaps the following:
    • -vmargs

      Note: the -Xmx value should not be set higher than 1548 (for 32-bit JVM programs). Depending on how much memory the system has (where you're running the Desktop Client), it may not respond well to being increased at all. Make sure you have enough memory to increase the amount of memory. Consider setting smaller values to accommodate the amount of memory available on your system. 
  • Open the Desktop Client. Notice the Heap Space Total and Max value settings.