Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High CPU usage #3917

Open
dudekgrzegorz opened this issue Jan 15, 2025 · 1 comment
Open

High CPU usage #3917

dudekgrzegorz opened this issue Jan 15, 2025 · 1 comment

Comments

@dudekgrzegorz
Copy link

dudekgrzegorz commented Jan 15, 2025

Type: Performance Issue

  1. Install the extension (Language Support for Java(TM) by Red Hat)
  2. Open the Trino project: https://github.com/trinodb/trino in VSCode
  3. Extension causes high CPU usage. This may continue indefinetly or stop after 10-15 min. Happens every time after rebooting the PC or invoking Reload Window command.

Extension version: 1.38.0
VS Code version: Code 1.96.2 (fabdb6a30b49f79a7aba0f2ad9df9b399473380f, 2024-12-19T10:22:47.216Z)
OS version: Windows_NT x64 10.0.19045
Modes:
Remote OS version: Linux x64 5.15.0-130-generic
Remote OS version: Linux x64 5.15.0-130-generic

System Info
Item Value
CPUs Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz (8 x 4000)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 31.93GB (21.64GB free)
Process Argv --crash-reporter-id ee416978-e863-45e2-86e7-6e5dc1a7ddfd
Screen Reader no
VM 0%
Item Value
Remote SSH: workstation
OS Linux x64 5.15.0-130-generic
CPUs 13th Gen Intel(R) Core(TM) i9-13900K (32 x 5417)
Memory (System) 62.54GB (58.34GB free)
VM 0%
Item Value
Remote SSH: workstation
OS Linux x64 5.15.0-130-generic
CPUs 13th Gen Intel(R) Core(TM) i9-13900K (32 x 4912)
Memory (System) 62.54GB (58.31GB free)
VM 0%
Workspace Info

|  Remote: SSH: workstation|    Folder (<redacted>): 1262 files|      File types: pkl(1254) json(2) md(2) py(1)
|      Conf files: launch.json(1) settings.json(1)
|      Launch Configs: debugpy
|  Remote: SSH: workstation|    Folder (<redacted>): more than 26032 files|      File types: class(7245) jar(6993) java(4534) xml(51) json(34) lst(24)
|                  pem(22) sql(22) txt(21) properties(19)
|      Conf files: github-actions(8) launch.json(1) settings.json(1)
|                  tasks.json(1) dockerfile(1)
|      Launch Configs: java(2);
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythonnoceb:30805159
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
dvdeprecation:31068756
dwnewjupytercf:31046870
nativerepl1:31139838
pythonrstrctxt:31112756
nativeloc1:31192215
cf971741:31144450
iacca1:31171482
notype1:31157159
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530
6074i472:31201624
dwoutputs:31217127

@snjeza
Copy link
Contributor

snjeza commented Jan 17, 2025

@dudekgrzegorz Could you try the following:

  1. Install VS Code pre-release
$ git clone [email protected]:trinodb/trino.git
$ cd trino
$ ./mvnw clean verify -DskipTests 
  1. add
 "java.jdt.ls.vmargs": "-XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx6G -Xms512m -Xlog:disable",
 "java.gradle.buildServer.enabled": "off",

to your settings.json
3. start VS Code
4. wait for the build to finish
5. reload the VS Code window -it lasts less than 10 seconds on my machine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants