I know this issue came up a few times, but all the responses did not help me to find a solution. I'm getting a lot of "The database file is larger than the configured maximum database size. This setting takes effect on the first concurrent database connection only. [ Required Max Database Size (in MB; 0 if unknown) = 257 ]" errors. Typically it occurs when strategy order is executed, but it can also occur randomly at any time during a day.
When it happens, NT freezes, sometimes up to a level when datafeed connection is lost (I use Kinetick). When it un-freezes, prices are no longer updated, and i have to restart NT and my strategy.
When I look at NinjaTrader.sdf, I see that sometimes it jumps to more than 250Mb in size, but most of the time its close to 8Mb.
My strategy does not place/execute too many orders, but sometimes it has to cancel/re-place an order many times. However, I do not think its the main issue here.
The problem may be related to the fact that my strategy uses very large data structure, and NT probably tries to serialize the strategy along with all its data and place it into the database. Just a guess.
Please assist in resolving this issue.
Comment