-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
I am trying to profile my Java Application on macOS but I receive errors at profiler startup.
- macOS: 15.4.1
- Docker Desktop: 28.1.1
$ uniprof record -o server-profile.json -- java -Xms128m -XX:+UseNUMA -XX:+UseZGC -XX:+ExitOnOutOfMemoryError -Dfile.encoding=UTF-8 -Dlog4j.configurationFile=/Users/aretter/code/evolvedbinary/elemental-7.x.x/exist-distribution/target/elemental-7.4.0-SNAPSHOT-dir/etc/log4j2.xml -Dexist.home=/Users/aretter/code/evolvedbinary/elemental-7.x.x/exist-distribution/target/elemental-7.4.0-SNAPSHOT-dir -Dexist.configurationFile=/Users/aretter/code/evolvedbinary/elemental-7.x.x/exist-distribution/target/elemental-7.4.0-SNAPSHOT-dir/etc/conf.xml -Djetty.home=/Users/aretter/code/evolvedbinary/elemental-7.x.x/exist-distribution/target/elemental-7.4.0-SNAPSHOT-dir -Dexist.jetty.config=/Users/aretter/code/evolvedbinary/elemental-7.x.x/exist-distribution/target/elemental-7.4.0-SNAPSHOT-dir/etc/jetty/standard.enabled-jetty-configs -classpath /Users/aretter/code/evolvedbinary/elemental-7.x.x/exist-distribution/target/elemental-7.4.0-SNAPSHOT-dir/etc:/Users/aretter/code/evolvedbinary/elemental-7.x.x/exist-distribution/target/elemental-7.4.0-SNAPSHOT-dir/lib/appassembler-booter-2.1.0.jar:/Users/aretter/code/evolvedbinary/elemental-7.x.x/exist-distribution/target/elemental-7.4.0-SNAPSHOT-dir/lib/appassembler-model-2.1.0.jar:/Users/aretter/code/evolvedbinary/elemental-7.x.x/exist-distribution/target/elemental-7.4.0-SNAPSHOT-dir/lib/plexus-utils-3.2.0.jar:/Users/aretter/code/evolvedbinary/elemental-7.x.x/exist-distribution/target/elemental-7.4.0-SNAPSHOT-dir/lib/stax-api-1.0.1.jar:/Users/aretter/code/evolvedbinary/elemental-7.x.x/exist-distribution/target/elemental-7.4.0-SNAPSHOT-dir/lib/stax-1.1.1-dev.jar -Dapp.name=startup -Dapp.pid=34606 -Dapp.repo=/Users/aretter/code/evolvedbinary/elemental-7.x.x/exist-distribution/target/elemental-7.4.0-SNAPSHOT-dir/lib -Dapp.home=/Users/aretter/code/evolvedbinary/elemental-7.x.x/exist-distribution/target/elemental-7.4.0-SNAPSHOT-dir -Dbasedir=/Users/aretter/code/evolvedbinary/elemental-7.x.x/exist-distribution/target/elemental-7.4.0-SNAPSHOT-dir org.codehaus.mojo.appassembler.booter.AppassemblerBooter
\✓ Platform detected: jvm | Using profiler: async-profiler | Mode: container
→ Starting profile (999 Hz sampling rate)
⠸ Profiling in progress...
Profiling will continue until the profiled program exits.
Press Ctrl+C once to terminate the profiled program and twice to terminate uniprof
Container output:
✓ openjdk version "24.0.2" 2025-07-15
✓ Environment set up complete! | Java: 24.0.2
Profiling started
✗ Container errors:
/usr/local/bin/bootstrap.sh: line 45: /proc/sys/kernel/perf_event_paranoid: Read-only file system
/usr/local/bin/bootstrap.sh: line 45: /proc/sys/kernel/perf_event_paranoid: Read-only file system
/usr/local/bin/bootstrap.sh: line 46: /proc/sys/kernel/perf_event_mlock_kb: Read-only file system
/usr/local/bin/bootstrap.sh: line 47: /proc/sys/kernel/kptr_restrict: Read-only file system
✗ Failed to run profiler in container
Profiler exited with code 1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels