Dukascopy
 
 
Wiki JStore Search Login

JFOREX-2512 JForexClient Memory Leak
 Post subject: JFOREX-2512 JForexClient Memory Leak Post rating: 0   Post Posted: Wed 01 Dec, 2010, 15:28 

User rating: -
I posted this some time ago and received n replies. I'll post it again here, in the hopes that this is the right forum.

Post subject: JForexClient Memory LeakPosted: Wed 10 Nov, 2010, 03:04

Joined: Mon 01 Nov, 2010, 18:08
Posts: 2
I adjusted the start and end dates to back test a strategy using the JForexClient within Netbeans. After the system runs for several minutes, it began to slow down. To find the issue, I profiled the code and noticed the "surviving generations" profile increasing with every tick, which is the symptom of a memory leak.

I went through my code and continued the process until at one point I removed all of my code leaving the onTick method blank and ran the profile again only to find that the empty method is still leaking memory. This means the JForexClient must contain the memory leak, and it is only reveled during longer back testing.

As I can not go live without thorough back testing, please advise. I have screen shots, but don't see how to up load them in this interface.

Kind regards,
David Heath


 
 Post subject: Re: JFOREX-2512 JForexClient Memory Leak Post rating: 0   Post Posted: Mon 06 Dec, 2010, 20:41 

User rating: 0
Joined: Thu 02 Dec, 2010, 16:55
Posts: 15
I've not done the testing you've done to look for a leak, but I've suspected it. If I start doing some testing with historical data, it gets slower and slower with each identical test until I just restart the application and it goes back to being fast.


 
 Post subject: Re: JFOREX-2512 JForexClient Memory Leak Post rating: 0   Post Posted: Fri 10 Dec, 2010, 15:57 

User rating: -
Yes, stoping the system and restarting it will release the memory, but doesn't allow for back testing over a long period of time. My trades are open when the system runs out of memory, so a restart literally breaks the trades making the test invalid. I'm concerned that Dukascopy hasn't at least replied to this . . . after two months or so.

I've tried using a 3rd party UI with their data feed, and of course it is problematic.


 
 Post subject: Re: JFOREX-2512 JForexClient Memory Leak Post rating: 0   Post Posted: Mon 13 Dec, 2010, 06:44 

User rating: 0
Joined: Thu 02 Dec, 2010, 16:55
Posts: 15
The regular tester and the optimizer actually function differently. I can REALLY REALLY break the regular tester and then with the same stuff the optimizer works fine!

I agree on the late response, but it's not really a serious issue in that if this was live, you wouldn't lose money because of it. But I've found things where the stop placement doesn't work properly and they don't reply to that... that can make someone lose real money!


 
 Post subject: Re: JFOREX-2512 JForexClient Memory Leak Post rating: 0   Post Posted: Mon 03 Jan, 2011, 14:14 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
As far as you run the test in the Netbeans, please provide us with the tested code which has caused the problem.


 
 Post subject: Re: JFOREX-2512 JForexClient Memory Leak Post rating: 0   Post Posted: Wed 12 Jan, 2011, 21:22 

User rating: -
The leak occurs in JForex and the JForexClientLibrary. Are you asking for my strategy source code to see the leak or asking how I used Netbeans to find it?

To be honest, it's taken so long to get a response from anyone I've moved to another broker. I was curious, so I checked back in.


 
 Post subject: Re: JFOREX-2512 JForexClient Memory Leak Post rating: 0   Post Posted: Mon 24 Jan, 2011, 16:04 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
fixed in next version (2.13+)


 

Jump to:  

  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com