如何处理 JetUpdate 上的 JET_errVersionStoreOutOfMemory
当我调用 JetUpdate() 时,有时会得到 JET_errVersionStoreOutOfMemory 或 JET_errVersionStoreOutOfMemoryAndCleanupTimedOut。
该机器有足够的可用 RAM 和磁盘空间,这个错误意味着什么 - 更重要的是,我该怎么办?
我在重试交易之前尝试过一些诸如 Sleep()ing 之类的操作,有时这似乎有效,但有时却不起作用 - 让我觉得我走错了路?
When I call JetUpdate() I sometimes get either JET_errVersionStoreOutOfMemory or JET_errVersionStoreOutOfMemoryAndCleanupTimedOut.
The machine has plenty of free RAM and disk space, what does this error mean - and more important, what do I do about it?
I've tried actions such as Sleep()ing a bit before retrying the transaction, sometimes this seems to work, but sometimes it doesnt - making me think i'm on the wrong path?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您要么需要增加版本存储的大小(使用 JetSetSystemParameter 设置 JET_paramMaxVerPages),要么在一个事务内执行更少的工作。
作为控制交易大小的示例,请参阅“如何脉冲我的交易?”文档中的条目:http://managementesent.codeplex.com/wikipage?title=HowDoI
You either need to increase the size of the version store (set JET_paramMaxVerPages with JetSetSystemParameter) or do less work inside of one transaction.
As an example of controlling transaction size see the "How Do I Pulse My Transaction?" entry in the documentation: http://managedesent.codeplex.com/wikipage?title=HowDoI