James,

huuuu... - I've tested the new function with Windows and Linux and it was 
running fine.

The behavior on Mac is realy strange.
The function works as follows:

- at compile time ASSP trys to find AsspSelfLoader.pm
- if AsspSelfLoader was found at it is selected in the configuration to 
use , assp.pl modifies its self by removing two '#' (line 3979 and line 
4655).
- this makes all code lines after line 4655  simple text lines (no code) - 
so Perl stops compiling at line 4655)
- AsspSelfLoader.pm loads the lines after 4655 in to memory as simple text 
and does an analyze for packages and subroutines and implements an 
AUTOLOAD function in to each found package
- If any thread trys to call a subroutine that does'nt exists in the 
symbol table of Perl, the AUTOLOAD sub of that package is called and will 
compile the subroutine 'on the fly' - if the compilation was successfull 
the compiled code remains in memory and the text part will be deleted. 
- So only needed (called) subroutines will be compiled by Perl - this 
reduces the memory usage.

>I saw perl's memory usage climb
This is normal using the AsspAutoLoader - because the new compiled code 
(at call time) needs more memory that the simple text.

How ever you should not use this module.

Thomas



Von:    James Brown <jlbr...@bordo.com.au>
An:     ASSP development mailing list <assp-test@lists.sourceforge.net>
Datum:  07.03.2011 04:58
Betreff:        Re: [Assp-test] fixes and news in assp_2.0.2_3.0.02




I upgraded to 2.0.2_3.0.02 and put the module in the assp/lib folder. 
Started ASSP.

Watching Activity Monitor (running Mac OS X 10.5.8) I saw perl's memory 
usage climb.

Perl then got heaps of malloc errors:

7/03/11 10:10:37 AM perl5.10.1[363] perl5.10.1(363,0xb038d000) malloc: *** 
mmap(size=16777216) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug 

and assp wouldn't let any new message in. Virtual Memory use grew to use 
all remaining HD space.

Restarted the mail server, didn't take long before the same thing started 
to happen again.

Removed the AsspSelfLoader.pm file from assp/lib folder, restarted ASSP 
and all has been well since.

James.


On 06/03/2011, at 7:12 PM, Fritz Borgstedt wrote:

> ASSP development mailing list <assp-test@lists.sourceforge.net>
> schreibt:
>> How does one install this new module?
> 
> Put it into assp/lib.
> 
> 
------------------------------------------------------------------------------
> What You Don't Know About Data Connectivity CAN Hurt You
> This paper provides an overview of data connectivity, details
> its effect on application quality, and explores various alternative
> solutions. http://p.sf.net/sfu/progress-d2d
> _______________________________________________
> Assp-test mailing list
> Assp-test@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/assp-test


------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
Assp-test mailing list
Assp-test@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-test




DISCLAIMER:
*******************************************************
This email and any files transmitted with it may be confidential, legally 
privileged and protected in law and are intended solely for the use of the 

individual to whom it is addressed.
This email was multiple times scanned for viruses. There should be no 
known virus in this email!
*******************************************************


------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
Assp-test mailing list
Assp-test@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-test

Reply via email to