IDEA takes a long time to start a service

Answered

This happens suddenly. I was running/debugging some services (Spring Boot apps ) as usual and suddenly when I restarted a service again it took a long time (up to several minutes) to finish when it took only 10-20 seconds usually. I've tried to start with `java -jar <service>` and it works fine. During the starting I could see an error message at the bottom of the window like this "10:46 AM order-server: Failed to retrieve application JMX service URL" so I checked and found this issue. I tried to apply the VM options suggested by Shervin Asgari but still the same. This not only happens for just one service but other services too so it's causing a headache for me. The about info of the IDEA I'm running is as follows:

IntelliJ IDEA 2019.2 (Ultimate Edition)
Build #IU-192.5728.98, built on July 23, 2019
Licensed to Ivan Huang
Subscription is active until April 30, 2020
Runtime version: 11.0.3+12-b304.10 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 5.2.9-200.fc30.x86_64
GC: ParNew, ConcurrentMarkSweep
Memory: 1966M
Cores: 4
Registry: git.explicit.commit.renames.prohibit.multiple.calls=false
Non-Bundled Plugins: jp.co.future.ideausqlfmt, mobi.hsz.idea.gitignore, org.asciidoctor.intellij.asciidoc, cn.wuzhizhan.plugin.mybatis, Pythonid

 

0
3 comments

Ivan, 

First of all, please try to update IntelliJ IDEA to 2019.2.2 version. If that does not help, please perform the following:

1. Take a screenshot of the Run/Debug configuration, so we could be sure that VM options are defined correctly,

2. Try to disable Punto Switcher in case it is installed. We had a similar problem.

3. Clarify the JVM version is used to run the application since it could be related to some bug in JVM.

0
Avatar
Permanently deleted user

I've put the details here: https://stackoverflow.com/questions/58297933/java-application-starting-up-very-slowly-on-jdk1-8-on-fedora-30. It's possibly JVM-related instead of IDEA-specific.

0
Avatar
Permanently deleted user

This is caused by a prolonged time to retrieve local hostname. See details here.

0

Please sign in to leave a comment.