On 05.01.2013 13:48, Thomas Eckardt wrote:
>> I've memory leaking on 2.2.2, 12352 (in fact I had the same problem with
> older versions too).
>
> Perl leaks memory on long running tasks - this is the nature of the 
> dynamic memory management of Perl.
>
> If the 'lib/AsspSelfLoader.pm' is installed the graphs will look like 
> there is some leaking memory - in this case, assp starts with a minimum of 
> compiled code and allocated memory in every thread, if any additionaly 
> code is required, it is compiled at runtime and the required memory is 
> allocated (and never given back to the OS !).
That explains a lot.
>> When assp starts, it use ~ 400 MB, which looks like a reasonable value to me.
> This is OK. 
>> 9 workers
> this is too high - five should be OK ! Than more workers - than more 
> memory fragmentation !
>
> on 32 Bit Perl and five workers anything below 1GByte memory usage is OK
> on 64 Bit Perl and five workers anything below 2GByte memory usage is OK
>
> Than higher the Perl version , than less memory usage - ~ 10% per Perl 5 
> major version step 10,12,14,16 - and less memory fragmentation!
Time to upgrade perl to 5.16 then.
>> I cannot restart assp per some interval.
> So Perl will fragment your RAM, will allocate more and more memory - and 
> will CRASH , there is no question 'if'; but only at what time !
> At least one restart a week should be possible.
That's what I usually do, but some times I have to do it a 2-4 times per
week.
The problem is not in manual or automating restarting, assp runs under
supervise anyway, and can restart itselfwhen required, or by a nagios
even handler.

Thomas, your help was valuable, thanks a lot.

PS. Most probably attached graphs have been cut by maillist server.
Check them here :
http://tinypic.com/r/2ms20di/6
http://tinypic.com/r/vrr1ox/6
-- 
Regards,
Slava


------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412
_______________________________________________
Assp-test mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-test

Reply via email to