{"id":1669,"date":"2020-04-21T07:05:19","date_gmt":"2020-04-21T07:05:19","guid":{"rendered":"http:\/\/neu.koetzingit.de\/ab-sofort-mehr-performance-fuer-server-2016-und-2019\/"},"modified":"2026-06-02T13:32:49","modified_gmt":"2026-06-02T13:32:49","slug":"ab-sofort-mehr-performance-fuer-server-2016-und-2019","status":"publish","type":"post","link":"https:\/\/www.koetzingit.de\/en\/ab-sofort-mehr-performance-fuer-server-2016-und-2019\/","title":{"rendered":"Better performance for Server 2016 and 2019, starting now?"},"content":{"rendered":"<p><span class=\"dropcapmiddle\">W<\/span>While I was recently searching the internet for information on Server 2016 performance issues, I came across an interesting article from Microsoft explaining a new optimization in Windows. This new feature has actually been around since Windows 7, but it has been further developed and was only enabled by default in the Windows 10 client version. Unlike the client version, this feature was disabled in the 2016 and 2019 server editions, but it can be enabled via a simple PowerShell command. Unfortunately, I couldn\u2019t find any information about this feature in the context of multi-user systems (Remote Desktop Services). So I wondered whether this feature might also enable an immediate improvement in performance or user experience on session hosts. Some of my clients are currently testing this, and I\u2019m waiting for their results. Would you like to do the same?<\/p>\n<p><!--more--><\/p>\n<p><span style=\"background-color: #ffffff;\">\u201eWhat function is that?\" you ask. The function is called \"<strong>Memory Compression<\/strong>\u201cand is enabled by default in Windows 10. Open Windows Task Manager, go to Performance, then Memory, and you\u2019ll find:<strong>\u00a0in use (compressed)<\/strong>.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1667\" src=\"http:\/\/www.koetzingit.de\/wp-content\/uploads\/2020\/04\/blog-mc-01.png\" alt=\"Blog Mc 01\" width=\"397\" height=\"353\"  title=\"Better performance for Server 2016 and 2019, starting now?\" srcset=\"https:\/\/www.koetzingit.de\/wp-content\/uploads\/2020\/04\/blog-mc-01.png 397w, https:\/\/www.koetzingit.de\/wp-content\/uploads\/2020\/04\/blog-mc-01-300x267.png 300w\" sizes=\"auto, (max-width: 397px) 100vw, 397px\" \/><\/p>\n<div><span style=\"background-color: #ffffff;\">Which memory is compressed, and how can this improve performance on a session host? Compressed memory is the memory area that would have been written to the page file but is instead stored compressed in memory; that is, instead of being stored uncompressed on the hard drive, it is stored compressed in memory. According to Microsoft, Windows can compress and decompress very efficiently and quickly, making it significantly faster than writing to or reading from the hard drive. The Windows operating system begins paging immediately, regardless of how much RAM is available. When Windows experiences \u201estress\u201c with RAM (\u201estress\u201c is a term used by Microsoft, and I believe I once read that this occurs at approximately 70% RAM usage), Windows writes significantly more to the swap file. This results in the CPU also being under greater load. In this case as well <strong>helps compress the RAM<\/strong>, since compressed data is now stored on the hard drive<\/span> are written in compressed form rather than uncompressed. This results in fewer and shorter read and write operations.<\/div>\n<div>\u00a0<span style=\"background-color: #ffffff;\"><br \/><\/span><\/div>\n<div>File servers, print servers, mail servers, etc., will not benefit from RAM compression because their RAM usage patterns are not highly dynamic; this is why the feature has been disabled. As we all know, multi-user systems (Remote Desktop Services) behave more like multiple workstations, with many applications and greater dynamics when it comes to memory usage. Therefore, session hosts utilize paging significantly more, and thus also benefit from using memory compression.<\/div>\n<div>\u00a0<\/div>\n<div><span style=\"background-color: #ffffff;\">Microsoft states the following: <br \/><\/span><\/div>\n<div><span style=\"background-color: #ffffff;\"><em>\u201cThe new memory compression concepts should help make Windows 10 appear <strong>snappier and more responsive<\/strong> than earlier versions, even on existing hardware.\u201d<\/em> <\/span><\/div>\n<div>\u00a0<\/div>\n<div><span style=\"background-color: #ffffff;\">I am convinced that the same applies to multi-user systems and should be enabled by default when the RDS role is installed!<br \/><\/span><\/div>\n<div>\u00a0<\/div>\n<div><span style=\"background-color: #ffffff;\">Memory compression can be enabled using the following PowerShell command: <strong>Enable-MMagent -MemoryCompression<\/strong> This means that a restart is not necessary<b>, <\/b>not even with active users on the system. Depending on RAM usage, the compressed portion in Task Manager should increase.<br \/><\/span><\/div>\n<p>\u00a0<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1668\" src=\"http:\/\/www.koetzingit.de\/wp-content\/uploads\/2020\/04\/blog-mc-02.png\" alt=\"Blog Mc 02\" width=\"396\" height=\"355\"  title=\"Better performance for Server 2016 and 2019, starting now?\" srcset=\"https:\/\/www.koetzingit.de\/wp-content\/uploads\/2020\/04\/blog-mc-02.png 396w, https:\/\/www.koetzingit.de\/wp-content\/uploads\/2020\/04\/blog-mc-02-300x269.png 300w\" sizes=\"auto, (max-width: 396px) 100vw, 396px\" \/><\/p>\n<p><span style=\"background-color: #ffffff;\">Since the previous screenshot, I've enabled compression and opened a few applications. There is still plenty of RAM available (17.6 GB), but Windows has started paging, this time <strong>compressed into RAM!<\/strong><\/span><span style=\"background-color: #ffffff;\"><br \/><\/span><\/p>\n<p><span style=\"background-color: #ffffff;\">What do you think? Let me know if you've tried Memory Compression! I'm curious to hear about your experiences with Memory Compression!<br \/><\/span><\/p>\n<p>\u00a0<\/p>\n<h3><span class=\"label label-success\">References\u00a0<\/span><\/h3>\n<ul>\n<li><span style=\"background-color: #ffffff;\">How Windows 10 Manages Memory<br \/><a href=\"https:\/\/www.onmsft.com\/news\/microsoft-educates-insiders-windows-10-handles-memory\">https:\/\/www.onmsft.com\/news\/microsoft-educates-insiders-windows-10-handles-memory <\/a><\/span><\/li>\n<li><span style=\"background-color: #ffffff;\">Video on Memory Compression in Windows<br \/><a href=\"https:\/\/channel9.msdn.com\/Blogs\/Seth-Juarez\/Memory-Compression-in-Windows-10-RTM\">https:\/\/channel9.msdn.com\/Blogs\/Seth-Juarez\/Memory-Compression-in-Windows-10-RTM <\/a><\/span><\/li>\n<li><span style=\"background-color: #ffffff;\">Microsoft: Enable-MMagent -MemoryCompression <br \/><a href=\"https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/mmagent\/enable-mmagent?view=win10-ps\">https:\/\/docs.microsoft.com\/en-us\/powershell\/module\/mmagent\/enable-mmagent?view=win10-ps<\/a><\/span><span style=\"background-color: #ffffff;\"> \u00a0<br \/><\/span>\u00a0<\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>W\u00e4hrend ich k\u00fcrzlich nach Informationen zu Server 2016 Performance Problemen im Internet suchte, stie\u00df ich auf einen interessanten Artikel von [&hellip;]<\/p>\n","protected":false},"author":1755,"featured_media":1666,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[11],"tags":[27,269,265,268,270,225,196,159],"class_list":["post-1669","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-understanding-de","tag-citrix","tag-compression","tag-instant","tag-memory","tag-paging","tag-performance","tag-server","tag-windows"],"uagb_featured_image_src":{"full":["https:\/\/www.koetzingit.de\/wp-content\/uploads\/2020\/04\/blog-memory-compression.png",360,360,false],"thumbnail":["https:\/\/www.koetzingit.de\/wp-content\/uploads\/2020\/04\/blog-memory-compression-150x150.png",150,150,true],"medium":["https:\/\/www.koetzingit.de\/wp-content\/uploads\/2020\/04\/blog-memory-compression-300x300.png",300,300,true],"medium_large":["https:\/\/www.koetzingit.de\/wp-content\/uploads\/2020\/04\/blog-memory-compression.png",360,360,false],"large":["https:\/\/www.koetzingit.de\/wp-content\/uploads\/2020\/04\/blog-memory-compression.png",360,360,false],"1536x1536":["https:\/\/www.koetzingit.de\/wp-content\/uploads\/2020\/04\/blog-memory-compression.png",360,360,false],"2048x2048":["https:\/\/www.koetzingit.de\/wp-content\/uploads\/2020\/04\/blog-memory-compression.png",360,360,false],"trp-custom-language-flag":["https:\/\/www.koetzingit.de\/wp-content\/uploads\/2020\/04\/blog-memory-compression.png",12,12,false]},"uagb_author_info":{"display_name":"Thomas K\u00f6tzing","author_link":"https:\/\/www.koetzingit.de\/en\/author\/thomas-koetzing\/"},"uagb_comment_info":0,"uagb_excerpt":"W\u00e4hrend ich k\u00fcrzlich nach Informationen zu Server 2016 Performance Problemen im Internet suchte, stie\u00df ich auf einen interessanten Artikel von [&hellip;]","_links":{"self":[{"href":"https:\/\/www.koetzingit.de\/en\/wp-json\/wp\/v2\/posts\/1669","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.koetzingit.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.koetzingit.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.koetzingit.de\/en\/wp-json\/wp\/v2\/users\/1755"}],"replies":[{"embeddable":true,"href":"https:\/\/www.koetzingit.de\/en\/wp-json\/wp\/v2\/comments?post=1669"}],"version-history":[{"count":1,"href":"https:\/\/www.koetzingit.de\/en\/wp-json\/wp\/v2\/posts\/1669\/revisions"}],"predecessor-version":[{"id":1870,"href":"https:\/\/www.koetzingit.de\/en\/wp-json\/wp\/v2\/posts\/1669\/revisions\/1870"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.koetzingit.de\/en\/wp-json\/wp\/v2\/media\/1666"}],"wp:attachment":[{"href":"https:\/\/www.koetzingit.de\/en\/wp-json\/wp\/v2\/media?parent=1669"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.koetzingit.de\/en\/wp-json\/wp\/v2\/categories?post=1669"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.koetzingit.de\/en\/wp-json\/wp\/v2\/tags?post=1669"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}