Software & SaaSEngineering note

The App That Wasn't in Startup: How Acrobat Reader Slowed Our Windows Servers

Killing a process clears one session. When the process is a Store (Appx) app, it starts again from its own package at the next logon, and the usual startup lists never show it. Read the command line, then remove the package.

Author

CrpyByte Engineering

Published

Reading time

3 min read

We look after four Windows servers that staff reach over Remote Desktop to run payroll software. In August one of them was running slow. Task Manager showed a process called PSExpressCore.exe, Adobe Photoshop Express, using CPU on a server where nobody edits photos. On 19 August we stopped it. It had used about 3,400 seconds of CPU by then.

On 28 August it was running again and had used another 2,590 seconds, about 14% of the server's two virtual CPUs, with nobody using it.

Why we couldn't find how it started

The usual places were empty: Task Manager's Startup tab, the registry Run keys, and the Windows list of startup commands. The answer was in the process's own command line, which Task Manager hides unless you add the column:

PSExpressCore.exe launch=headless-mode;source=windows-startup-service;installationSource=acrobat-reader
  • headless-mode: running with no window, so no user ever sees it.
  • source=windows-startup-service: started by a startup task inside a Store (Appx) app package. These tasks are declared in the package itself, which is why none of the usual startup lists show them.
  • installationSource=acrobat-reader: the app was installed by Acrobat Reader, not by anyone on the team. It also tells you who will put it back.

So stopping the process only ever lasted until the next logon. On a remote-desktop server, with several people logging on each day, that is not long.

Removing it for good

A Store app is installed per user, so check every user on the server, not only the one who complained. On this server it was installed for two accounts.

# 1. Find it for every user
Get-AppxPackage -AllUsers -Name *PhotoshopExpress*

# 2. Remove it for every user
Get-AppxPackage -AllUsers -Name *PhotoshopExpress* | Remove-AppxPackage -AllUsers

# 3. Make sure it is not set to install for new users
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like '*PhotoshopExpress*' |
    Remove-AppxProvisionedPackage -Online

Then check all three: the package is gone for every user, no process is running, and its folder under C:\Program Files\WindowsApps is gone.

It came back on other servers

On 28 September we checked the other three servers. Two of them had it too. On one, it had been installed four days earlier. Each time it cost between 5% and 28% of a CPU core and 90 to 290 MB of memory, on servers that are shared by several people at once.

Removing it by hand each time was not going to last. We added a small scheduled task to all four servers that runs at start-up and every morning. It stops the process if it is running, removes the package for all users, removes any provisioned copy, and writes one line to a log: "clean", "removed" or an error. The log tells us at a glance whether the app has tried to come back.

What else we measured

Before blaming Acrobat as a whole, we measured its other parts. They used between 0 and 0.3% of the CPU and about 76 MB of memory. They were not the problem, so we left them alone. Only the bundled photo app was.

Checklist for a slow Windows server

  1. Add the Command line column in Task Manager's Details tab before deciding what to stop. It often says who started a process and why.
  2. If it says windows-startup-service, it is a Store app. Stopping it lasts one logon. Remove the package instead.
  3. Check every user, with -AllUsers, and the provisioned packages, or it returns for the next new profile.
  4. Measure before cleaning up. Remove what is actually using the machine, not everything that looks unnecessary.
  5. Do not disable vendor updaters to stop unwanted apps. Remove the app and keep the patches.
  6. Leave a guard and a log on shared servers, so you know when something comes back instead of hearing it from users.

If your servers are slow and nothing in Task Manager explains it, tell us what you see. We will find what is using the machine and make sure it stays fixed.

Written by

CrpyByte EngineeringEngineering team

The team that designs and builds CrpyByte client systems and tools. We write about the parts of the work worth writing down.

Have a process worth improving?

Let's build the system behind it. Tell us what the process is and where it breaks — the first conversation is about constraints, not technology.