Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
TWS VM Options
#
# This file contains VM parameters for Trader Workstation.
# Each parameter should be defined in a separate line and the
# last line must be followed by a line feed. No leading or
# trailing whitespaces are allowed in the same line, where a
# parameter is defined.
#
# Lines starting with a '#' character are treated as comments
# and ignored. Additionally, if a line contains a
# '### keep on update' string, all parameters defined below will
# be preserved on update.
#
# GC settings
-XX:+UseG1GC
-XX:MaxGCPauseMillis=200
-XX:ParallelGCThreads=20
-XX:ConcGCThreads=5
-XX:InitiatingHeapOccupancyPercent=70
# preferred channel for updates ("stable", "latest", "beta")
-Dchannel=latest
-Dinstaller.uuid=c376f40c-e315-4dad-b771-904224ae9c39
-DvmOptionsPath=C:\Jts\tws.vmoptions
-Dsun.awt.nopixfmt=true
-Dsun.java2d.noddraw=true
-Dswing.boldMetal=false
-Dsun.locale.formatasdefault=true
### keep on update
### Upgraded Java heap size
-Xmx3072m
-Xms1536m
-XX:PermSize=256m
-XX:MaxPermSize=512m
@mobeigi
Copy link
Author

mobeigi commented Nov 8, 2020

Steps (Windows)

  1. Go to TWS location (e.g. C:\Jts)
  2. Backup old tws.options file
  3. Replace with tws.options file above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment