Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Application Using Limited Cores When Run via C# Code

未关闭
#1,674 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
15/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
csharp
领域
networking

调研方向

未指定任何仓库文件或测试。首先,使用 SshClient.RunCommand,在相同的 Google Cloud VM 环境中,将直接命令与 C# SSH.NET 路径进行比较。完成的标准是确定 13 核限制来自 SSH.NET 还是远程进程环境,并在存在已确认的解决方法时记录下来。

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
C#
星标
4.4k
派生
993
平均合并
9 天 21 小时
30 天内合并 PR
1

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

sshnet/SSH.NET 的其他 Issue

查看 sshnet/SSH.NET 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。