Dart Home | PowerTCP WebServer for ActiveX | Custom Development | Reply | PowerTCP WebServer for ActiveX Topics | Forums |
Author | Forum: PowerTCP WebServer for ActiveX Topic: Web Server memory leak on XML post? |
draginich From: Billerica, MA USA Posts: 5 Member Since: 04/03/03 |
posted March 22, 2004 8:45 PM I'm trying to track down a memory leak in our application. I have created a very simple vb.net application that handles XML data posts. When I run it, the non-managed codes memory (private bytes for the process) is growing and the managed codes memory is averaging at a constant. Here is the Code: Private WithEvents oWeb As DartWebServer.WebServerClass Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load oWeb = New DartWebServer.WebServerClass oWeb.RootDirectory = "c:\temp" oWeb.Start(80, -1) End Sub Private Sub oWeb_Post(ByVal Session As DartWebServer.Session, ByVal Request As DartWebServer.Request, ByVal Response As DartWebServer.Response) Handles oWeb.Post Dim oXml As New Xml.XmlDocument Dim oData As New DartWebServer.DartStreamClass oWeb.Sessions.Remove(Session.Id) oXml.LoadXml(Request.Body.ReadString) Response.Header.Add(DartWebServer.HttpLabelConstants.httpContentType, "text/xml") Response.Status = DartWebServer.HttpStatusConstants.httpOK Response.Body = oData lCount = lCount + 1 txtCount.Text = lCount.ToString End Sub It is being driven by a Java application that posts about 7,000 XML documents in ten minutes, which contain about 300,000 characters total. Over a 10 minute interval there is about a 3MB leak. Each post is a new session (no session cookies) and each session object is being deleted. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted March 23, 2004 9:05 AM It's probably a garbage collection issue with .NET Do you have the ability to write a similar app in VB6 to see if the same leak occurs? If you do and the leak does not occur then I would search google for VB.NET + "Garbage collection" to see if anyone has any tips. If you need us to look into this further, please send a very simple test server app and page that does the posting to support@dart.com |
Reply | PowerTCP WebServer for ActiveX Topics | Forums |
This site is powered by
![]() |