Memory Leaks

For questions and postings not covered by the other forums
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Memory Leaks

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:04 pm

by MichaelHill >> Mon, 5 Nov 2001 0:36:14 GMT

Afternoon All,

Is there anyway to check source code that I write in Jade to see if there are memory leaks in the code?

Cheers

Michael Hill
Gallagher Group Ltd

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Memory Leaks

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:04 pm

by CarlRanson >> Mon, 5 Nov 2001 20:15:35 GMT

There is code on the faq's to show you how to list transients on application exit.

Cheers,
CR

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Memory Leaks

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:04 pm

by MITCHELL1 >> Mon, 5 Nov 2001 23:30:54 GMT

If you have CardSchema, you can use app.cnCheckForTransients, which looks for transients in all classes in the current schema, plus common ones in the RootSchema, and logs them in the CardSchema log. This is also automatically invoked in finalize if ini file option CheckTransientsOnShutDown=true in [CardsLog] section.
--
Richard W Mitchell
JADE Direct Technologies
mailto: rmitchell@jade.co.nz

JADE Group trading as a division of Aoraki Corporation Ltd.
Visit our web site at www.cardinal.co.nz and news.jadeworld.com

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Memory Leaks

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:04 pm

by cnwjhp1 >> Mon, 3 Dec 2001 5:25:25 GMT

Others have documented how to find undeleted transients. If you have that problem, you will see growth in the transient overflow files (#txxx.tmp, usually in the logs folder) after the transient cache fills up.

If you have true memory leaks (memory usage increases continually, but no orphaned transients - usually caused by a misbehaving dll), you can set up a Performance Monitor (under Administrative Tools) with a 24 hour width to monitor the memory usage of the executables in question. Knowing when the leaks occur and how much can help track it down.

Cheers,
John P


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 35 guests