【问题标题】:IBM Domino Sometimes Agent Runs SlowlyIBM Domino 有时代理运行缓慢
【发布时间】:2018-07-06 03:39:30
【问题描述】:

运行代理时,有时会遇到类似“HTTP Server: Execution time limit exceeded by Agent xxx”的错误。但如果再次运行,它将正确运行。是否意味着代理被其他任务阻止?我应该在哪里研究原因?代码如下:

Set tDb = New NotesDatabase(db.Server, "test\Test.nsf")
Set tView = tDb.GetView("TestView")
Set tDoc = tView.GetFirstDocument
lastTest = After(tDoc.Name(0)) 
lastName = tDoc.Name(0)
curName = lastName
Open dirLoc & Replace(lastTest) & ".html" For Output As #1
For i = 0 To 6
    Print #1, headerArray(i)
Next
While Not tDoc Is Nothing
    curTest = After(tDoc.Name(0)) 
    curName = tDoc.Name(0)  
    If lastTest <> curTest Then
        Print #1, footerStr
        Close #1
        Open dirLoc & Replace(curTest) & ".html" For Output As #1
        For i = 0 To 6
            Print #1, headerArray(i)
        Next
    End If
    Set dateAssigned = New NotesDateTime(tDoc.Completed(0))
    timeDiff = todaysDate.TimeDifference(dateAssigned) / 3600 / 24
    If timeDiff <= 10 Then
        Print #1, repeatArr(0)
        ... ...
        Print #1, repeatArr(14)
    End If
    lastName = curName
    lastTest =  After(tDoc.Name(0))
    Set tDoc = tView.GetNextDocument(tDoc)
Wend    
Print #1, footerStr
Close #1

【问题讨论】:

  • 代理是做什么的?可以发一下代码吗?
  • 另外,您的服务器的 Domino Web 引擎选项卡上的“Web 代理和 Web 服务超时”设置是什么?这与 Per Henrik 提到的设置不同。

标签: lotus-domino


【解决方案1】:

您可以更改服务器文档上的“Max LotusScript/Java 执行时间:”,以便让您的代理运行更长时间。

【讨论】:

  • 感谢您的反馈!正常情况下,代理将在 1-2 分钟内完成。最大 LotusScript 执行时间为 30 分钟。但有时代理无法在 30 分钟内完成并显示错误。好像其他工作阻止了这个代理?但我找不到查看作业队列/作业状态的位置。
  • 仅供参考:该设置适用于在 AMGR 任务下运行的代理。错误消息表明这是在 HTTP 任务下运行的 Web 代理。我相信最大 HTTP 代理执行时间的设置位于 Domino Web Engine 选项卡上,并且通常设置为比 AMGR 限制短得多的时间。
【解决方案2】:

在不知道代理做什么的情况下无法回答。我建议使用OpenNTF OpenLog 或类似的东西添加一些日志记录,这样您就可以看到代理中花费的时间。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-06-10
    • 2017-12-07
    • 2014-12-28
    • 1970-01-01
    • 2018-10-17
    • 2018-10-24
    • 1970-01-01
    相关资源
    最近更新 更多