PresentationFontCache占用CPU [英] PresentationFontCache hogging CPU

查看:319
本文介绍了PresentationFontCache占用CPU的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在开发XAML和C#VS.Net 2008 Windows应用程序.启动时间很好,但是我的系统从第一次运行该应用程序开始就变慢了.在查看任务管理器/procexp时,我注意到进程 PresentationFontCache.exe 占用了我计算机近50%的恒定CPU周期.
要检查我的应用程序是否出错,我将其关闭,请删除
PresentationFontCache.exe 从内存中进行处理,然后使用以下命令从命令行重新定义服务:
净启动FontCache3.0.0.0

PresentationFontCache.exe 再次加载,立即使CPU使用率提高了50%!

查看服务MMC应用程序中的过程,我注意到服务状态永久处于开始"状态.应用程序事件日志还指出启动消息已成功发送到该服务,但是没有后续事件表明该服务已进入运行模式.缓存进程并阻止其正常启动.有人可以在这里帮助我吗?

我正在Windows Server 2003上运行,并且AFAIK具有相当标准的.NET开发环境设置(VS2008、2005和2003).

注意:暂时我在开发时已禁用该服务-我不知道 PresentationFontCache. exe 仍然可以在目标安装系统上运行.

Hi,

I am developing an XAML and C# VS.Net 2008 windows application. Startup time is fine but my system slows down from the first time the application is run. Looking at Task Manager/procexp I noticed that the process PresentationFontCache.exe is hogging a nearly constant 50% of my machines CPU cycles.
To check if my application was at fault I closed it, removed the
PresentationFontCache.exe process from memory then restated the service from the command line using: 
   net start FontCache3.0.0.0

PresentationFontCache.exe loads up again and immediately ramps up to 50% CPU use!

Looking at the process in the services MMC application I notice the service status is permanently at "Starting". The Application Event log also notes that a start message was successfully sent to the service, but there is no follow-up event to indicate the service went into running mode.

I'm figuring something may be stalling the font cache process and stopping it from starting up properly. Can anyone help me here please ?

I'm running on Windows Server 2003 and AFAIK have a pretty standard .NET development environment setup (VS2008, 2005 & 2003).

NB: for the time being I've disabled the service while I'm developing - I don't know how PresentationFontCache.exe will behave on the target installation systems though.

推荐答案

我的父亲的系统上也发生了同样的情况.

他没有使用Visual Studio.

我的系统使用Visual Studio没问题.

我禁用了服务,并通过任务管理器结束了程序.
The same situation is happening on my fathers system.

He is not using Visual studio.

My system which is using Visual Studio does not have the problem.

I disabled the service and ended the program via the task manager.


这篇关于PresentationFontCache占用CPU的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