How to fix .NET Framework NGEN occupy too much CPU resource?

찬희 김 0 Reputation points
2023-11-30T03:18:03.97+00:00

이미지

In the Job Scheduler.The NET Framework NGEN operation was rejected by the operator or administrator.
The phrase is confirmed. In addition, when the above scheduler rotates, ngen.exe overruns the CPU.

11/24/2023 13:04:15.219 [16192]: Task scheduler requested starting 64-bit task

11/24/2023 13:04:15.219 [16192]: Task scheduler requested starting 32-bit task

11/24/2023 13:04:15.226 [16192]: Launching NGen Task, command line: "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\NGenTask.exe" /RuntimeWide /StopEvent:1016

11/24/2023 13:04:15.228 [16192]: Launching NGen Task, command line: "C:\Windows\Microsoft.NET\Framework\v4.0.30319\NGenTask.exe" /RuntimeWide /StopEvent:488

11/24/2023 13:04:15.334 [18512]: NGen Task starting, command line: "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\NGenTask.exe" /RuntimeWide /StopEvent:1016

11/24/2023 13:04:15.351 [18512]: Attempting to acquire task lock.

11/24/2023 13:04:32.800 [16192]: Task scheduler requested stopping 64-bit task

11/24/2023 13:04:32.802 [18512]: Task was interrupted by task scheduler

11/24/2023 13:04:34.833 [16192]: Task completed with status -1

11/24/2023 13:04:34.841 [16192]: Stopped 64-bit task

11/24/2023 13:04:34.845 [16192]: Task scheduler requested stopping 32-bit task

11/24/2023 13:04:36.859 [16192]: Task completed with status -1

11/24/2023 13:04:36.861 [16192]: Stopped 32-bit task

.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,130 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Jiachen Li-MSFT 27,001 Reputation points Microsoft Vendor
    2023-11-30T06:07:54.19+00:00

    Hi @찬희 김 ,

    Please check if the solution in the following link helps.

    Try stopping it first, and then try to disable it by following the steps in the solution.

    https://answers.microsoft.com/en-us/windows/forum/all/how-to-stopuninstall-ngenexe/615fb76e-3340-453b-958d-c0a1c420d806

    Best Regards.

    Jiachen Li


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Jiachen Li-MSFT 27,001 Reputation points Microsoft Vendor
    2023-12-06T07:53:09.95+00:00

    Hi @찬희 김 ,

    Please check these items below。

    Check Permissions: Ensure that the user account running the scheduled tasks has sufficient permissions to execute NGen operations.

    Review Policies and Restrictions: Check if there are any group policies or restrictions in place that might be preventing NGen tasks from running successfully.

    Best Regards.

    Jiachen Li


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments