Java and IB's TWS

Discussion in 'Retail Brokers' started by cscott, Apr 24, 2007.

  1. cscott


    I updated to the newest Sun Java 1.6.0_01 the other day. Since that time, I've been getting out of memory errors with TWS. Has anyone else had this happen OR are there anything I need to change in Suns Java Control panel?

    Also, I haven't noticed any difference in speed from the old 1.5 java.

    BTW, I have a gig of memory, and haven't had problems with anything else.
  2. I didn't have issues but noted IB's non-support of 1.6. When I redirected TWS to use 1.5 it was faster to load and one issue I hadn't picked up on disappeared.

    Adding java 1.6 doesnt require you to use it for TWS. I have 1.6 and 1.5 11 and just point the TWS command line at the javaw.exe in the 1.5 11 directory

    ignore the double slashes

    C:\\Program Files\\Java\\jre1.5.0_11\\bin\\javaw.exe -cp jts.jar;pluginsupport.jar;jcommon-1.0.0.jar;jfreechart-1.0.0.jar;jhall.jar;other.jar;rss.jar -Dsun.java2d.noddraw=true -Xmx256M jclient/LoginFrame C:\\Jts
  3. ids

    ids Interactive Brokers

    Change of -Xmx256M to something like -Xmx512M might help as a quick fix.