title: How to release DataSnap memory once connections are closed?
body: <p>I have a TCP/IP DataSnap server running as a service [Session based LifeCycle] that continuously chews up memory and never comes back to the starting memory size even when there are no connections to it.</p>
  
  <p>In order to eliminate My code as the culprit, I have modeled up a basic TCP/IP DataSnap server running as VCL [Session based LifeCycle] that serves a Server Method class [TDSServerModule] which only contains basic mathematical functions using native data types [no objects to create or free].</p>
  
  <p>When I connect to said DataSnap server with a very thin client I get the same results. 
  The Memory Usage continuously grows with each connection and sporadically grows when executing the server side methods from the client. Once the connections are closed the DataSnap Server never reduces its Memory Usage [even when left running without connections for 8 hrs]. </p>
  
  <p>Any suggestions as to why this occurs or more importantly how to curtail it?</p>
  
  <p>I am using RAD Studio XE2 Update 4 HotFix 1.</p>