GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — JVM application pauses when using asprof · Issue #1406 · async-profiler/async-profiler

JVM application pauses when using asprof #1406

New issue
Copy link
New issue
Copy link
Closed
#1769
Closed
JVM application pauses when using asprof#1406
#1769
Copy link
Assignees
Baraa-Hasheesh
Labels
bug

Description

@Baraa-Hasheesh
Baraa-Hasheesh
opened on Jul 23, 2025
Issue body actions

Describe the bug

When async-profiler is attached to the JVM process it will prevent any safe point from happening until it's fully loaded.

This loading includes the parsing of shared objects & unwind tables.

This means it's theoretically possible for large applications that have hundreds of shared objects to not see any safe points for a long time

In a matter of fact this can already be seen on macOS by purging the cache via sudo purge& running asprof on a JVM process

While testing I found it's possible to cause the safe points to not happen for more than ~2 seconds!! on macOS X86 (can be worse when having more shared objects)

For some of the logs I collected please refer to:
https://github.com/Baraa-Hasheesh/async-profiler/tree/debug-cold-start/logs

This in turn might cause the entire application to freeze until the async-profiler is fully loaded (waiting for the next safe point to happen which async-profiler prevents).

Expected vs. actual behavior

async-profiler shouldn't freeze the java application it's trying to profile

Reproduction Steps

can be more easily observed on macOS (still relevant for Linux) as it loads more shared objects by default compared to Linux

sudo purge
make test TESTS=AllocTests.alloc

Additional Information/Context

No response

Async-profiler version

latest

Environment details

No response

Activity

  1. Baraa-Hasheesh
    added
    bug
    on Jul 23, 2025
  2. Baraa-Hasheesh
    self-assigned this
    on Jul 30, 2025
  3. apangin
    closed this as completedin #1769on Jul 13, 2026
  4. dongjoon-hyun
    added a commit that references this issue on Jul 28, 2026

    [SPARK-58375][BUILD] Upgrade `ap-loader` to 4.5-13

    37ca0a9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @Baraa-Hasheesh
    Baraa-Hasheesh

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.