asdf-java icon indicating copy to clipboard operation
asdf-java copied to clipboard

Painfully slow while running local / global java

Open pinkfloydsito opened this issue 4 months ago • 0 comments

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

pinkfloydsito avatar Oct 10 '24 23:10 pinkfloydsito