# Jenkins Agent running slow MacOS

**URL:** <https://community.jenkins.io/t/jenkins-agent-running-slow-macos/12928>\
**Category:** Ask a question\
**Created:** [February 29, 2024, 1:01pm UTC](https://community.jenkins.io/t/jenkins-agent-running-slow-macos/12928 "2024-02-29T13:01:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wilfy](https://avatars.discourse-cdn.com/v4/letter/w/3be4f8/32.png) [@wilfy](https://community.jenkins.io/u/wilfy)\
**Post date:** [February 29, 2024, 1:01pm UTC](https://community.jenkins.io/t/jenkins-agent-running-slow-macos/12928/1 "2024-02-29T13:01:37Z")

</div>

Jenkins version - 2.387.3.5  
JDK - 11.0  
Plugins - multiple

Hi this question is extremely similar to [HELP! Only the Jenkins agent running on Mac OS is slow](https://community.jenkins.io/t/help-only-the-jenkins-agent-running-on-mac-os-is-slow/11356). I’m creating this topic as there doesn’t seem like there was any resolution.

Context:  
I’ve recently set up a brand new MacOS M2 Mini physical machine using agent.jar as an agent node to run a script in the pipeline. Running the script locally (not through the pipeline) works fine and reasonably fast.

Running through the pipeline however, takes more than an hour just to run a simple pip install script.

I’ve previously ran this script on another node/agent through another MacOS Virtual Machine and there was no issues. My physical machine is moderately spec’ed with 16GB RAM.

Was wondering what could be causing this. Thanks

---

<div class="post-metadata">

**Author:** ![wilfy](https://avatars.discourse-cdn.com/v4/letter/w/3be4f8/32.png) [@wilfy](https://community.jenkins.io/u/wilfy)\
**Post date:** [March 1, 2024, 8:35am UTC](https://community.jenkins.io/t/jenkins-agent-running-slow-macos/12928/2 "2024-03-01T08:35:25Z")

</div>

Do i have to configure the heap of the agent?

---

<div class="post-metadata">

**Author:** ![wilfy](https://avatars.discourse-cdn.com/v4/letter/w/3be4f8/32.png) [@wilfy](https://community.jenkins.io/u/wilfy)\
**Post date:** [March 3, 2024, 2:42pm UTC](https://community.jenkins.io/t/jenkins-agent-running-slow-macos/12928/3 "2024-03-03T14:42:28Z")

</div>

Tried tweaking around with JVM options but to no avail

---

<div class="post-metadata">

**Author:** ![poddingue](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/poddingue/32/985_2.png) [@poddingue](https://community.jenkins.io/u/poddingue)\
**Post date:** [March 25, 2024, 4:52pm UTC](https://community.jenkins.io/t/jenkins-agent-running-slow-macos/12928/4 "2024-03-25T16:52:24Z")

</div>

Hello and welcome to this community, @wilfy. 👋

Would you be able to share your pipeline, your configuration, the JDK you’re using (version number and vendor), your macOS distro, and your Jenkins plugin list?

You could maybe have a detailed look at the steps to see which one is taking the most time, and you could also try a thread dump.

My $0.02.
