Installation and Upgrade Guide > TDV Docker Container > Runtime TDV Container Configuration - Common Examples > Change TDV Server Memory Setting
 
Change TDV Server Memory Setting
To change the TDV Docker container's memory setting you will need to reconfigure TDV and create a new TDV Container.
Example (change server memory from 8192 Mbytes (8 GB) to 16,384 MBytes (16 GB):
1) Use TDV Studio (same version of TDV as your TDV Docker container) to connect to your TDV Docker container. Login to the TDV Studio using the TDV admin user “admin” and your TDV admin password along with the appropriate TDV base port.
2) Go to Administration > Configuration
3) Search for “Total Available Memory ("
4) In the search results, select “Total Available Memory (On Server Restart): 4096 Mbytes".
5) Change your base port value to “8192”. Apply your changes.
Note: “Total Available Memory (Current)” shows your current TDV Server memory configuration.
"Total Available Memory (On Server Restart)” shows your future TDV Server memory configuration. This only takes affect when you restart the TDV Server though.
6) Click on the OK button to close the pop-up window.
7) Logout of the TDV Studio client.
8) Stop the TDV Docker container where your TDV Server is running
docker stop <tdv-container-name>
9) Now start a new TDV Docker container with the new server memory value and reuse the TDV Docker volume used for the container from step #8.
\docker run -itd -p 10300:10300 -p 10301:10301 -p 10302:10302 -p 10303:10303 -p 10304:10304 -p 10305:10305 -p 10306:10306 -p 10400:10400 -p 10401:10401 -p 10402:10402 -p 10403:10403 -env [TDV_ADMIN_PASSWORD=<PASSWORD>] [TDV_ADMIN_PASSWORD_FILE=<FILE with tdv admin password>] -v <volume>:<location> type=volume,source=tdv-vol,target=/opt/TIBCO --cpus=2.000 -m=16g --name tdv_new myrepo/tdv:8.5 Dockerfiletdv.server
 
Note: The above example expects a valid tdv-vol, default docker network bridge works on your Docker host, and that you already have a valid TDV Docker image that exists.
It is also expected that you reuse your TDV Container volume, otherwise your server memory and any other TDV metadata changes will be lost. Basically, if you specify a new TDV volume, then the TDV Container will create a brand new, default TDV Container based on your TDV Docker image defaults (i.e. default "admin" user password, base port and server settings).