IB offering gateway access (API without TWS)

My IB gateway takes around 20Mb of central memory and 80Mb of virtual memory with 12 securities data flowing.
I have Win2000 with java 1.5.0.22 and I use Xmx96 in the start line.
Even if hardware is cheap, Swing is a source of subtle errors, like the API page which doesn't open because open command is in another thread (I've seen it in a thread here at Elitetrader). Simple is better: the only things that never raise problems are the absent ones
 
Quote from pfranz:

My IB gateway takes around 20Mb of central memory and 80Mb of virtual memory with 12 securities data flowing.
I have Win2000 with java 1.5.0.22 and I use Xmx96 in the start line.
Even if hardware is cheap, Swing is a source of subtle errors, like the API page which doesn't open because open command is in another thread (I've seen it in a thread here at Elitetrader). Simple is better: the only things that never raise problems are the absent ones

Again, the Windows Task Manager doesn't work that well as that's just showing the resident memory. You need to use a good memory tool like 'pslist' or similar.

On 32-bit XP I get about 300MB of memory used with a 96MB memory pool (which is probably not enough if you leave it running for a long time, but who knows). I see IB default startup uses a 512MB memory pool (about 700MB RAM used in that case). Pretty close to the same as Linux, it will use more on 64-bit systems.

I'm curious to find out what the memory usage is after it has been running 24/7 for a week or more... if it can last that long. :) The pool might keep it from ever using more memory, but the pool might get full and crash the app...
 
Quote from Stock:



I'm curious to find out what the memory usage is after it has been running 24/7 for a week or more... if it can last that long. :) The pool might keep it from ever using more memory, but the pool might get full and crash the app...

I have kept it running continuosly since my first post in this thread. (201 securities). No problems so far. Will let you know if it crashes... (that machine has 1 Gb ram, win7)

Tom
 
Quote from kiwi_trader:

Just tried it out with Sierra Chart.

For anyone who missed how you use it/run it.

Download and install TWS 904
In the Interactive Brokers menu in you'll find both TWS and the new IB Gateway.
Click the second one.

Run just like TWS, changing the API socket to 7496 if you want to directly sub for TWS.


I initially opened it, connected Sierra Chart, placed and entry order, it filled, moved my target in and took a quick profit. A bit uncomfortable that I couldn't check for IB's view of the world.

So I turned on detailed logging. And didn't see much ... because I use the dark background and the logging doesn't show. Reopened Gateway with the traditional colours and all was well.

Looks good.
Now have IB view confirmation (and might just learn to read ib log files.
Opened another Sierra instance and it forms a second tab for the next instance. All very nice. All works.
Uses under half the memory of standard TWS.


So, Congratulations IB. There have been a lot of requests for a thin TWS over the last couple of years. And a lot of requests to drop the 24 hour auto-logoff. And it seems you've heard us.

Thanks very much.

I'm quite new at this stuff, i keep seeing costs associated with this gateway feature.

<b>Is there a cost to having this lightweight program? </B>

Becuase my charting software needs TWS running to stream the data, but TWS keeps crashing my computer.

I'm hoping this is the solution to this problem.
THanks
 
One strange, but totally minor, thing that happened to me (win7) is that the Gateway does not seem to show in the program menu at the first installation. If you repeat the installation it shows.

This happened also to friend of mine (xp).

Have you, by any chance, experienced the same?


Tom
 
Quote from Stock:

You can not go by what the GNOME task manager says as that's just the resident size, not the actual size.

Use 'top' or 'ps' to get the full values:
Code:
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                                                        
20594 Stock     20   0  940m 207m  15m S    1  2.6   0:05.44 java

That's 940MB (this includes the libraries and such that are loaded). The resident value changes depending on which applications need memory at the current time and does not represent the complete size.

Of course all of this is up for some controversy because shared libraries are counted in the virtual size and could in theory be used by multiple applications. Still, that's a lot of memory.

top or ps is not going to give a reasonable estimate of the memory utilization of java apps. If you install the jdk, there is a application called jconsole that lets you look at heap size, heap utilization, garbage collection and lots of other interesting stuff for any java app. Very useful in picking up memory leaks too.
 
Quote from rolando87:

I'm quite new at this stuff, i keep seeing costs associated with this gateway feature.

<b>Is there a cost to having this lightweight program? </B>

Becuase my charting software needs TWS running to stream the data, but TWS keeps crashing my computer.

I'm hoping this is the solution to this problem.
THanks


TWS really shouldn't crash your computer and would prompt me to:
- make sure I had the latest java (-20)
- check all my display drivers were current.
 
Quote from kiwi_trader:

TWS really shouldn't crash your computer and would prompt me to:
- make sure I had the latest java (-20)
- check all my display drivers were current.

I agree with that. No reason to crash. It may (quite rarely) freeze, but crashing the pc... actually never seen it.

Try doing a clean installation of operating system. Use a light antivirus, like avira (can use House Call weekly for deeper scan). Do no install unnecessary software...
ckeck also you memory modules and video card...

Tom
 
Back
Top