halcyon / asdf-java

A Java plugin for asdf-vm.
MIT License
466 stars 85 forks source link

Painfully slow while running local / global java #234

Open pinkfloydsito opened 3 weeks ago

pinkfloydsito commented 3 weeks ago

Hi, I am using mac M1 and recently tried to use the java plugin. I installed java 11.

added this to the fish config

set -gx PATH $HOME/.asdf/shims $PATH

source /opt/homebrew/opt/asdf/libexec/asdf.fish

however running java is painfully slow. As you can see below, it takes 42 seconds to just run java -version. Does someone know what am I missing in my config?

openjdk version "11.0.24" 2024-07-16
OpenJDK Runtime Environment Temurin-11.0.24+8 (build 11.0.24+8)
OpenJDK 64-Bit Server VM Temurin-11.0.24+8 (build 11.0.24+8, mixed mode)

________________________________________________________
Executed in   42.29 secs      fish           external
   usr time   66.36 millis  496.00 micros   65.86 millis
   sys time   53.92 millis  700.00 micros   53.23 millis