I'm using RHEL7, and I've ran into problems with Pycharm where it takes a *very* long time to start, a few minutes. According to the logs, it's mostly waiting for the JRE/JVM to start. So I tried to focus on getting Java to start faster, and that seems to have issues starting in other situations as well. I tried just getting the version, and even that would take a long time (although not the second time immediately after, when it was in memory):
[wile_e8@wile_e82 wile_e8]$ time java -version
openjdk version "1.8.0_292"
OpenJDK Runtime Environment (build 1.8.0_292-b10)
OpenJDK 64-Bit Server VM (build 25.292-b10, mixed mode)
real 0m41.814s
user 0m0.039s
sys 0m0.020s
[wile_e8@wile_e82 wile_e8]$ time java -version
openjdk version "1.8.0_292"
OpenJDK Runtime Environment (build 1.8.0_292-b10)
OpenJDK 64-Bit Server VM (build 25.292-b10, mixed mode)
real 0m0.076s
user 0m0.047s
sys 0m0.027s
So when it isn't already in memory, it takes 41 seconds for the JRE to start up just to print the version. This is a relatively new computer. Is this just a memory thing, or is there something I could change with the JRE configuration so Java programs start faster?
Asked by wile_e8
(111 rep)
Jul 20, 2021, 07:18 PM
Last activity: Aug 4, 2021, 12:33 PM
Last activity: Aug 4, 2021, 12:33 PM