3

我有一个 powershell 脚本,它从 github 提取存储库的最新提交,然后使用 msbuild(对于 .net)或 webpack(对于 angular)构建它。该脚本本身使用 Windows 任务调度程序运行,它定期检查部署队列,然后运行构建。一切正常,但它突然开始挂起。我们也开始在我们的服务器上遇到内存问题。当我在此构建期间开始查看 perfmon 时,我看到 git credential manager for windows 使用大量且不断增加的内存,使服务器的使用率超过 98%perfmon 截图 奇怪的是,如果我直接在服务器上运行脚本,那很好- 这只发生在我通过 Windows 任务计划程序 (powershell -commmand "script.ps1") 运行它时。

我在用:

git 版本 2.18.0.windows.1

Windows 1.17.0 的 git 凭据管理器

github windows客户端3.3.6.1

我在 windows server 2012 r2 上运行它

4

0 回答 0