High windows defender CPU usage while running python script
NickName:Hugoagogo Ask DateTime:2019-07-24T08:18:59

High windows defender CPU usage while running python script

I am working on a python script that pulls data from an Access database via ODBC, and pulls it into a sqllite database managed by django.

The script takes a fair while to run, and so I was investigating where the bottle necks are and noticed in Task Manager that when running the script python only has a relatively small CPU usage <5% (6 core 12 thread system) but "Antimalware Service Executable" and Windows explorer" jump from virtually nothing to 16% and 10% respectively.

I attempted to add exclusions to windows defender to the python directory, the source code directory, and the location of the Access DB file but this do not make any noticeable effect.

As a small amount of background, the script runs thousands of queries so IO will being accessed quite frequently.

Is there any troubleshooting I can do to diagnose why this is happening and/or if it affecting performance.

Copyright Notice:Content Author:「Hugoagogo」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/57173701/high-windows-defender-cpu-usage-while-running-python-script

More about “High windows defender CPU usage while running python script” related questions

High windows defender CPU usage while running python script

I am working on a python script that pulls data from an Access database via ODBC, and pulls it into a sqllite database managed by django. The script takes a fair while to run, and so I was investi...

Show Detail

Very high CPU usage by Windows Defender when using doParallel's foreach in R

I have a Threadripper 1950X based workstation with 16 cores and 32 threads and plenty of memory. Running 64-bit R 3.6.0 (patched) on Windows 10, I frequently run parallel code in R using the doPara...

Show Detail

Visual Studio Code - Searching triggers Windows Defender process with high CPU usage

I'm trying to move from Netbeans IDE to VS Code. I have a fresh instalation (newest version 1.29.0) without any extensions on Windows 8.1. When I try to search a file by CTRL+E immedietly Antimalw...

Show Detail

Python Shell High CPU Usage

I have Python 3.4.3 installed on an older laptop (Pentium 4) with Windows XP. It seems that half the time when the Python shell is open, the CPU usage goes up to 12-13%. It is the Python shell it...

Show Detail

Python server program has high cpu usage

I am experimenting with a python tcp server (I've just recently discovered the awesomeness that is python). Anyway, the server runs just fine and prints data the way I would expect, but when I look...

Show Detail

High CPU Usage with no load

We are running a windows service which every 5 seconds checks a folder for files and if found logs some info about it using NLog. I already tried the suggestions from ASP.NET: High CPU usage under...

Show Detail

Very high CPU usage with no active queries

we run MySQL 5.5 on Windows machines (Dual Core, 12GB RAM). On one of them, CPU usage is at 50% without a single query being executed. The other one has 0-1% CPU load. I think the problem came up ...

Show Detail

Django long running scripts and DB CPU usage

I running a script that uses Django ORM. The script runs for long time sometimes more than three days. Script looks like below from app.models import * for i in some_simpe_select():

Show Detail

How to profile CPU usage of a Python script?

Ideally what I want is to record the CPU usage of a Python script that is executing a deep neural net Keras model. I'm looking for the CPU equivalent of memory_profiler, which provides the memory

Show Detail

High CPU usage running a custom bash script in Raspberry Pi 4 (Ubuntu 20.04.1) to control GPIO

I wrote a bash script to turn GPIO on/off to control a fan, but it's causing high CPU usage and I cant figure out why. It works but whenever it changes state from off to on or vice versa , the script

Show Detail