Comments (11)
I found an obvious hint while watching the CPU utilization during startup:
with OpenJDK all 4 cores are nearly maxed out continuously the entire time until the IDE is started.
with JetBrains after the splash screen when the empty IDE window appears and the small progress dialog in the middle appears all cores except one drop to zero and only one thread keeps running at 100%.
The total time burnt by the the java process during startup (as reported by htop in the TIME+ column) is almost identical (52 seconds for OpenJDK vs 56 seconds JetBrains) despite JetBrains running more than twice as long until it is finished.
from jetbrainsruntime.
@prof7bit How did you measure this? It would be very helpful if you provide some specific scenarios to reproduce the performance problem.
from jetbrainsruntime.
- Download and unzip PyCharm (or possibly any other IDE that comes bundled with this runtime)
- start it and note the extreme slowness (the time it takes to start, the sluggish UI, etc)
- configure it to use ANY other JRE you have installed on your system (in my case I tried it with 3 different ones)
- start it again and note the extreme difference. It will become immediately obvious.
I observed this on two different PCs, one has Kubuntu 20.4 and one that has Kubuntu 20.10.
from jetbrainsruntime.
We will take a look at Kubuntu, thanks. It looks like a temporary problem. To identify it faster, could you please take a CPU snapshot and send it to us? https://intellij-support.jetbrains.com/hc/en-us/articles/207241235-Reporting-performance-problems
from jetbrainsruntime.
I just took the time it takes to start up to a defined state. The IDE has two editor windows open side by side and a terminal in the bottom. I took the time it takes from starting the IDE until the prompt appears in the terminal:
around 14 seconds with Ubuntu OpenJDK and 42 seconds with JetBrains:
PyCharm 2020.3.3 (Community Edition)
Build #PC-203.7148.72, built on January 27, 2021
Runtime version: 15+36-Ubuntu-1 amd64
VM: OpenJDK 64-Bit Server VM by Private Build
14:43
13:89
13:96
15:23
PyCharm 2020.3.3 (Community Edition)
Build #PC-203.7148.72, built on January 27, 2021
Runtime version: 11.0.9.1+11-b1145.77 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
42:02
42:55
41:17
42:28
I'm going to post the CPU snapshot as you suggested in a few minutes...
Edit: I can't find this option in PyCharm :-(
from jetbrainsruntime.
Sorry, I can't find anything about "CPU snapshot" anywhere in PyCharm. All I can see is a zip with tons of logs ("collect diagnostic data"), is that what you mean?
from jetbrainsruntime.
It should be in your home dir.
Here is a step by step instruction: https://intellij-support.jetbrains.com/hc/en-us/articles/207241235-Reporting-performance-problems#CPU_Snapshot_2019_2
from jetbrainsruntime.
This is funny: The screenshot you provided above is nowhere to be found on the link you gave, even a google search for the words "community editions do not bundle performance testing plugin" will give me a link to this website but when I click on it it does not show the above text anywhere that mentions I need a plugin.
I'm going to install the plugin and try to see if I can get these snapshots.
from jetbrainsruntime.
Upload id: 2021_02_15_LpjLx36AsBRjTtue
(files: fast-with-openjdk-11-PC-203.7148.72_bernd_15.02.2021_10.55.57.zip,
slow-with-jetbrains-PC-203.7148.72_bernd_15.02.2021_10.59.46.zip)
Now I am sitting on my work PC in the office and my startup times are:
23:44 with JetBrains
08:56 with Ubuntu OpenJDK-11
I followed the "profile slow startup" instructions and generated two snapshots, one with the original JVM and one with Ubuntu OpenJDK.
from jetbrainsruntime.
It happens on two Kubuntu machines (even when running an Openbox session without any KDE at all)
It does NOT happen on a Windows 7 VM
It does NOT happen on a Lubuntu 20.4 VM
I removed ~/.local/share/JetBrains and ~/.config/Jetbrains and downloaded and uzipped a fresh copy of pyCharm and it STILL happens on my Kubuntu machine.
Same effect with a fresh install if IntelliJ IDEA and an empty project (this PC has never seen IDEA before), 16 seconds with JetBrains runtime and 7 seconds with OpenJDK.
Could you already have a look at the snapshot files what is causing this? Is there a tool available so I can look at it too?
from jetbrainsruntime.
@prof7bit do you still experience this issue (with the latest versions of our products)?
from jetbrainsruntime.
Related Issues (20)
- CAccessible registers property change listeners only with instances of java.awt.Component HOT 3
- Build runtime without X11 HOT 1
- Dramatic speed difference of Native Calls via JNA between various JDK, why? HOT 4
- 'jlink', 'jpackage' are missing for packaging a Compose Desktop app HOT 1
- [JBR11 + dcevm] when an agent retransform the start method of java.lang.Thread, the jvm crash HOT 8
- InternalError when using mockito 5.3 with -XX:+AllowEnhancedClassRedefinition HOT 5
- Support JDK 21? HOT 9
- After migrating from travajdk to jbr17 redefineClasses fails with ObjectCollectedException HOT 21
- Descriptions on https://github.com/JetBrains/JetBrainsRuntime/releases are cut off HOT 1
- JbrResolver resolved jbr 21 to vanilla jbr instead of jcef jbr HOT 1
- Window corruption / magenta regions with Java OpenGL rendering enabled HOT 2
- where is the src.zip HOT 5
- This file is not the one used while building the shared archive file (modules) HOT 8
- Nigthtly builds HOT 1
- How is the full screen title bar hidden in the MacOS system implemented? It seems to be related to runtime, please see the picture. This issue has been bothering me for a long time HOT 1
- Crash on wayland HOT 3
- [solved] waybar does not display icon in wayland mode
- main branch build error on Macos HOT 2
- `jbrsdk-17.0.10-osx-aarch64-b1087.23` seems to be corrupt HOT 3
- JFXPanel in JavaFx into the Content of the ToolWindow HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jetbrainsruntime.