-
-
Notifications
You must be signed in to change notification settings - Fork 968
Description
Hello Team,
I have an issue where an application executable utilizes all 39 logical processors when I run it directly from the Command Prompt. However, when I execute the same command using C# code (shown below), the application only uses 13 logical processors only.
Additionally, I created a mediator console application that only runs the same command. When I run this console app from my local system to a Google Cloud VM, it also utilizes only 13 logical processors.
Could you please help me understand why this behavior is occurring? Is there any patch, configuration, or workaround available to ensure the application uses all 39 logical processors when triggered via code?
C# Code Used:
public async Task Execute(string command)
{
//command = "C:\ChassisSimTechnologies\ChassisSim_v3_45\ChassisSim_v3_45_elite.exe C:\ChassisSimTechnologies\csim_batch_file.txt";
using (var client = new SshClient(Global.Host, Global.Username, Global.Password))
{
await client.ConnectAsync(default);
var cmd = client.RunCommand(command);
client.Disconnect();
return cmd.Result;
}
}
Thanks in advance for your assistance.