Investigating 0xc0000005 Access Violations and Memory Crashes in RDS Sessions on Windows Server

Rossia Luca 0 Reputation points

We've got a few people runing GeoMedia Professional over an RDS farm, but whenever they start crunching heavy datasets and the memory usage spikes, the whole app just tanks. The Event Viewer keeps spitting out that 0xc0000005 access violation code, usualy pointing at ntdll.dll or sometimes KERNELBASE.dll, but its totally random. My users are geting pretty fed up because they lose all there unsaved work every time the session crashes during a big render. Does anyone know if this is a known memory leak with how RDS handles high-demand apps, or is there a specific patch for the Windows NT layer that I'm missing?

0 comments No comments

Sign in to comment

2 answers

  1. VPHAN 36,170 Reputation points Independent Advisor

    Hi Rossia Luca,

    How is your issue going? Has it been resolved yet? If it has, please consider accepting the answer as it helps others sharing the same problem benefit too. Thank you :)

    VP

    0 comments No comments

    Sign in to comment
  2. VPHAN 36,170 Reputation points Independent Advisor

    Hi Rossia Luca,

    The recurring 0xc0000005 with GeoMedia Professional in your RDS farm is a symptom of resource exhaustion within the session's isolated memory workspace. To stabilize the environment, you must increase the Desktop Heap size on your RDS hosts. This is controlled via the Windows Registry. Navigate to: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\SubSystems

    Open the Windows string value and locate the SharedSection parameter. It usually looks like SharedSection=1024,20480,768. The second value (20480) defines the heap size for interactive sessions in kilobytes. I recommend increasing this value to 40960 or higher to give your GIS application the necessary headroom for complex data processing. Also, you should check the SessionViewSize to ensure there is enough address space for the graphical mapping data itself. This is located at: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Memory Management

    If this DWORD value is missing or low, create or set it to 64 (Decimal, representing Megabytes). You will need to reboot the RDS hosts for the changes to take effect.

    Hope this answer brought you some useful information. If it did, please hit “accept answer”. Should you have any questions, feel free to leave a comment.

    VP

    0 comments No comments

    Sign in to comment
Sign in to answer

Your answer