Tuesday, January 13, 2015

Exchange 2013 Messsage Tracking Tool - There are 2 best tools

1. As usual the PowerShell, using GridView
2. CodePlex - ExchangeReports -https://www.codeplex.com/site/search?query=exchangereports&ac=2

Exchange 2013 lacks the traditional Exchange Management Console that you are probably familiar with, and with it went the message tracking console that many administrators relied on to troubleshoot mail flow problems.  Sure there is now the Delivery Reports tool in the web Exchange Control Panel, but it’s just not quite the same, especially since it limits you to searching within a specific mailbox.
ECP Mail Flow
Luckily there is something similar to the Message Tracking Center in Powershell.
1
Get-MessageTrackingLog -ResultSize Unlimited -Start "January 1 2014" | Out-GridView
Run this from a Powershell prompt and this will launch a Powershell Gridview where you can quickly and easily filter through the data, including the stuff not shown in the Web ECP.
PS Message Tracking

Exchange 2013 SP1 Sizing like RAM, HDD etc***

Reference:
http://blogs.technet.com/b/exchange/archive/2014/04/03/ask-the-perf-guy-sizing-guidance-updates-for-exchange-2013-sp1.aspx

With the release of Exchange 2013 SP1, it’s time to revise our sizing guidance given feedback from customers, observations from our own large-scale deployments, and requirements associated with new and changed components in SP1. In addition to this brief article, I’ve also updated the original blog post with updated formulas and tables to reflect the changes described here.
There are two specific changes that need to be highlighted:

CAS Processor Sizing

With the introduction of the MAPI/HTTP protocol, our existing sizing guidance for CAS processor utilization needs to be changed. Usage of MAPI/HTTP has a fairly dramatic increase in rate of requests handled by the CAS role, when compared to requests generated by clients using RPC/HTTP. As each connection has a measurable amount of processing overhead, this results in an overall increase to our CPU requirements on CAS, moving from a 1:4 ratio of CAS to Mailbox processor cores, to a 3:8 ratio (a 50% increase). It’s important to call out that MAPI/HTTP is disabled by default, as we expect that customers will want to carefully evaluate the deployment requirements and impact of MAPI/HTTP before enabling it. Because it is disabled by default, existing Exchange 2013 deployments do not need to immediately add more CPU resources at the CAS layer. Instead, we expect that additional capacity will be considered as part of the evaluation and deployment process for MAPI/HTTP. We do anticipate that over time it will become the standard method of connectivity for Outlook clients so it’s important to include these requirements in our sizing guidance as early as possible.
It’s also critical to deploy .NET Framework 4.5.1 if you intend to use MAPI/HTTP, as it contains an important fix that impacts the performance and scalability of MAPI/HTTP at the CAS layer.
Ross has updated the Exchange Server 2013 Server Role Requirements Calculator to take into account this guidance change in version 6.3.

Pagefile Sizing

As memory requirements have increased for Exchange, our historical guidance for sizing the pagefile has become more and more challenging from a deployment perspective. Previously, our guidance was to set a fixed pagefile size equal to the size of RAM + 10MB. On servers that are commonly deployed with 128GB of RAM or more, requiring a pagefile sized to RAM+10MB results in a large amount of space consumed (typically on the system drive) with questionable benefit. In our large-scale internal deployments, we have been running with a cap on pagefile size for quite some time, and as a result we are comfortable recommending that all of our on-premises customers follow that same guidance. Moving forward with Exchange 2013, we recommend a fixed pagefile of the smaller of RAM size + 10MB or 32,778 MB (which is 32GB + 10MB). Hopefully this will free up some needed space on your servers.
As we continue to learn more from customer feedback and monitoring of our own deployments, we will keep updating this guidance via posts to the blog.
Jeff Mealiffe
Principal Program Manager Lead
Exchange Customer Experience

Exchange 2013 back pressure event 15004 issue (Mail Stuck in Outbox or Drafts – Have to restart Transport Service to resume mail flow)

Reference:
http://danblee.com/exchange-2013-mail-stuck-in-outbox-or-drafts-have-to-restart-transport-service-to-resume-mail-flow/

Nice Article BANBLEE!!!

Exchange 2013 Mail Stuck in Outbox or Drafts – Have to restart Transport Service to resume mail flow

Oh man, this was a tough one. A real doozy. First, here are my environment details where this was happening.
  • MS Exchange 2013 CU6 (Issue was happening as far back as CU4)
  • One Exchange Server managing all Exchange services and responsibilities
  • Less than 50 mailboxes

Overview

Basically, every few days we’d get a call in the middle of the day from customers telling us that mail was being stuck in the Outbox in Outlook and mail would be put into the drafts folder in OWA. At first, we found that rebooting the server fixed the issue. Later, we learned that restarting the Topology Service (The service that will restart all of your Exchange Services) fixed the issue. Finally, we narrowed it down the restarting just the Transport Service. Once the Transport Service restarted, all mail would push from the Outboxes and mail would work again for a few days.
There were no logged errors on the Transport Service. The Transport Service was always On, never stopped.

Resolution

Adjust or disable Resource Pressure Monitor.

What is the Resource Pressure Monitor?

