Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

High number of sandbox worker processes

Posted on by 350

Hi, I just installed a Dynamics 365 On Premise with separated roles, update 2.1 running on top of Windows Server 2016 and SQL Server 2014. The setup process finished fine but I noticed some sluggish performance in the whole CRM after the setup. I checked the backend server, where the SQL and Async/Sandbox services are running and I found almost 60 instances of the sandbox worker process running in memory (no users were using the CRM at that time). I rebooted the server but those process are still there. I would appreciate any advise on why this is happening and if there is some know performance tweak that need to be implemented in order to reduce the number of those processes.

Xavier

*This post is locked for comments

  • ScottJung Profile Picture
    ScottJung 25 on at
    RE: High number of sandbox worker processes

    As far as the 17203 errors, what we are seeing is that WHILE trace is running, there are no errors in the event log.  WEIRD.  I even dialed it down to Error on some minute service with no trace... so small logs :).

    Yeah... not a solution, but investigatively interesting.

  • Tony Amaral Profile Picture
    Tony Amaral 190 on at
  • Xavier Villafuerte Profile Picture
    Xavier Villafuerte 350 on at
    RE: High number of sandbox worker processes

    Hi Woman, yes, I have exactly the same issue. I tested with Chrome, Safari and Firefox.

  • joman Profile Picture
    joman 617 on at
    RE: High number of sandbox worker processes

    Hi Xavier, thanks for the update!

    It seems that developers init SandboxHostMinWorkerProcesses variable with a value not equal 1.

    One more question to you:

    Try go to user form and then press F5 key. Do You have same issue:

    community.dynamics.com/.../237322

    ?

  • Tony Amaral Profile Picture
    Tony Amaral 190 on at
    RE: High number of sandbox worker processes

    Hi Xavier, thanks for the update. This seems to be working for us as well. So far no running away cpu and only one worker process.

  • Suggested answer
    Xavier Villafuerte Profile Picture
    Xavier Villafuerte 350 on at
    RE: High number of sandbox worker processes

    Hi to all, One of our customers opened a ticket with Microsoft regarding the problem with the high number of Sandbox Worker Process (SWP). Our customer received the recommendation to add the following key to the registry:

    HKLM\Software\Microsoft\MSCRM

    SandboxHostMinWorkerProcesses DWORD 1

    I implemented this change in our own testing infrastructure and after restarting the Sandbox service, now I can see only one SWP running at server. I t has been stable for a couple of hours so I think this solution has sense. I hope it helps any of you.

    Update: after rebooting the server I saw a better improvement on memory and cpu utilization than only restarting the sandbox service. Percentages are low. In addition, If you include the changes suggested previously by @joman regarding the null trace directory you will have a cleaner event viewer. For your reference:

    You need run "regedit" on a server. Then go
    "HKLM\Software\Microsoft\MSCRM"
    There should be keys:
    TraceDirectory String "Path_ToTraceLogs"
    TraceEnabled DWORD 1

    Happy Sunday!

  • Tony Amaral Profile Picture
    Tony Amaral 190 on at
    RE: High number of sandbox worker processes

    Hi Joman,

    I have the same problem when I refresh the user form. I guess that's another bug.

  • joman Profile Picture
    joman 617 on at
    RE: High number of sandbox worker processes

    One more question to people, having CRM 16 with two last updates:

    Does anybody meet this problem (with menu disappear): community.dynamics.com/.../237322

    ?

    Try go to user form and then press F5 key. Do You have same issue?

  • joman Profile Picture
    joman 617 on at
    RE: High number of sandbox worker processes

    Hi, Antonio Amaral!

    You described two problems:

    1. Many processes. This problem i didn't solved. As i understand, this is a bug. We wrote to Microsoft support, but there is no reply unfortunately (As i wrote, i have same problem community.dynamics.com/.../235861).

    2. Many event viewer logs with errors. This problem can be solved by editing registry (and, maybe, MSCRM_Config (throw a power shell for example) base).

  • Tony Amaral Profile Picture
    Tony Amaral 190 on at
    RE: High number of sandbox worker processes

    Hi Joman,

    As I explained above this problem has nothing to do with the tracing configuration or plugins running in the sandbox. If you disable tracing and disable all plugins running in the sandbox you still get the same problem. This seems to be a bug in the sandbox service.

    I still haven't got any reply to my post on the Microsoft partner forum.

    I'll update this forum as soon as I hear from them.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans