none
SBS2011 problems connecting to PCs via RWW

    Question

  • Every now and then users find themselves in a situation where they can log on to the RWW website just fine but when they click their computer nothing happens. Only fix so far is to restart the server. In the event log the only thing I'm finding that may shed some light is the following 

    System.ServiceModel 4.0.0.0

    WebHost failed to process a request.
     Sender Information: System.ServiceModel.Activation.HostedHttpRequestAsyncResult/64109423
     Exception: System.ServiceModel.ServiceActivationException: The service '/Remote/BuiltIns/RDP/RemoteDesktopWebService.svc' cannot be activated due to an exception during compilation.  The exception message is: Memory gates checking failed because the free memory (1038626816 bytes) is less than 5% of total memory.  As a result, the service will not be available for incoming requests.  To resolve this, either reduce the load on the machine or adjust the value of minFreeMemoryPercentageToActivateService on the serviceHostingEnvironment config element.. ---> System.InsufficientMemoryException: Memory gates checking failed because the free memory (1038626816 bytes) is less than 5% of total memory.  As a result, the service will not be available for incoming requests.  To resolve this, either reduce the load on the machine or adjust the value of minFreeMemoryPercentageToActivateService on the serviceHostingEnvironment config element.
       at System.ServiceModel.Activation.ServiceMemoryGates.Check(Int32 minFreeMemoryPercentage, Boolean throwOnLowMemory, UInt64& availableMemoryBytes)
       at System.ServiceModel.ServiceHostingEnvironment.HostingManager.CheckMemoryCloseIdleServices(EventTraceActivity eventTraceActivity)
       at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity)
       --- End of inner exception stack trace ---
       at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)
       at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result)
     Process Name: w3wp
     Process ID: 14780

    Not even sure if the above is related but it's the only thing I found that mentions RemoteDesktop


    yaro

    Monday, July 01, 2013 3:09 PM

Answers

All replies

  • The exception message is: Memory gates checking failed because the free memory (1038626816 bytes) is less than 5% of total memory.

    Looks like the server is low on memory, check memory and report back


    Gareth | IT Support Norwich

    Monday, July 01, 2013 3:59 PM
  • SBS with 24GB of RAM low on memory?...

    yaro

    Monday, July 01, 2013 4:30 PM
  • Limit the store.exe and this will give you good amount of RAM which is not actually used by it.

    For Exchange 2010 (SBS 2011) calculation is:

    nx1024x1024/32  (where n is the value of RAM in GB that you would like to assign store.exe)

    Refer:

    http://eightwone.com/2011/04/06/limiting-exchange-2010-sp1-database-cache/

    On Exchange 2010 SP1, you need to set msExchESEparamCacheSizeMax and also msExchESEparamCacheSizeMin.

    If you set only msExchESEparamCacheSizeMax, Exchange will simply ignore it.


    Thanks & Regards, Naga Santosh EPS(SBS)

    Tuesday, July 02, 2013 2:06 AM
  • I'll give it a go. Wouldn't have suspected this having anything to do with Exchange but now makes sense. I'll leave it for a couple of days and report back. Thanks

    yaro

    Tuesday, July 02, 2013 9:03 AM
  • So far so good. Looks like limiting the store memory fixed the issue.

    yaro

    Thursday, July 11, 2013 1:23 PM
  • You have to modify the web.config under the folder

    C:\Program Files\Windows Small Business Server\Bin\WebApp\RemoteAccess

    Inside web.config find the line
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
    Change it to be
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" minFreeMemoryPercentageToActivateService="0" />

    Then to see applicate your change you need to do a IISRESET .

    Sunday, December 22, 2013 10:50 AM
  • Genius Sir and much more elegant than limiting the Exchange Store size which is supposed to manage itself.
    Wednesday, February 05, 2014 9:31 AM