我有一个Python应用程序,它执行大型文件的关联。它把那些保存在一个小块里。根据输入文件的不同,这个dict可能会变得非常大,以至于它不再适合内存。这会导致系统挂起,所以我想防止这种情况。因此,我定期检查可用内存。如果它变得太少(例如,小于300 to ),如果删除不相关的相关性以获得更多的空间。这就是理论。
我更新到最新的Hangfire.Mongo (0.6.7)和最新的MongoDB驱动程序(2.10.3)。更新后,一些Hangfire作业会抛出此异常: A bulk write operation resulted in one or more errors. Cannot create field 'Continuations' in element {Parameters: [ [ "CurrentCulture", ""en-SE"" ], [ "CurrentUICulture", ""