Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Ever since we updated from SP1 RU4 to SP2 RU4 we have noticed that our BES devices will simply stop receiving email. This has occurred at least 5 times in the past few weeks.

Today, while speaking with RIM support (a T3 contract), they said that they have reports of sporadic connectivity issues from some BES users. This has been occurring with Exchange 2010 SP2 RU4, and have no public information to give us.

We were able to temporarily get things running by doing any or all of the following

  • Restart the BES server
  • Recreate the MAPI profile (deleted the keys in the registry)
  • Restart the CAS servers
  • Wait it out (2 hours)

What other options should I take to resolve this issue?

share|improve this question

It's possible that the BES is connecting to the CASArray with only one name, and the agent creation algorithm is in the default "Advanced" mode. In Exchange 2003 there would be one agent per server, and if an Agent were to become hung, then that would cause an outage for all users on that server. Conversely, in Exchange 2010, all users share the same agent and if there is a problem with that agent, then all users are affected.

Although this doesn't solve the root problem, this is how to mitigate risk, at the cost of CPU and memory load on the BES server by creating more agents


Configuring the BlackBerry Enterprise Server to use the simple user distribution algorithm enumerates the total amount of BlackBerry users and divides them evenly across Messaging Agents. When set to 1, the simple algorithm is used; when set to 2, the complex algorithm is used (complex is the out-of-box default of the BlackBerry Enterprise Server). The redistribution of users can help provide relief, as the BlackBerry Enterprise Server load can be subdivided more effectively for a Microsoft Exchange 2010 environment. In previous versions of Microsoft Exchange, the user's ServerDN was a factor in determining where the user would be placed; since the architectural changes in Microsoft Exchange 2010, all users are seen as having the same ServerDN, as the CAS does an increased amount of the Microsoft Exchange business logic.

Note: This should not be implemented in a mixed Exchange environment.

Enabling Simple Messaging Agent Distribution Algorithm

The distribution algorithm can be changed with the DWORD registry key AgentOptimizeAlgorithm located in
    32 bit - HKEY_LOCAL_MACHINE\SOFTWARE\Research In Motion\BlackBerry Enterprise Server\Dispatcher.
    64bit - HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Research In Motion\BlackBerry Enterprise Server\Dispatcher.
        DWORD value is 1 - the simple algorithm is used.
        DWORD value is 2 - the complex algorithm is used.
        The Default value is 2.
        If the registry key does not exist, create it. 
No advanced logic is used in this process.
BlackBerry smartphone users are simply distributed evenly across the number of agents specified in the two DWORD registry keys NumAgents, and NumAgentsFullServer located in:
    32bit - HKEY_LOCAL_MACHINE\SOFTWARE\Research In Motion\BlackBerry Enterprise Server\Agents.
    64bit - HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Research In Motion\BlackBerry Enterprise Server\Agents.

    Default value is 5, do not increase it higher than 10. Make both registry keys values match.

  Restart the BlackBerry Controller Service, and the BlackBerry Dispatcher Service. Note: If the above registry keys do not exist, they need to be created.

Note: A maximum of 2 Messaging Agents will be created if the configuration database is on Microsoft SQL Database Engine (MSDE). Move the configuration database to SQL 2005 Express using KB03112.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.