<!-- wp:heading -->
<h2>Help me. My PaperCut server is using 100% of its resources!</h2>
<!-- /wp:heading -->

<!-- wp:spacer {"height":"50px"} -->
<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:paragraph {"fontSize":"medium"} -->
<p class="has-medium-font-size">Sometimes (just sometimes), we will receive a support ticket or Slack message about a customer with a server hosting PaperCut MF that uses a lot of the CPU and/or RAM.</p>
<!-- /wp:paragraph -->

<!-- wp:spacer {"height":"50px"} -->
<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:paragraph -->
<p>And from the start, these things can often get tricky as nearly always the fault will lie with the customer's server or network, and they (not unreasonably) want to blame the software rather than their fine hardware or network. So we have to approach the problem sensitively; plus, there is always a matter of urgency with these things. While the server is going crazy, this has a knock-on impact on the end-users experience with PaperCut MF.</p>
<!-- /wp:paragraph -->

<!-- wp:spacer {"height":"20px"} -->
<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:spacer {"height":"20px"} -->
<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:image {"id":9488,"sizeSlug":"full","linkDestination":"media"} -->
<figure class="wp-block-image size-full"><a href="https://staging.selectec.com/wp-content/uploads/2022/05/papercut-high-cpu-usage.png"><img src="https://staging.selectec.com/wp-content/uploads/2022/05/papercut-high-cpu-usage.png" alt="Task manager showing high CPU usage" class="wp-image-9488"/></a></figure>
<!-- /wp:image -->

<!-- wp:spacer {"height":"20px"} -->
<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:paragraph -->
<p><strong>Issues you may see:</strong></p>
<!-- /wp:paragraph -->

<!-- wp:list -->
<ul><li>Slow / unresponsive reporting</li><li>Delayed print popups</li><li>Embedded solutions falling off the network</li><li>Errors when accessing PaperCut Admin or User pages</li><li>Scan failures</li></ul>
<!-- /wp:list -->

<!-- wp:spacer {"height":"20px"} -->
<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:paragraph -->
<p>As you can see, software gets really unhappy when a server is slow. Ever tried working off a stressed-out laptop? It is much the same.&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:spacer {"height":"30px"} -->
<div style="height:30px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:heading {"textAlign":"left","level":3} -->
<h3 class="has-text-align-left">Basic questions</h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>So, we like to start off with a quick checklist of the basics.</p>
<!-- /wp:paragraph -->

<!-- wp:list {"ordered":true} -->
<ol><li>Is it CPU, memory, or both at a high utilisation?&nbsp;</li><li>How is the customer monitoring this?</li><li>Is there a particular process eating up the resources? For example, with PaperCut MF, it would be pc-app.exe.&nbsp;</li><li>Are the resources slowly being consumed over a few days, or does it instantly spike to a high percentage? Does the usage go down at all? Or does it remain high?&nbsp;</li><li>Does it happen regularly? Is there a pattern to this behaviour? For example, does it start to happen every Sunday night or Monday morning?</li></ol>
<!-- /wp:list -->

<!-- wp:paragraph -->
<p>We would suggest that customers investigate setting up performance alerts on the server(s) early on so that an advanced warning is given when server resources become worrying. It may help them see a pattern.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>As part of our research into the case, we would also suggest taking advantage of the Health Monitoring API or even installing PaperCut's Multiverse service to keep an eye on the server.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Once you check this, it helps us better understand the issue.</p>
<!-- /wp:paragraph -->

<!-- wp:spacer {"height":"30px"} -->
<div style="height:30px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:heading {"textAlign":"left","level":3} -->
<h3 class="has-text-align-left">First thing to check</h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>First of all, is it a virtual machine? If so - are the resources reserved? If not, reserve them and secondly, try increasing the resources available - throw a couple of extra CPU cores at the server and see if it helps. As a word of warning - do not go crazy on the memory. Too much memory is not always a good thing, this&nbsp;<a target="_blank" href="https://www.papercut.com/kb/Main/PaperCutOnVM" rel="noreferrer noopener">KB article</a>&nbsp;is well worth a read.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Check if there are any anti-virus/malware scans regularly on the server.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Look to exclude the PaperCut install path from the real-time scan(s). Or, a more drastic step, stop the AV services completely. We do not suggest doing this forever, but we know the problem if it fixes the issue right away.</p>
<!-- /wp:paragraph -->

<!-- wp:spacer {"height":"50px"} -->
<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:heading {"textAlign":"left"} -->
<h2 class="has-text-align-left">What other scheduled tasks have you got running?&nbsp;</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>For example, do you have some backups running on the server? Is it a VM, and you are backing up the host?&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Do you have an external SQL server running? Are there any maintenance tasks running that could cause problems?</p>
<!-- /wp:paragraph -->

<!-- wp:spacer {"height":"50px"} -->
<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:heading {"textAlign":"left"} -->
<h2 class="has-text-align-left">Talking of external SQL servers...</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Could that SQL server be causing the issue? Maybe PaperCut is trying really hard to talk to the SQL server, and it can't keep up with the requests. The knock-on impact of that delay/lag is causing the PaperCut server to work extra hard. So take all the advice we've discussed and apply it to the SQL server (check AV, resources, backups, network, etc.)</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Oh, and be sure to be using the new SQL driver, PaperCut introduced an updated driver before version 20. Your connection string should look something like this: database.url=jdbc:sqlserver://serverName:portNumber;databaseName=databasename;socketTimeout=600000</p>
<!-- /wp:paragraph -->

<!-- wp:spacer {"height":"50px"} -->
<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:heading -->
<h2>Check user permissions</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>What user are you using for the service account for PaperCut MF? Is this user part of the local server's Performance Log Users and Performance Monitor Users groups? It might be worth making sure they are a super admin to rule out any oddities with permissions.</p>
<!-- /wp:paragraph -->

<!-- wp:spacer {"height":"50px"} -->
<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:heading {"textAlign":"left"} -->
<h2 class="has-text-align-left">What else is running?</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Grab an export of the services on the configured PaperCut server(s) - something like&nbsp;<a target="_blank" href="https://www.thewindowsclub.com/generate-list-of-windows-services-using-powershell" rel="noreferrer noopener">this would be good</a>.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Looking at that list may help you notice any other software interfering and disable any odd services you feel may be causing issues.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Last of all, think about what changed recently?</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Did you update any drivers?</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Install new hardware?</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Replace hard drives?</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Install a proxy?</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Have you changed your hardware firewall?&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>A lot of the time, when it comes to high CPU, the issue lies outside of PaperCut. For example, we have seen new firewalls be installed and not fully configured. They then cause a delay/lag between the PaperCut App Server and database server, making both servers work harder and fall out of sync easily, which then causes the CPU spikes.)</p>
<!-- /wp:paragraph -->