Login  
Search All Forums
Dart Home | PowerTCP WebServer for ActiveX | Custom Development Reply | PowerTCP WebServer for ActiveX Topics | Forums   
AuthorForum: PowerTCP WebServer for ActiveX
Topic: Sessions Collection Grows
rowens

From: Santa Ana, CA USA
Posts: 12
Member Since: 04/21/04
posted June 14, 2004 1:59 PM

Hello Tony:

I've seen, over time, the memory usage of a small webserver application grow to consume 200+ megs of memory over the course of a couple of days and perhaps a couple thousand posts. I've been trying to narrow down where the problem is, and I found that by stopping the WebServer tool, the memory is freed up.

I added a counter to my app to show the Count property, and that property seems to grow over time with the stop method being the only way I've found to reset this. The Count doesn't grow one for one from posts or gets, but seems to only grow when there are simaltaneous requests (this may be wrong, but it seems to have something to do with being busy).

I am using Delphi 5 and verified the same behavior in the sample application provided from Dart (which is what I modeled my server after--my server, however is using delay and threading). I have the suspicion that there is some cleanup I need to be doing when I reply to an incoming post, but I can't seem to find anything in the help in that regard. 

To duplicate this issue, add a field on the sample Dart application (label or edit or whatever you like) and set the text or caption to IntToStr(WebServer1.Count) whenever a get or post is received. If you pound on the server long enough, you will see the count grow (I have a client that will post the same message over and over in rapid succession--running a couple of instances of this app will cause the problem to manifest).

Let me know what I'm doing wrong or if there's an issue. Thank you for your time.

-Randy
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted June 14, 2004 2:41 PM

Ok, here's what I did to test it:

1) Added a Timer to the existing sample. Set enabled to true and interval to 100

2) Added the following code to the Timer's Timer event:

    lblCount.Caption := IntToStr(WebServer1.Count) ;

3) Opened an IE session to the server and leaned on the F5 key (refresh)

What I saw was the count flucuating between 0 and 2, but it always returned to 0

What more should I do to see the error?

rowens

From: Santa Ana, CA USA
Posts: 12
Member Since: 04/21/04
posted June 14, 2004 3:48 PM

I've not seen the error occur using get (but, then again, most all my transactions are posts).

I have a test client that I can put up on an FTP server that will cause the problem to occur if you want to try that (the client is also Delphi 5 and uses the Dart Web Tool).

In my tests, I see the count flucuate as well, but on occassion (concurrent posts, maybe?), the count will simply increment and never decrement. It's not a one-to-one. Just every now and then the count jumps up one and never goes back down again.

If you'd like to try my client, send me an e-mail and I'll reply with an FTP address and account info for the client. Running 4 instances of this client on the same machine banging on the server will cause the count to go to 2 and it won't go back to 0 on its own.

-Randy
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted June 14, 2004 4:08 PM

Please zip the sample project up and email it to support@dart.com.
rowens

From: Santa Ana, CA USA
Posts: 12
Member Since: 04/21/04
posted June 24, 2004 3:08 PM

I sent an e-mail with a client HTTP application that causes the issue about two weeks ago. Let me know if it arrived (or not). I'll be happy to resend it if need be.

-Randy
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted June 24, 2004 3:12 PM

I don't see a record of it arriving. The last message I have from you was from May 6th regarding issue 2579.

If you still have that email you have my direct email address. Otherwise use support@dart.com.
Reply | PowerTCP WebServer for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX