Re: Probleme mit FoxPro Anwendung auf Windows 2003 Terminalserver



Hallo Markus!

Wie Woddy schon sagte, diese Angabe mußt Du im Startprogramm Deiner
Anwendung mit
nMaxCacheMem = 32000000 && in Bytes!
SYS(3050,1, nMaxCacheMem)
SYS(3050,2, nMaxCacheMem)

Zitat aus der Hilfe:
nBuffMemSize


Specifies the maximum buffer memory size in bytes. If you specify a value
for nBuffMemSize that is less than 256K bytes, Visual FoxPro sets the buffer
memory size to 256K bytes. Specify 0 for nBuffMemSize to return the buffer
memory size to the Visual FoxPro startup value. The startup value depends on
the amount of your computer's memory. If you omit nBuffMemSize, SYS(3050)
returns the buffer memory size for the buffer specified with nType.


"Markus Schlindwein" <MarkusSchlindwein@xxxxxxxxxxxxxxxxxxxxxxxxx> schrieb
im Newsbeitrag news:982C1E9A-009C-4832-A72C-60902017D0F7@xxxxxxxxxxxxxxxx
> Hallo Jürgen,
>
> vielen Dank schon mal vorab für deine Hilfe !
>
> Blöde Frage, aber wo kann ich einer TS-Session speziell Speicher zuweisen
> ?
>
> Gruß Markus
>
> "Jürgen Wondzinski" schrieb:
>
>> Hallo Markus,
>>
>> unabhängig davon, ob nun die TS-Konfiguration da noch getunt werden
>> kann/muss: Hast du denn den CacheSpeicher-Bedarf deiner App
>> konfiguriert?
>> Wenn nicht, dann nimmt sich die erste Instanz 50% des physikalisch
>> greifbaren Speichers, die zweite dann 50% des restlichen, die dritte dann
>> wieder 50% des restlichen usw.
>>
>> Diese 50% Regelung stammt noch aus Zeiten, wo Rechner mit 16-32 MB
>> ausgestattet waren, und 8-16MB reichen vollkommen aus, um VFP zum Laufen
>> zu
>> bringen. Wenns richtig fliegen soll, dann 32 bis max 64 MB (!) zuweisen.
>> Alles darüber raus verlangsamt VFP dann wieder, da die
>> Cachespeicherverwaltung irgendwann mal mehr Aufwand macht, als der davon
>> gewonnene Nutzen.
>>
>> Den momentan verwendeten Speicher kannst du dir mit
>> ? SYS(3050,1) && für Vordergrundbetrieb und
>> ? SYS(3050,2) && für Hintergrundbetrieb
>> anzeigen lassen.
>>
>> Daher sollte prinzipiell in jeder VFP App im Startprogramm drinstehen:
>>
>> nMaxCacheMem = 32000000 && in Bytes!
>> SYS(3050,1, nMaxCacheMem)
>> SYS(3050,2, nMaxCacheMem)
>>
>> Vielleicht hilfts ja schon. Daneben ist dann noch interessant, wieviel
>> Speicher du der jeweiligen TS Session am Server zugewiesen hast.
>>
>> --
>>
>> Servus
>>
>> wOOdy
>>
>>
>> Microsoft Visual FoxPro Technologieberater
>>
>>
>> |\_/| ------ ProLib - programmers liberty -----------------
>> (.. ) Unsere MVPs und MCPs bringen den Fuchs zum Laufen....
>> - / Besuchen Sie uns auf www.prolib.de und www.AFPages.de
>> -----------------------------------------------------------
>>
>>
>>
>>


.



Relevant Pages

  • Re: parsing from file
    ... program require much more memory than is necessary. ... A while loop should depend on the success or failure of the ... no way to prevent going outside the bounds of the buffer given. ... always specify a maximum field width with the %s specifier. ...
    (comp.lang.c)
  • Re: Discovering variable types...
    ... >- but I suppose MS expect us to use wrappers ... memory allocations for your variables from disk as well. ... >They most certainly are of fixed size, changing the size of a String ... >>me to keep buffer size and current postion right in the memory block. ...
    (comp.lang.pascal.delphi.misc)
  • Re: Discovering variable types...
    ... >memory it points to is on the heap. ... sequentially reading data, if one is randomly reading records, then a ... >project is what's prompting me to improve disk access. ... from a memory buffer I can do it in about a second. ...
    (comp.lang.pascal.delphi.misc)
  • Re: Multicast Directshow Graph Bridging, COW Rustling, & the Use of Portable Holes in Cartoon Ph
    ... memory to share buffer pools across processes and works pretty well. ... You get two basic Direct Show filters, ... issue each GMF-source a virtual memory alias with COW ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: PCI bus-master and large contiguous memory buffers
    ... I built my scatter gather list in SRAM that was on my device, ... could have done it in system memory had I needed to. ... interrupt when a buffer was filled, the application would save the buffer to ... beginning of the recording I made a device IO control call to my driver. ...
    (microsoft.public.development.device.drivers)