Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Example Analysis of Print Spooler Service parsing and Fault handling

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you the example analysis of Print Spooler service parsing and fault handling, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

Print Spooler Service description: manage all local and network print queues and control all printing work. If this service is disabled, printing on the local computer will not be available. If this service is disabled, any services that depend on it will not be enabled.

Executable file path: C:\ WINDOWS\ system32\ spoolsv.exe

The process name of Spooler (print spooling service) is spoolsv.exe,WinXP Home/PRO. The default installation startup type is automatic and depends on Remote Procedure Call. Spooler is to improve the efficiency of document printing, to save and manage multiple documents that request printing. First, copy the printed files to memory, and then send the data to the printer for processing when the printer is idle. It's faster to handle it this way. It is recommended that you set it to manual and open it when there is a print task. If there is no printer, it is naturally disabled.

Error example:

1, Print Spooler service startup failed: the default startup mode of Print Spooler service is automatic, because there is no Server service in the dependency relationship of Print Spooler service (some software may be installed caused by the loss of the registry key), thus trying to preemptively start the Server service before starting the Print Spooler service, add the dependency LanmanServer to the Print Spooler service in the registry, and then change the start mode of the Print Spooler service to automatic, the error phenomenon has been resolved.

2. After each boot, it is found that the spoolsv.exe process consumes a lot of cpu resources (70%), which seriously affects the operation of the system.

We know that every time a print job is created, two files with extensions of shd and spl are created in the% systemroot%\ system32\ spool\ printers directory. If the estimate is correct, there must be a problem here. Remote control, open the% systemroot%\ system32\ spool\ printers directory to check, and found that there are two files with the extension shd and spl, respectively. If you delete these two files, will it solve the problem that the spoolsv.exe process consumes a lot of cpu resources?

Let's deal with the failure:

Try to stop the print spooler service first, then delete the shd and spl files in the% systemroot%\ system32\ spool\ printers directory, restart the print spooler service, and troubleshoot. Fault analysis:

When the print spooler service starts, it will check the print queue, and if it finds an unfinished queue, it will try to execute. If the queue file is destroyed, it can cause an endless loop during the execution of the print spooler service, resulting in the spoolsv.exe process consuming a lot of cpu resources.

The spl file is the current offline file and contains the current print task.

The shd file is the information file currently printed offline, including who initiated the print task, the queue information in the print task, and where the print task was sent, and so on.

In addition, there are some tmp files, if there is a problem with the spl or shd files, or if the print queue is sent to an invalid printer, or the print driver module sent does not respond correctly, this may cause spoolsv.exe to try again and again, which will take up a lot of cpu resources, and this phenomenon may cause the system to hang.

The above is all the contents of the article "sample Analysis of Print Spooler Service parsing and Fault handling". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report