• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1849
  • Last Modified:

how to troubleshoot blackberry delay and synchronisation issue and be sure server is working fine

I have BES express Version: Microsoft exchange 2010 running on separate 2008 windows servers.

ISSUE: delay in send/receive emails on the phone and email status does not match the outlook.

ERRORS that may or may not be related to the delay issue:
1. I checked the server configuration and pushed the MAPI profile but it get me error MAPI is not installed correctly

2. In administration services- high availablty Tab I got error when I pushed the Synchronise button

3. I found out there is high memory load on the exchange server - 90% USED on a 12GB ram server

4. Events i have now on the besexpress are:

Stopping BlackBerry Mailbox Agent 1 for Server besexpress
Waiting for external UDP log messages on port 4085
MailboxManager::SubsystemInitialize - MAPILogonEx() (0x80040111)
'besexpress' agent 1: will not restart - reached the maximum of 10 restarts per 24 hours, next restart on Sat Sep 24 15:34:32 2011

5. SQL and router tests are successful
6. BlackBerry Messaging Agent besexpress Agent 1 failed to start. Error code 5302

7. Waiting for external UDP log messages on port 4085

1. I found MAPI warnings

`` RIM_HrResolveProxysFromDN - ResolveProxyAddressesMAPI failed from -2146762751``

so I followed a guide on blackberry forums and reinstalled MAPI.cdo then reboot the server.

I need to know how could I be sure my server is running well and what other steps I should take to fix the delay issue.
1 Solution
Shabarinath RamadasanInfrastructure ArchitectCommented:
I would suggest to consider the below points.
1) Emails getting delayed on BB can be due to different issues. We need to check the exchange server performance, BES performance, Network performance and finally, the data service performance. Usually, I will look for Avg RPC Latency on the exchange mailbox server. Ideal value should be less than 25ms and anything above 50ms can cause issues.

2) From my exp, if majority users are complaining on delay, need to concentrate more on BES server side. Also, try to see if the affected users are on the same thread. Try moving few users to manual thread and see if that helps. If the issue still exist, try a dedicated thread for one such user and send a test mail. Check the mailbox agent corresponding to that thread and see whats happening.

If you are not familiar with BES logs, try to read the detailed posts on port3101.net

3) Hung thread is not a good sign. Some major issue exists and BES was not able to fix it by restarting the agent. After 10 retry, if the thread continue to hung, it wont restart for next 24hrs. You can try rebooting the whole server.

4) Create a test account on BES and write a script to trigger emails every 5 mins with the sending time on subject line. You will get better idea rather than collecting the details from an end user.

Good luck
Shabarinath RamadasanInfrastructure ArchitectCommented:
Small correction on 2)
Check the mailbox agent LOG corresponding to that thread and see whats happening.
cogagniAuthor Commented:
1. this issue started last monday and the server has been rebooted several times

2. where can i  look for Avg RPC Latency on the exchange mailbox server?

3. where do i go to move users to manual threds?

4. server has been rebooted - issues persist

5. re: test script - write shell script on bes to send email - using an exchange user's credentials to send email to itself?
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

Shabarinath RamadasanInfrastructure ArchitectCommented:
To check RPC avg latency, On an E2K3 box, I use perfmon -> Add counter MSExchangeIS -> Select Avg RPC Latency.

To see the current tread assigned for a user, search for the user on BAS console, select the component information and on the bottom, you can see the tread. By default, thread assignment will be automatic. Click on the edit option at the bottom and chose manual thread, where you can key in the thread value - anything above 200.

The script which I use is a small power-shell one. No need to provide any credential, but the server from where you run this script should have the privilege to relay emails to exchange.

cogagniAuthor Commented:
can you post the script?
Shabarinath RamadasanInfrastructure ArchitectCommented:
Here we go..
You need to key in the ip address of the email server and make sure mail server is configured to allow email relay from the machine you are running this script.

Modify the from email address and to email address. The current loop will trigger 1000 mails with a 5 sec delay and the subject line will contain the time email got triggered. You will get a confirmation back from the device and can have an approximate idea on the delivery time/delay.

Good luck
for ($i=0;$i -le "1000";$i++)
$dt = (Get-date)
$emailbody = $i |convertto-html |out-string
$SMTPserver = "Email Server IP"
$from = "youraddress@yourdomain.com"
$to = "BlackberryUser@yourdomain.com"
$subject = "<confirm> Test Mail $dt"
$mailer = new-object Net.Mail.SMTPclient($SMTPserver)
$msg = new-object Net.Mail.MailMessage($from, $to, $subject, $emailbody)
$msg.isBodyhtml = $true
sleep 5

Open in new window

Exchange 2010 and BlackBerry Enterprise Server Coexistence

I would recommend the above URL...which is having couple of OS related hotfix which should go for the CAS,MBX and BES server too.
cogagniAuthor Commented:
we reset the permissions on the BES services and rebooted the machine again
cogagniAuthor Commented:
the other solutions didn't work
What do you mean by resetting the permissions on the BES services?
Which permission requires resetting and how ?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now