¿ªÔÆÌåÓý
When I have more free time, I'll try that.? For now, my primary use for the IB Gateway is to download historical data and occasionally place orders.? So simply extending the memory limit fixes it for my use case.
From: [email protected] <[email protected]> on behalf of Ray Racine <ray.racine@...>
Sent: Thursday, June 24, 2021 9:16 AM To: [email protected] <[email protected]> Subject: Re: [TWS API] IB Gateway Memory Leak? ?
Been a long while since my java days ...
But you did ask about some possible things ...
AFAIK all of the JVM suppliers offer a tool or a procedure (send a POSIX signal to the JVM process)? to force a gc collection as well as a heap dump, event attaching an external monitor to a running? JVM etc.
Doing it low level and a bit raw (there are free and vendor supplied higher level tools for all this):
You should clearly see some (it is usually one thing) run away count of object instances of some Class causing the leak.? It is rarely the class itself that is the issue, it is its use as an element of some collection container which makes it reachable
thus? preventing gc'ing.
For an actionable bug report just hitting memory allocation hard for some duration to a "steady state", force gc, dump gc stats, hitting allocation hard again for 5-10 mins, force gc, dump gc stats should be sufficient.
On Wed, Jun 23, 2021 at 1:46 AM Crow <aaroncook394@...> wrote:
|