In perfect form, the resource pressure monitor collects information about your environment and will delay mail (called “tarpitting”) until things get back to normal. If the severity of resource usage gets too high, it will actually STOP mail flow of all kinds. This is what was happening to us. If your system is unhappy with the amount of resources available, you’ll have to restart the Transport Service to reduce the monitor’s severity level.
It wasn’t until we found this warning that we noticed that this was going on:
For my Exchange environment, Bucket Versions were getting to too high a level. So look at all the things that it stopped:
The resource pressure increased from Medium to High.
The following resources are under pressure:
Version buckets = 332 [High] [Normal=80 Medium=120 High=200]
The following components are disabled due to back pressure:
Inbound mail submission from Hub Transport servers
Inbound mail submission from the Internet
Mail submission from Pickup directory
Mail submission from Replay directory
Mail submission from Mailbox server
Mail delivery to remote domains
Content aggregation
Mail resubmission from the Message Resubmission component.
Mail resubmission from the Shadow Redundancy Component
The following resources are in normal state:
Queue database and disk space (“C:\Program Files\Microsoft\Exchange Server\V15\TransportRoles\data\Queue\mail.que”) = 71% [Normal] [Normal=95% Medium=97% High=99%]
Queue database logging disk space (“C:\Program Files\Microsoft\Exchange Server\V15\TransportRoles\data\Queue\”) = 74% [Normal] [Normal=95% Medium=97% High=99%]
Private bytes = 3% [Normal] [Normal=71% Medium=73% High=75%]
Physical memory load = 61% [limit is 94% to start dehydrating messages.]
Submission Queue = 0 [Normal] [Normal=2000 Medium=4000 High=10000]
Temporary Storage disk space (“C:\Program Files\Microsoft\Exchange Server\V15\TransportRoles\data\Temp”) = 74% [Normal] [Normal=95% Medium=97% High=99%]

How to Disable the Back Pressure Resource Monitor

Luckily, there’s a handy config file that can be adjusted:
  1. Open the config file for the executable here: %ExchangeInstallPath%Bin\EdgeTransport.exe.config
  2. Find the entry called “EnableResourceMonitoring” and change the value to “false”
  3. Restart the Transport Service during your normal maintenance window.\
  4. Breathe
A small disclaimer here: You may want to actually look into why your Exchange environment thinks it’s having trouble with resources. An easier fix to all of this may be to give your machine more disk space or RAM, etc. Here’s a screenshot of the config file entry:

Some things that did NOT work

Here are some of the thing that I tried before finding this issue:
  1. Disabling Malware Detection on the connector
  2. Adding the servername and the domain controller name to the hosts file
  3. Updating to CU6 entirely
Please let me know if there are other things that you have tried that aren’t working. Also, please let me know if this fixes the issue for you. The error you get will tell you exactly what needs to be adjusted, so as I said earlier, you may want to fix the issue instead of just disabling this feature. My environment is small, so this service is not needed.
Microsoft’s Explanation:
Back pressure is a system resource monitoring feature of the Microsoft Exchange Transport service that exists on Microsoft Exchange 2013 Mailbox servers and Edge Transport servers.
Exchange can detect when vital resources, such as available hard drive space and memory, are under pressure, and take action in an attempt to prevent service unavailability. Back pressure prevents the system resources from being completely overwhelmed, and the Exchange server tries to process the existing messages before accepting any new messages. When utilization of the system resource returns to a normal level, the Exchange server gradually resumes normal operation and starts accepting new messages again.
In Exchange 2013, when the Transport service on a Mailbox server or an Edge Transport server is under resource pressure, incoming connections are accepted, but incoming messages over those connections are either accepted at a slower rate or are rejected. When an SMTP host attempts to connect to an Exchange server that’s under resurce pressure, the connection will succeed. However, when the host issues the MAIL FROM command to submit a message, depending on the resource that’s under pressure, the Transport service either delays the acknowledgement of the MAIL FROM command or rejects the connection.
For my issue, the Bucket Version was building up:
A list of changes that are made to the message queue database is kept in memory until those changes can be committed to a transaction log. Then the list is committed to the message queue database itself. These outstanding message queue database transactions that are kept in memory are known as version buckets. The number of version buckets may increase to unacceptably high levels because of an unexpectedly high volume of incoming messages, spam attacks, problems with the message queue database integrity, or hard drive performance.
When Exchange starts receiving messages, these messages are grouped together in batches and then prepared as version buckets. If an incoming message has a large attachment, it can be separated into multiple batches. These batches that are being processed are known as batch points. The number of outstanding batch points can exceed the set thresholds, especially when there’s an unexpectedly high volume of incoming messages with large attachments.
When version buckets or batch points are under pressure, the Exchange server will start throttling incoming connections by delaying acknowledgement to incoming messages. Exchange will reduce the rate of inbound message flow by tarpitting, which introduces a delay to the MAIL FROM commands. If the resource pressure condition continues, Exchange will gradually increase the tarpitting delay. After the resource utilization returns to normal, Exchange will gradually start reducing the acknowledgement delay and ease into normal operation. By default, Exchange will start delaying message acknowledgements 10 seconds when under resource pressure. If the resources continue to be under pressure, the delay is increased in 5-second increments up to 55 seconds.
Exchange keeps a history of version bucket and batch point resource utilization. If the resource utilization doesn’t go down to normal level for a specific number of polling intervals, known as the history depth, Exchange will stop the tarpitting delay and start rejecting incoming messages until the resource utilization goes back to normal. By default, the history depths for version buckets and batch points are in 10 and 300 polling intervals respectively.
Mail will STOP flowing when the severity reaches high. No matter what the issue, the mail flowing stopping seems to be the same:
  • Reject incoming messages from other Exchange servers
  • Reject message submissions from mailbox databases by the Mailbox Transport Submission service on Mailbox servers
  • Reject incoming messages from non-Exchange servers
  • Reject message submissions from Pickup and Replay directories
So please, please let me know if you have experienced the same trauma. Hopefully Exchange will address this or at least make it more apparent to end users in the future.
Cheers!
- See more at: http://danblee.com/exchange-2013-mail-stuck-in-outbox-or-drafts-have-to-restart-transport-service-to-resume-mail-flow/#sthash.rn1pfG7i.dpuf