If post a sample code, as you did say, I think will make it easier to
solve this problem.
Tell us more about your app. Is always good to know about some
application made with ExtPascal running in production. ;-)
IMHO, we have to change the type of engine that free the memory in
ExtPacal apps, unfortunately.
Marcos Douglas
You may want to try EurekaLog. It has an option to track memory leaks.
Mike
I don't know if heaptrc do not works very well with threads, but I
guess that have no differences... but I'm not sure.
Try to use heaptrc using a CGI app, not a FastCGI. See yours results.
I think the ExtPascal engine do not releases the objects in a good
time. If you have many requests in a little time, you will see the
memory rising like a rocket!
> [...]Do you have any suggestions
> about tools I could possibly use to track this thing down?
No, I'm sorry. I just know heaptrc. =(
>> Tell us more about your app. Is always good to know about some
>> application made with ExtPascal running in production. ;-)
>
> Well, I don't know how much at liberty I am to say completely -
> suffice it at this time to say that it's the web interface to a device
> that used to configure and control equipment used extensively in the
> broadcast TV, cable TV and satellite TV industries, with add on
> modules for IPTV. Most of the rest of the system is in Python, C and C+
> +, but ExtPascal was chosen for a replacement web interface after an
> attempt to use a tool called 'pyjamas' initially.
You did use a web-framework and a very famous language to web apps,
but chosen ExtPascal... very interesting!
> [...]ExtPascal allows us
> to use familiar tools and code for both server and browser side at the
> same time.
That's my idea too.
> Since none of use have much experience as web developers,
> this has proven to be a godsend, and we have got the system up and
> running in less than three months start to finish (and it's a
> complicated system, let me tell you!). We've also taken advantage of
> ExtPascalTools for visual development.
Three months; no experience as web developers; a complicated system.
Well, that sounds good!
> Just for into, we're using Lazarus 0.9.30 with (IIRC) FPC 2.4.x on
> Ubuntu for our development machines - the target is Debian based as
> well.
I'm using Lazarus from /trunk and FPC 2.6.1 from /fixes_2_6.
> Thanks again for the quick reply, and I'll get back on this first
> thing in the morning!
I want to use ExtPascal in a real app, in the future, then your
informations are very important for me. We help each other. ;)
I will wait your mail...
Marcos Douglas
Hi Dave,
I think Wanderlan, the autor of ExtPascal, can help you more faster than me.
I knew it about the release memory problems, but I thought it was
happening only in sophisticated applications -- I didn't imagine that
ExtPascalSamples have the same problems.
If you can, let's wait what he can tell us, OK?
Marcos Douglas
Well, it's very strange Wanderlan has not responded yet. =(
Dave,
Have you got anything else about the problem?
Marcos Douglas
Marcos Douglas
--
You received this message because you are subscribed to the Google Groups "ExtPascal" group.
To post to this group, send email to extp...@googlegroups.com.
To unsubscribe from this group, send email to extpascal+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/extpascal?hl=en.
Found a big portion of it : put cmem in the uses clause of
FCGIApp.pas, just after cthreads. Most issues disappear after that -
am still tracking down some residuals - will keep the group posted!
Be well,
Dave H.
|
--
You received this message because you are subscribed to the Google Groups "ExtPascal" group.
To post to this group, send email to extp...@googlegroups.com.
To unsubscribe from this group, send email to extpascal+unsubscribe@googlegroups.com.
BTW, let me take this opportunity to thank you for creating ExtPascal
- it's nothing short of brilliant in it's conception, and is amazingly
efficient at creating complex web designs in short periods of time.
Be well,
Dave H.
{$IFDEF MSWINDOWS}inherited;{$ENDIF} // Collateral effect of Unix RTL FPC bug
by
inherited;
and
remove line about 629:
{$IFNDEF MSWINDOWS} EndThread(0); {$ENDIF}
Att
WanderlanBe well,
Dave H.
--
You received this message because you are subscribed to the Google Groups "ExtPascal" group.
To post to this group, send email to extp...@googlegroups.com.
To unsubscribe from this group, send email to extpascal+...@googlegroups.com.
Wanderlan,
These codes should be merged in 0.9.8 in a branch, don't you think?
Could you give me access to create the branch 0.9.8? Maybe you could
create but give me access...
Marcos Douglas
These codes should be merged in 0.9.8 in a branch, don't you think?
Could you give me access to create the branch 0.9.8? Maybe you could
create but give me access...
Marcos Douglas
--
You received this message because you are subscribed to the Google Groups "ExtPascal" group.
To post to this group, send email to extp...@googlegroups.com.
To unsubscribe from this group, send email to extpascal+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/extpascal?hl=en.
=)
But, IMHO, we need a branch to merge patches. Only patches... new
features only in trunk.
So, we need 3 things:
1- Create a branch 0.9.8
2- Create a Tag 0.9.8 (the stable version that exists to download)
3- My new powers! ;-)
Marcos Douglas
You can upload in the list.
Your program is already running in production?
Marcos Douglas
That being said, the app still "leaks" ... about 4k per session.
However, once this number reaches some size (seems to vary machine to
machine) it stops growing.
In no case has it effected machine
performance. We are unsure if we are seeing an artifact of the tools
we're using to scan for leaks, or some small actual leak generated by
ptherds. In any case, we relase on Friday, so we're pretty confident.
Famous last words ...;>)
Will keep an eye on this and post back here if we come up with
anything else.
And thanks, Wanderlan, for building a great project!
What size is it, approximately?
How many sessions are opened?
But, is there any chance you publish a link to a demo of this application?
That would be very good for ExtPascal ...
--
You received this message because you are subscribed to the Google Groups "ExtPascal" group.
To view this discussion on the web visit https://groups.google.com/d/msg/extpascal/-/gM8C_A45Fp8J.
To post to this group, send email to extp...@googlegroups.com.
To unsubscribe from this group, send email to extpascal+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/extpascal?hl=en.