#20018 closed defect (fixed)
Start page produces high cpu loads
Reported by: | skyper | Owned by: | Don-vip |
---|---|---|---|
Priority: | normal | Milestone: | 20.11 |
Component: | Core | Version: | latest |
Keywords: | template_report start page cpu performance | Cc: |
Description
What steps will reproduce the problem?
- Start JOSM and watch your system resources
- Do not create a new layer or load a file but just wait some minutes with the Start-up-Page
- Create a new layer
What is the expected result?
While doing nothing with only the Start-up-Page the cpu load should drop
What happens instead?
Only after 3. the cpu load drops
Please provide any additional information below. Attach a screenshot if possible.
Thought there was a ticket already about it, but did not find it.
Relative:URL: ^/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2020-10-31 01:21:14 +0100 (Sat, 31 Oct 2020) Revision:17288 Build-Date:2020-10-31 02:30:50 URL:https://josm.openstreetmap.de/svn/trunk Identification: JOSM/1.5 (17288 en) Linux Debian GNU/Linux 10 (buster) Memory Usage: 220 MB / 768 MB (38 MB allocated, but free) Java version: 11.0.9+11-post-Debian-1deb10u1, Debian, OpenJDK 64-Bit Server VM Desktop environment: GNOME Java package: openjdk-11-jre:amd64-11.0.9+11-1~deb10u1 Java ATK Wrapper package: libatk-wrapper-java:all-0.38.0-1~bpo10+1 Environment variable LANG: en_US.utf8 libcommons-compress-java: libcommons-compress-java:all-1.18-2+deb10u1 libcommons-logging-java: libcommons-logging-java:all-1.2-2 fonts-noto: fonts-noto:all-20181227-1 liboauth-signpost-java: liboauth-signpost-java:all-1.2.1.2-2 VM arguments: [--add-modules=java.scripting,java.sql, -Djosm.restart=true, -Djosm.dir.name=JOSM-latest, -Djava.net.useSystemProxies=true] Dataset consistency test: No problems found
Attachments (0)
Change History (13)
follow-up: 2 comment:1 by , 5 years ago
comment:2 by , 5 years ago
Replying to GerdP:
On Windows I see 1% cpu when doing nothing, maybe 5% when moving the mouse quickly. Quite normal.
Similar for me on windows.
follow-up: 4 comment:3 by , 5 years ago
Keywords: | linux atk added |
---|---|
Owner: | changed from | to
Status: | new → needinfo |
Can you please try to uninstall my immediate #1 suspect?
comment:4 by , 5 years ago
Replying to Don-vip:
Can you please try to uninstall my immediate #1 suspect?
Purging libatk-wrapper-java
does not make any differences.
Maybe it is a problem together with XWayland, as its numbers drop even more dramatically once the new layer is created.
java is still around 10% without any action and drops to under 1% when the new layer is created on my system. It even works if you delete the new layer again, the numbers rise again.
This is nothing new, as I noticed the issue quite some time, now.
comment:5 by , 5 years ago
Owner: | changed from | to
---|---|
Status: | needinfo → new |
comment:6 by , 5 years ago
On my Linux machine I see 5 to 10% showing the start page and 0.3% after creating a layer.
Relative:URL: ^/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2020-10-31 01:21:14 +0100 (Sat, 31 Oct 2020) Revision:17288 Build-Date:2020-10-31 02:30:50 URL:https://josm.openstreetmap.de/svn/trunk Identification: JOSM/1.5 (17288 en) Linux Ubuntu 20.10 Memory Usage: 230 MB / 1980 MB (98 MB allocated, but free) Java version: 14.0.2+12-Ubuntu-1, Private Build, OpenJDK 64-Bit Server VM Look and Feel: javax.swing.plaf.metal.MetalLookAndFeel Screen: :0.0 3840x2160 (scaling 1.0x1.0) Maximum Screen Size: 3840x2160 Best cursor sizes: 16x16 -> 16x16, 32x32 -> 32x32 Desktop environment: ubuntu:GNOME Java ATK Wrapper package: libatk-wrapper-java:all-0.38.0-1 Environment variable LANG: de_CH.UTF-8 libcommons-compress-java: libcommons-compress-java:all-1.20-1 libcommons-logging-java: libcommons-logging-java:all-1.2-2 fonts-noto: fonts-noto:- VM arguments: [--add-modules=java.scripting,java.sql, -Djosm.restart=true, -Djosm.dir.name=JOSM-latest, -Djava.net.useSystemProxies=true] Dataset consistency test: No problems found
comment:7 by , 5 years ago
Keywords: | atk removed |
---|
follow-up: 10 comment:8 by , 5 years ago
Keywords: | performance added; linux removed |
---|---|
Milestone: | → 20.10 |
Owner: | changed from | to
Status: | new → assigned |
It's the 50ms timer used for easter egg animation. I didn't notice repaint was so costly.
follow-up: 11 comment:10 by , 5 years ago
Thanks a lot. I can start JOSM in background and read the news when I switch to it.
Replying to Don-vip:
It's the 50ms timer used for easter egg animation. I didn't notice repaint was so costly.
That explains why XWayland had even higher numbers.
One more reason to have an option to disable the easter egg animation. Was quite some discussion about it as far as I remember.
comment:11 by , 5 years ago
comment:12 by , 5 years ago
I am completely sorry. I never intended to open up old sores or start the discussion again.
On Windows I see 1% cpu when doing nothing, maybe 5% when moving the mouse quickly. Quite normal.