Dukascopy
 
 
Wiki JStore Search Login

Remote server - The CPU burns on Instrument Subscription
 Post subject: Remote server - The CPU burns on Instrument Subscription Post rating: 0   New post Posted: Mon 30 Oct, 2017, 13:18 

User rating: 2
Joined: Mon 05 Nov, 2012, 11:56
Posts: 80
Location: Germany,
Hi,

It seems that subscribing to more than 5-6 Instruments on the Remote Server is causing a "Max overload period exceeded : 60 seconds" error and the strategy can never start up....

See the test code attached which tries to subscribe to 11 Instruments and gets stopped.

Is it by design so or my code has a bug?

On my local machine I can see no CPU usage increase while running this strategy at any time.



Image


Attachments:
xx.PNG [30.86 KiB]
Downloaded 105 times
RemoteTestCPU.java [5.58 KiB]
Downloaded 129 times
xx.PNG [30.02 KiB]
Downloaded 233 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: Remote server - The CPU burns on Instrument Subscription Post rating: 0   New post Posted: Tue 31 Oct, 2017, 09:52 
JForex Master
User avatar

User rating:
Joined: Wed 16 Sep, 2009, 18:23
Posts: 1049
Location: Geneva, Switzerland
There is not need to pause for 1 second between the subscription requests.

Do not subscribe for custom period of 15mins as minutes periods will be coming in onBar() method after subscribing to a full market depth anyway.

Attached is the updated strategy.


Attachments:
RemoteTestCPU.2.java [4.42 KiB]
Downloaded 120 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: Remote server - The CPU burns on Instrument Subscription Post rating: 0   New post Posted: Tue 31 Oct, 2017, 10:52 

User rating: 2
Joined: Mon 05 Nov, 2012, 11:56
Posts: 80
Location: Germany,
Thanks for your hint but I get the same issue with this as well...see the code attached.

It seems there is something with the remote server CPU restrictions.


Image


Attachments:
xx.PNG [20.75 KiB]
Downloaded 372 times
RemoteTestCPU2.java [4.98 KiB]
Downloaded 128 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: Remote server - The CPU burns on Instrument Subscription Post rating: 0   New post Posted: Mon 06 Nov, 2017, 16:49 
JForex Master
User avatar

User rating:
Joined: Wed 16 Sep, 2009, 18:23
Posts: 1049
Location: Geneva, Switzerland
What can be done from your side:
1. Divide the amount of subscribed instruments into 2 strategies run remotely, if possibe.
2. Subscribe with time intervals between each of the instruments.

We will try to improve this on our side in the future.


 
 Post subject: Re: Remote server - The CPU burns on Instrument Subscription Post rating: 0   New post Posted: Mon 06 Nov, 2017, 19:25 

User rating: 2
Joined: Mon 05 Nov, 2012, 11:56
Posts: 80
Location: Germany,
I had improved the code with some threading so that I managed to subscribe to max 11 instruments but at the first run the onBar function burned the CPU as well....

BTW Jforex allows me to run only one strategy on the remote server at the same time...

Please enhance the CPU power so that one can use multi-instruments strategies as well. Thanks!


 

Jump to:  

cron
  © 1998-2024 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