NetTalk Central

Author Topic: Memory Issues  (Read 3950 times)

random69

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • Email
Memory Issues
« on: June 09, 2009, 01:02:48 PM »
Anyone seeing these kinds of memory issues? It looks like memory leaking. I don't remember ever seeing the usage so high.

First off, I'm using Process Explorer to view memory in concert with the task manager.

In an older web server application (4.31 - one of the PR releases early on), memory would start around 20MB, jump up to about 60-70MB and stay there. Fine. Has been running for months without issue.

An updated site now with 4.32 - the memory starts at 20MB, but after a few days, jumps to 400-420MB. This is private bytes memory from process explorer.

So - made a test - simple site with a login form. Setup a javascript refresh on that page for 5 seconds and ran two instances under IE. It's been running for only 30 minutes and the memory usage is up to 180MB already.

Monitoring the web server window, I can see only two session ID's - so no new sessions are being created.

As I write this, the physical memory use approached 230MB and then dropped to 170MB, HOWEVER, the private bytes is climbing (which indicates memory was paged out since physical ran out). From Process Explorer's help file:
Private Bytes represents the amount of private virtual memory a process has allocated and is the value that will rise of a process exhibiting a memory leak bug.

So.... sounds like a memory leak. We've had older web servers running for months with no memory problems - so something in the newer releases.

TIA for anyone's help.

random69

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • Email
Re: Memory Issues
« Reply #1 on: June 09, 2009, 02:46:38 PM »
Follow-up -

I just have determined that the leak appears to be caused by the latest Replicate. I will follow up with CapeSoft.

FYI for those who use both.


Wolfgang Orth

  • Sr. Member
  • ****
  • Posts: 251
    • View Profile
    • oData Wolfgang Orth
Re: Memory Issues
« Reply #2 on: October 25, 2011, 03:44:49 AM »
I made a rather simple one, 3 HTML-pages (plus errorpage), 1 SWF, 1 PDF, 1 form which does a comparision of one value (keycode) and writes a simple address record into another table. Then an e-mail is sent. So, nothing big, really.

When I start that server, it is listed in Taskmanager with 6.9 MB.
Four weeks later, with maybe a few hundred requests, it is in the list with 96 MB.

I have restarted the server 3 days ago, it says 97 hits since then, and now consumes a bit over 10 MB already.

It is made with Clarion 6.3, Nettalk 4.56, Stringtheory, WinEvent. Running on XPpro32

I am tied to these versions as the environment is frozen.

Last documented changes are for Version 4.37 (Gold) 10 August 2009. So with 4.56 I am just one behind the very recent version.




Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Memory Issues
« Reply #3 on: October 25, 2011, 07:18:06 AM »
I'm not aware of any leaks, so either submit an example or debug a bit further to see which part of your app is leaking.

cheers
Bruce

Wolfgang Orth

  • Sr. Member
  • ****
  • Posts: 251
    • View Profile
    • oData Wolfgang Orth
Re: Memory Issues
« Reply #4 on: October 26, 2011, 05:27:03 AM »
The webserver produces a single sheet report and sends it as an attachment to an e-mail, once in a while.

Looks like the SV-Report-to-PDF consumes between 150 to 300 kB each time, but never gives it back.

I can live with this constellation right now, simply restarting the webserver after x weeks clears the memory. But maybe I modify this construction and move this PDF printing to an external program that gets closed after each printing. Just to see if this is the bad boy.... I keep you updated.