Hi, 

It is my first time to live my algorithm, which runs normally during backtesting. However, it returns me a few errors when I lived it. Could you please help me on these issues?

 

Firstly,  I didn't see any error message before today marker opened, so I assume it runs normally? but it didn't place any orders at the set time.

Secondly, When I lived my algorithm, it only takes about 120+MB memory, it returns me an error of memory usage maxed out.

 

2019-03-28 21:18:43 :Log.Trace(): Error writing trace: array too small. numBytes/offset wrong. Parameter name: array2019-03-29 11:45:18 :Brokerage Info: System.Net.Sockets.SocketException (0x80004005): Connection refused. at System.Net.Sockets.TcpClient..ctor (System.String hostname, System.Int32 port) [0x0006d] in <a360a10e096b4659a9142a244ddaea3e>:0 . at IBApi.EClientSocket.createClientStream (System.String host, System.Int32 port) [0x00001] in <157d4e40593a4bff95e01b0ef064385d>:0 . at IBApi.EClientSocket.eConnect (System.String host, System.Int32 port, System.Int32 clientId, System.Boolean extraAuth) [0x00034] in <157d4e40593a4bff95e01b0ef064385d>:02019-03-29 12:44:45 :Brokerage Warning: Connectivity between IB and Trader Workstation has been lost.2019-03-29 12:46:22 :Brokerage Warning: Connectivity between IB and Trader Workstation has been restored - data maintained.2019-03-29 14:26:06 :Runtime Error: Execution Security Error: Memory Usage Maxed Out - 512MB max, with last sample of 513MB.2019-03-29 14:26:06 :Runtime Error: Execution Security Error: Memory Usage Maxed Out - 512MB max, with last sample of 513MB.: StackTrace: System.Exception: Execution Security Error: Memory Usage Maxed Out - 512MB max, with last sample of 513MB. at QuantConnect.Isolator.ExecuteWithTimeLimit (System.TimeSpan timeSpan, System.Func`1[TResult] withinCustomLimits, System.Action codeBlock, System.Int64 memoryCap, System.Int32 sleepIntervalMillis) [0x00340] in <d24af964a832479085884ee585dd58f0>:0 at QuantConnect.Lean.Engine.Engine.Run (QuantConnect.Packets.AlgorithmNodePacket job, QuantConnect.Lean.Engine.AlgorithmManager manager, System.String assemblyPath) [0x0099d] in <f2a8beddbd6d42c6862548e1832b10f9>:0

 

 

Author