Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การแก้ไขปัญหา >> ข้อผิดพลาด Windows

แก้ปัญหา: PresentationFontCache.exe ใช้ CPU/Memory สูง

คอมช้า เปิด Task Manager เจอ PresentationFontCache.exe ใช้ CPU 50-100% End Task แล้วกลับมาใหม่ (หรือหลัง Reboot) บางครั้งทำให้ Boot ช้ามาก

PresentationFontCache.exe เกี่ยวกับ .NET Framework หน้าที่: โหลด Font Glyphs ลง Memory ให้แอป WPF (Windows Presentation Foundation) ใช้ ทุกครั้งที่รัน WPF App Process นี้จะเริ่มทำงาน

สาเหตุ CPU สูง: Font Cache Corrupt/Unresponsive ทำให้ Process เข้าสู่ Restart Loop ใช้ CPU มาก

วิธีที่ 1: ลบไฟล์ Font*.dat (แก้ได้ส่วนใหญ่)

ไฟล์ .dat เก็บข้อมูลอ้างอิง Font อาจ Corrupt ให้ลบ และ Reboot

  1. Win + R พิมพ์ C:\Windows\ServiceProfiles\LocalService\AppData\Local\ Enter

แก้ปัญหา: PresentationFontCache.exe ใช้ CPU/Memory สูง

  1. หาไฟล์ Font*.dat (หรือ FontCache 3.0.0.0.dat)
  2. คลิกขวา → Delete ยืนยัน Prompt

แก้ปัญหา: PresentationFontCache.exe ใช้ CPU/Memory สูง

  1. Reboot

หมายเหตุ: เข้าโฟลเดอร์ไม่ได้ → Win+R → control panel → Appearance and Personalization → File Explorer Options → View → ติ๊ก Show hidden files, folders, and drives Apply/OK ลองใหม่ เข้าไม่ได้ยัง ต้องเข้า Path Manual

Reboot แล้วควรปกติ

หมายเหตุเพิ่ม: ลบไฟล์ไม่ได้ (In Use) → Ctrl+Shift+Esc Task Manager → End Task PresentationFontCache.exe → ลบใหม่

วิธีที่ 2: Disable Presentation Font Cache Service

PresentationFontCache.exe เริ่มทำงานเมื่อมี WPF App รัน หากไม่ใช้ WPF App (แอป Visual Studio Windows Desktop) ให้ Disable Service

  1. Win + R → services.msc Enter

แก้ปัญหา: PresentationFontCache.exe ใช้ CPU/Memory สูง

  1. หา Windows Presentation Foundation Font Cache 3.0.0.0 Double-click

แก้ปัญหา: PresentationFontCache.exe ใช้ CPU/Memory สูง

  1. Startup Type → Disabled

แก้ปัญหา: PresentationFontCache.exe ใช้ CPU/Memory สูง

  1. Service Status: Running → Stop
  2. Apply → OK

แก้ปัญหา: PresentationFontCache.exe ใช้ CPU/Memory สูง

Service จะไม่ Start อีก CPU ลดลง

วิธีที่ 3: Repair .NET Framework (Last Resort)

Presentation Font Cache ผูกมัด .NET Framework Repair Framework มักแก้ปัญหา Font Cache ด้วย

  1. Win + R → appwiz.cpl Enter

แก้ปัญหา: PresentationFontCache.exe ใช้ CPU/Memory สูง

  1. หา Microsoft .NET Framework 3.0 (หรือเวอร์ชันอื่น) คลิก Change/Remove
  2. เลือก Repair ตาม Prompt
  3. ทำซ้ำกับ Instance ทุกตัวในรายการ

เสร็จแล้วควรปกติ