consuming system resources (wodHttpDLX)
by pmtroutok, Tuesday, April 17, 2007, 19:05 (6430 days ago)
im using max connections of 10
it works great at first but after 30 minutes or so slows down to a crawl
im pretty much just loading a certain webpage over and over,
anything can to do fix?
Re: consuming system resources
by woddrazen, Tuesday, April 17, 2007, 19:15 (6430 days ago) @ pmtroutok
Hi,
Can you show us code snippet that you use or send us simple sample that will duplicate your problem to techsupport@weonlydo.com?
That would help us a lot in duplicating your problem.
Drazen
Re: consuming system resources
by pmtroutok, Tuesday, April 17, 2007, 20:40 (6430 days ago) @ woddrazen
Private Sub http_Done(Index As Integer, ByVal ErrorCode As Long, ByVal ErrorText As String)
Dim Results(0 to 100) as string
Dim oldcookie(0 To 100) As HttpCookie
For Each oldcookie(Index) In http(Index).Response.Cookies
http(Index).Request.Cookies.Add oldcookie(Index).Name, oldcookie(Index).Value
Next
If ErrorCode <> 0 Then
Results(Index) = ErrorText
Call Reconnect(Index)
Else
Results(Index) = http(Index).Response.Body
http(Index).Disconnect
ProcessHTML Index, Results(Index)
End If
End Sub
///////////////////////////////////////////////////////////////////////////////////////////////////////
Public Sub ProcessHTML(index as integer, strData as string)
if http(Index).URL = http://www.blah.com/ And InStr(strdata, <form action= )<> 0 Then
http(Index).Request.FormPost.RemoveAll
http(Index).Request.Cookies.RemoveAll
http(Index).Request.FormPost.Add email , Email(Index)
http(Index).Request.FormPost.Add pass , Password(Index)
http(Index).Post https://login.blah.com/login.php
Exit Sub
End If
end sub
Re: consuming system resources
by woddrazen, Tuesday, April 17, 2007, 22:24 (6430 days ago) @ pmtroutok
Hi,
I have tried to duplicate it but didn't have luck. I have load 10 instance of wodHttpDLX and execute Post Method on some URL but after 30 minutes everything works like a charm.
Maybe if you unload wodHttpDLX instance before another instance is load will help.
In Done Event you should done something like this:
------------------------------------
http(Index).Disconnect
Set http(Index)= Nothing
------------------------------------
If that doesn't help we will need to duplicate it somehow in order to deal with it.
Maybe you can send us sample to techsupport@weonlydo.com which will connect to your url (I hope you can somehow give us that information) and duplicate problem.
Or if you can duplicate it with some other host which don't need to include private information that would help also.
Drazen