(class) info::Startup
if (xGlobal::clientKind() == !ClientType::Server)
SmartHeapMemorySizeUp();
to
if (xGlobal::clientKind() != ClientType::Server)
SmartHeapMemorySizeUp();
This change was included in sp3 and it will give the clients the max
amount of heap space and does basically what the script provided earlier
does. It won�t fix the leak though; I�m in the process of documenting a
leak to send to MBS that you only see doing bulk processes. We had to
limit a bulk sales order creation job to 6 megs batches. It seems that
if your have a processes that pounds on Axapta constantly Axapta never
does the garbage collection you can watch the memory utilization just
creep right up on the ax32.exe process. I�ve made the AOS exhibit the
same behavior too.
-Preston
-----Original Message-----
From: Hlavni�ka Karel [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 09, 2004 4:39 AM
To: [EMAIL PROTECTED]
Subject: RE: [development-axapta] Out of memory!?
Hello, this was answered here before (hope it is the same problem), I am
copying an answer from Kim Truelsen (MBS):
Due to the fact that the SmartHeap memory manager in the Axapta Client
only uses a 4 kb page size, it can possibly run out of Virtual memory.
The upper limit for the Ax32.exe's memory allocation is in the
neighbourhood of 512 mb, but depending on the allocation pattern, a
value as low as 300 mb has been seen.
The Server/AOS uses a much larger page size and will, in theory, not run
out of Virtual memory until Windows does.
According to the above, there are two possible workarounds:
1. Use the AOS as a BatchServer (with a thin client to run the batches)
2. Increase the page size of the Clients SmartHeap memory manager
The following job doubles the Smartheap memory-page-size once per
execution, provided that the current page size is less than 32 KB
(should be executed immediately after start-up to verify that one (or
more) executions will in fact prevent the SmartHeap error message).
static void SmartHeapMemorySizeUp(Args _args)
{
HeapCheck hc;
int i, pageSize, newPageSize;
;
hc = new HeapCheck();
i = hc.poolCount();
while (i>0)
{
print 'Data for pool no = ' + int2str( i );
print ' FixedBlockSize = ' + int2str( hc.fixedBlockSize(i) ) +
' SmallBlockSize = ' + int2str( hc.smallBlockSize(i) );
pageSize = hc.pageSize(i);
if (pageSize < 32768)
{
newPageSize = 2 * pageSize;
hc.pageSize( i, newPageSize );
}
else
newPageSize = pageSize;
print ' Old PageSize = ' + int2str( pageSize ) + ' New
PageSize = ' + int2str( newPageSize );
i--;
}
pause;
}
Result example:
-----Original Message-----
From: Matt Benic [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 09, 2004 11:03 AM
To: Axapta Dev
Subject: [development-axapta] Out of memory!?
Hi all,
We have a VERY serious problem. Our installation is complaining
about being
out of memory, but the server on which it is running still has
over 700Mb of
physical memory free and the swap file has only reached half it's
allowed
size. This is reproducible and potentially explains why certain
bulk
processes we have been running are getting progressively slower.
It has got
to the point where when a user performs certain actions, they are
presented
with a dialog with a title that includes 'smartheap lib' and with
the
message 'out of memory, please free some memory'. We have tested
this on a
number of client machines and it occurs no matter where this is
run-so we
are sure it is server related. We also noticed that it only
happens on one
of our AOS instances, so it is AOS limited. Has anyone seen this
before and
do you have any suggestions?
Matt Benic
Axapta Developer
UTi Sun Couriers Division
[Non-text portions of this message have been removed]
Yahoo! Groups Sponsor
ADVERTISEMENT
click here
<http://rd.yahoo.com/SIG=129edq4p4/M=298184.5022502.6152625.3001176/D=gr
oups/S=1705006764:HM/EXP=1086858651/A=2164339/R=0/SIG=11e2d64in/*http://
www.netflix.com/Default?mqso=60183348
<http://rd.yahoo.com/SIG=129edq4p4/M=298184.5022502.6152625.3001176/D=gr
oups/S=1705006764:HM/EXP=1086858651/A=2164339/R=0/SIG=11e2d64in/*http:/w
ww.netflix.com/Default?mqso=60183348> >
<http://us.adserver.yahoo.com/l?M=298184.5022502.6152625.3001176/D=group
s/S=:HM/A=2164339/rand=482939100>
_____
Yahoo! Groups Links
* To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]
be>
* Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service <http://docs.yahoo.com/info/terms/> .
[Non-text portions of this message have been removed]
Yahoo! Groups Sponsor
ADVERTISEMENT
<http://rd.yahoo.com/SIG=129dqtnf8/M=298184.5022502.6152625.3001176/D=gr
oups/S=1705006764:HM/EXP=1086860449/A=2164339/R=0/SIG=11e2d64in/*http:/w
ww.netflix.com/Default?mqso=60183348> click here
<http://us.adserver.yahoo.com/l?M=298184.5022502.6152625.3001176/D=group
s/S=:HM/A=2164339/rand=229518483>
_____
Yahoo! Groups Links
* To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]
be>
* Your use of Yahoo! Groups is subject to the Yahoo! Terms of
<http://docs.yahoo.com/info/terms/> Service.
[Non-text portions of this message have been removed]
| Yahoo! Groups Sponsor | |
|
|
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

