TWS is SO slow now

Discussion in 'Interactive Brokers' started by rc5781, Sep 27, 2022.

  1. rc5781

    rc5781

    About 4 months or so ago after a "weekend maintenance" TWS has been incredibly slow when starting up, saving settings, and recovering settings. Before I had 2.048 gigs allocated to TWS in it's settings and it was fast relative to now. I have now had to allocate 12.8 gigs of RAM just to have it not "not respond" and freeze. And it's way slower than before.

    What gives? Is anyone else facing these issues. I've been using TWS standalone 981.3i and 981.3o.
     
  2. ffs1001

    ffs1001

    It must be your hardware, connection, antivirus, vpn etc that is causing this problem. It works just fine for me, and always has done. Been using TWS for 12 years now and never had an issue.
     
  3. ZBZB

    ZBZB

    What spec pc do you have?
     
  4. Same for me, runs great. intel Core I5 ThinkPad w/8GB ram and SSD.
     
  5. rc5781

    rc5781

    Dell XPS 8940
    Intel(R) Core(TM) i5-10400 CPU @ 2.90GHz
    RAM 16.0 GB (15.7 GB usable)
    SSD C drive

    I've been using TWS standalone for 10+ years too, and have never had problems with starting up, saving settings, and recovering settings. (Saving settings locally, by the way.) The increase in RAM allocation makes it's usable, but I wish it would work like before...

    Also, it works fine once it's open and running and the RAM usage drops drastically. The lag occurs during start up and shut down.
     
  6. Bad_Badness

    Bad_Badness

    May not be the only solution, but certainly one to try:
    Check your XML config file. Compare it to the one that was running faster.

    The XML config file does not have any garbage collection, it seems. So, it just gets fatter, slower and more inefficient. I was able to reduce my boot time A LOT, by starting fresh, rebuilding the charts and symbols etc. Then I save this "clean" version and use it as a starting point to "rebuild" the TWS config every 6 months or so, dependign how much removed and added stuff ocrrured.

    If you can read XLM, you will see old and unused stuff, which is still being parsed and processed.
     
    Eikfe likes this.
  7. ET180

    ET180

    I have noticed that too. Only time I notice speed issues with it is during start-up. Takes a while to load up. I only use it about once or twice a week though.
     
  8. You don't need 12 gb, you don't even need 2gb to run it.
    TWS is a java application, look for a java profiler like this one:

    https://www.ej-technologies.com/products/jprofiler/overview.html
    The keyword is JProfiler, there are many more availble if you don't like this one. That will tell you where is the bottleneck.

    upload_2022-9-28_6-26-46.png
     
  9. ZBZB

    ZBZB

    Try a new installation on a new user account on your pc.
     
  10. rc5781

    rc5781

    FIXED the problem thanks to your post. I was having to "save settings" and "recover settings" quite often due to a bug in TWS, where it removes "manual vertical scale" settings after a chart refresh. Have to refresh charts frequently because volume bars do not plot correctly at times and refresh fixes the volume bars.

    After reinstalling TWS and setting everything up from scratch again, it's now at least 10 times faster and I've allocated only 2.5 gigs of RAM.

    I now have a full copy of my Jts folder right after setting everything up so I can "clean" things in the future. THANKS!
     
    #10     Sep 28, 2022