Skip to content

Mac Silicon: crazy CPU load around 70% #4215

@owpk

Description

@owpk

Description

I’m developing a typical Spring Boot application.
For privacy reasons, I can’t share the project’s source code, but I can provide the Gradle build file to give an idea of the dependencies and structure.

After running the application for some time, I noticed that CPU usage remains constantly high — around 70%, caused by the Java process.
The issue is consistent and reproducible. According to the profiler, the high CPU load originates from:

org.eclipse.equinox.launcher_1.7.0.v20250519-0528.jar
Image

The CPU stays at around 70% usage constantly, even when the application is idle and nothing happens.

Image

Environment

OS: (macOS Tahoe 26.0.1)

Java version:
openjdk version "21.0.2" 2024-01-16
OpenJDK Runtime Environment GraalVM CE 21.0.2+13.1 (build 21.0.2+13-jvmci-23.1-b30)
OpenJDK 64-Bit Server VM GraalVM CE 21.0.2+13.1 (build 21.0.2+13-jvmci-23.1-b30, mixed mode, sharing)

redhat.java version: 1.46.0

gradle.build

plugins {
	id 'java'
	id 'org.springframework.boot' version '3.5.3'
	id 'io.spring.dependency-management' version '1.1.7'
   	id 'eclipse'
}

group = 'owpk'
version = '0.0.1-SNAPSHOT'

java {
	toolchain {
		languageVersion = JavaLanguageVersion.of(21)
	}
}

configurations {
	compileOnly {
		extendsFrom annotationProcessor
	}
}

repositories {
	mavenCentral()
}

ext {
	set('sentryVersion', "8.16.0")
}

dependencies {
	implementation 'org.springframework.boot:spring-boot-starter-quartz'
	implementation 'org.springframework.boot:spring-boot-starter-security'
	implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
	implementation 'org.springframework.boot:spring-boot-starter-web'

	implementation 'org.telegram:telegrambots-spring-boot-starter:6.9.7.1'
	implementation 'org.telegram:telegrambots-client:9.0.0'

	implementation 'org.liquibase:liquibase-core'
	implementation 'io.sentry:sentry-spring-boot-starter-jakarta'
	runtimeOnly 'org.postgresql:postgresql'

	implementation 'io.vavr:vavr:0.10.6'
	implementation 'org.apache.commons:commons-lang3:3.14.0'
	compileOnly 'org.projectlombok:lombok'
	developmentOnly 'org.springframework.boot:spring-boot-devtools'
	annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
	annotationProcessor 'org.projectlombok:lombok'

	testImplementation 'org.springframework.boot:spring-boot-starter-test'
	testRuntimeOnly 'org.junit.platform:junit-platform-launcher'

}

dependencyManagement {
	imports {
		mavenBom "io.sentry:sentry-bom:${sentryVersion}"
	}
}

tasks.named('test') {
	useJUnitPlatform()
}

extension host logs:

2025-10-21 20:59:00.405 [warning] vscjava.vscode-lombok - Code actions of kind 'source.fixAll' requested but returned code action is of kind 'refactor'. Code action will be dropped. Please check 'CodeActionContext.only' to only return requested code actions.
2025-10-21 20:59:14.686 [error] [redhat.java] provider FAILED
2025-10-21 20:59:14.686 [error] Error: The request (id: 2286, method: 'textDocument/documentSymbol') has been cancelled
    at /Users/slavavorobev/.vscode/extensions/redhat.java-1.46.0-darwin-arm64/dist/extension.js:2:1078118
    at re (/Users/slavavorobev/.vscode/extensions/redhat.java-1.46.0-darwin-arm64/dist/extension.js:2:1078412)
    at /Users/slavavorobev/.vscode/extensions/redhat.java-1.46.0-darwin-arm64/dist/extension.js:2:1073196
    at Immediate.<anonymous> (/Users/slavavorobev/.vscode/extensions/redhat.java-1.46.0-darwin-arm64/dist/extension.js:2:1073216)
    at processImmediate (node:internal/timers:485:21)
2025-10-21 20:59:15.079 [error] Error: The request (id: 2287, method: 'workspace/executeCommand') has been cancelled
    at /Users/slavavorobev/.vscode/extensions/redhat.java-1.46.0-darwin-arm64/dist/extension.js:2:1078118
    at re (/Users/slavavorobev/.vscode/extensions/redhat.java-1.46.0-darwin-arm64/dist/extension.js:2:1078412)
    at /Users/slavavorobev/.vscode/extensions/redhat.java-1.46.0-darwin-arm64/dist/extension.js:2:1073196
    at Immediate.<anonymous> (/Users/slavavorobev/.vscode/extensions/redhat.java-1.46.0-darwin-arm64/dist/extension.js:2:1073216)
    at processImmediate (node:internal/timers:485:21) java.execute.workspaceCommand {"value":"redhat.java","_lower":"redhat.java"}
2025-10-21 20:59:21.852 [error] [redhat.java] provider FAILED
2025-10-21 20:59:21.852 [error] Error: The request (id: 2304, method: 'textDocument/documentSymbol') has been cancelled
    at /Users/slavavorobev/.vscode/extensions/redhat.java-1.46.0-darwin-arm64/dist/extension.js:2:1078118
    at re (/Users/slavavorobev/.vscode/extensions/redhat.java-1.46.0-darwin-arm64/dist/extension.js:2:1078412)
    at /Users/slavavorobev/.vscode/extensions/redhat.java-1.46.0-darwin-arm64/dist/extension.js:2:1073196
    at Immediate.<anonymous> (/Users/slavavorobev/.vscode/extensions/redhat.java-1.46.0-darwin-arm64/dist/extension.js:2:1073216)
    at processImmediate (node:internal/timers:485:21)
2025-10-21 20:59:40.848 [error] onWillSaveTextDocument-listener from extension 'redhat.java' threw ERROR
2025-10-21 20:59:40.848 [error] Error: timeout
    at Timeout._onTimeout (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:142:105371)
    at listOnTimeout (node:internal/timers:588:17)
    at processTimers (node:internal/timers:523:7)
2025-10-21 20:59:40.849 [warning] vscjava.vscode-lombok - Code actions of kind 'source.fixAll' requested but returned code action is of kind 'refactor'. Code action will be dropped. Please check 'CodeActionContext.only' to only return requested code actions.
2025-10-21 21:12:58.085 [info] ExtensionService#_doActivateExtension naco-siren.gradle-language, startup: false, activationEvent: 'onLanguage:gradle'
2025-10-21 21:14:22.624 [error] [redhat.java] provider FAILED
2025-10-21 21:14:22.624 [error] Error: Internal error.
    at /Users/slavavorobev/.vscode/extensions/redhat.java-1.46.0-darwin-arm64/dist/extension.js:2:1078118
    at re (/Users/slavavorobev/.vscode/extensions/redhat.java-1.46.0-darwin-arm64/dist/extension.js:2:1078412)
    at /Users/slavavorobev/.vscode/extensions/redhat.java-1.46.0-darwin-arm64/dist/extension.js:2:1073196
    at Immediate.<anonymous> (/Users/slavavorobev/.vscode/extensions/redhat.java-1.46.0-darwin-arm64/dist/extension.js:2:1073216)
    at processImmediate (node:internal/timers:485:21)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions