This is a performance and memory problem…I have develop a simple Web Agent that print after a Web request… the JSON resultate…
The part of my code is :
Print “content-type: text/plain”
chiave_ricerca=|FIELD form=“doc_cms” and FIELD CodSezione=“02” and FIELD tipoprova=“Singola” and FIELD marca_all=“|+marca_search+|” and FIELD modello_all=“|+modello_search+|” and FIELD anno_all=“|+anno_search+|”|
risultato = view.FTSearch( chiave_ricerca, 0 )
If risultato>0 Then
i=0
Print |{risultato:|+Cstr(risultato)+|,righe:[|
Set doc = view.GetFirstDocument()
While Not(doc Is Nothing)
i=i+1
buffer=|{url:"|+doc.url_pagina(0)+|",dataart:"|+Cstr(doc.data_creazione(0))+|",oggetto:"|+ doc.oggetto(0)+|",sezione:"|+doc.Sezione(0)+|"}|
If i<risultato Then
buffer=buffer+","
End If
Print buffer
Set doc = view.GetNextDocument(doc)
Wend
Delete doc
Else
Print|{risultato:0 }|
End If
Call view.clear
After this simple code… I don’t Now why the nhttp.exe task Up after consuming this agent…append 1 Mbytes…
I have insert on Initilize of my Agent and on event Terminate of my agent the
Lsi_info(50)
Lsi_info(51)
So that I can see that LS Memory occuped and OS memory occuped…
But… This is the result :
Inizialize →
LS Occuped -->2512840
OS Occuped -->2914716
Terminate →
LS Occuped -->2479448
OS Occuped -->2881516
I don’t understand…for LSI_INFO the code release the memory in theory…
I have then Delete all object and Erase all Array…but this don’t resolve the problem…
I don’t understand why in my task manager I see that nhttp.exe add 1 Megabyte of memory after any calling of my agent…
Opss…this problem is for Domino Server 8.0…now I post this problem on appropriate forum…
Exxcuse me…