Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I think I know, but.....
Message
From
09/11/2005 23:12:24
 
 
To
06/11/2005 19:44:13
General information
Forum:
Visual FoxPro
Category:
Internet applications
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01063158
Message ID:
01067069
Views:
25
>>...(which creates interesting issues for VFP memory detection).
>
>How much RAM do you allow each VFP instance to use? How do you limit it, specifically? Any tweaking of background memory, etc?

Well, we do have to detect this and make a correction. John Koziol helped with this. Other than that we let VFP do whatever it wants.
procedure CheckMemLimits
* ------------ Limit Memory Usage ------------
local nTotMem, nFGMem, nBGMem

nTotMem= val(sys(1001))
nFGMem= val(sys(3050, 1))
nBGMem= val(sys(3050, 2))

if m.nTotMem < m.nFGMem
	* Adjust the pool sizes
	sys(3050, 1, m.nTotMem / 2)	&& Foreground buffer pool
	sys(3050, 2, min(m.nTotMem / 2, m.nBGMem))	&& Background memory pool
endif
endproc
Previous
Reply
Map
View

Click here to load this message in the networking platform