Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
High CPU load at Print Preview
Message
 
To
20/03/2014 14:43:14
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 8
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01596885
Message ID:
01596964
Views:
65
I got a call from a customer that said that Dell had identified my program as using 100% CPU while showing a Print Preview (in TS environ). I did not see it myself. So I checked on my machine. As soon as I ran the report, boom, CPU went to 30% or so. Dell identified my program as the process.

Yes that is an interesting point about multiple core CPU.

It probably isn't FoxyPreviewer, as CraigB seems to indicate that it is VFP 9 itself.


>Still not 100% sure what you're saying:
>
>- are you seeing high(er) CPU utilization in both local and TS sessions, or just one or the other?
>
>- I'm surprised you'd see 100% utilization on a TS, they typically have lots of cores, a single session/process of VFP won't pin more than 1 of them so overall CPU usage should still be less
>
>- did you take a look at the processes tab of Task Manager to determine exactly which process is hogging CPU? Maybe it's something else like a real-time antivirus scanner
>
>If it does appear to be FoxyPreviewer you could contact them at http://foxypreviewer.codeplex.com/ .
>
>>Yes it came up in a situation when running in a Terminal Server environment; there CPU usage goes to near 100%.
>>
>>It doesn't seem to make any sense; the graphics have all been processed, and the report is just being displayed on the screen.
>>
>>
>>>>I have a VFP 9 SP2 application. It was brought to my attention that when one of my reports sits at the print preview (I am using FoxyPreviewer, not sure if it applies to VFP reports in general) the CPU load is around 30%. This seems very high for sitting at a print preview. Is there anything that I can do to reduce this? When I am out of the print preview, the CPU load is less than 10%.
>>>
>>>First, use Task Manager to ensure it's your app that's using the CPU resources.
>>>
>>>Even if it is, my first reaction is "so what?". Typical modern PCs have so much free/available CPU that the end user won't notice the difference between 10% and 30% in use. And for a report preview it may not be for that long. Is it worth anyone's time trying to track this down?
>>>
>>>Having said that, one case where someone might legitimately care would be if the session running your app is virtualized (i.e. VDI) or is running on a Terminal Server. If the underlying hardware is being heavily utilized then yes, there could be concern about that extra CPU usage. But in a case like that you might need to be more concerned about bitmap settings in VFP - BITMAP=OFF in CONFIG.FPW or SYS( 602 ).
Mike C.
-------
I keep trying to find a life of my own, apart from you.
DC Talk/Charlie Peacock, In the Light.
www.risensystems.com/ra/itlbegin.rm
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform