-
Notifications
You must be signed in to change notification settings - Fork 220
Description
When I'm running VSCode with the julia-vscode extension, I often notice that my computer gets sluggish and when I check top I find a julia process consuming just over 10GB of RAM. I can quit the process, but it keeps coming back. When I quit VSCode, the process remains, which is bad, but when I quit the process again after also quitting VSCode it stays gone and memory consumption returns to normal for good.
Here's a play-by-play recap with pastes from `top`
Status quo, my computer is sluggish and the fan is high:
Processes: 242 total, 4 running, 238 sleeping, 1217 threads 10:10:48
Load Avg: 2.80, 2.62, 3.05 CPU usage: 29.8% user, 8.41% sys, 62.50% idle
SharedLibs: 210M resident, 44M data, 14M linkedit.
MemRegions: 58655 total, 2272M resident, 29M private, 288M shared.
PhysMem: 8173M used (2229M wired), 19M unused.
VM: 8702G vsize, 3099M framework vsize, 359688426(8308) swapins, 372107099(0) sw
Networks: packets: 10975460/10G in, 4954839/1124M out.
Disks: 38459228/1799G read, 17974101/1534G written.
PID COMMAND %CPU TIME #TH #WQ #PORT MEM PURG CMPRS PGRP
37445 julia 98.0 08:05.33 4/1 0 25 11G 0B 9188M+ 27993
0 kernel_task 19.2 06:54:12 250/4 0 0 290M- 0B 0B 0
41735 Activity Mon 9.6 45:09.12 6 4 1010+ 75M+ 0B 33M- 41735
156 WindowServer 4.6 11:46:44 17/1 8 5726+ 614M+ 2688K 147M- 156
37712 top 3.2 00:00.61 1/1 0 30 2636K 0B 0B 37712
464 sharingd 2.9 06:27.63 8 4 291+ 19M+ 0B 13M- 464
37435 sysmond 2.5 00:03.89 3 2 22 596K- 0B 256K- 37435
26340 Terminal 2.4 01:18.67 8 2 405- 36M- 0B- 16M- 26340
33224 cloudd 1.8 03:30.29 13 7 254- 15M+ 0B 6024K- 33224
1 launchd 1.1 24:51.72 4 3 2106 17M- 0B 6868K- 1
15847 mbuseragent 1.0 00:01.09 5 4 78+ 14M+ 0B 13M- 15847
112 mds 0.6 11:01.23 7 4 324 19M 0B 11M- 112
86 logd 0.4 13:54.82 5 4 830 20M- 0B 16M- 86
125 launchservic 0.3 20:02.08 6 5 324 4216K 0B 832K 125
Seconds after quitting the Julia process
Processes: 276 total, 3 running, 273 sleeping, 1242 threads 10:11:27
Load Avg: 3.08, 2.71, 3.06 CPU usage: 25.48% user, 1.68% sys, 72.83% idle
SharedLibs: 200M resident, 43M data, 13M linkedit.
MemRegions: 60157 total, 346M resident, 49M private, 308M shared.
PhysMem: 4422M used (2215M wired), 3770M unused.
VM: 9785G vsize, 3100M framework vsize, 359863047(0) swapins, 372390044(0) swapo
Networks: packets: 10975699/10G in, 4955041/1124M out.
Disks: 38477721/1800G read, 17981132/1535G written.
PID COMMAND %CPU TIME #TH #WQ #PORT MEM PURG CMPRS PGRP
37761 julia 99.2 00:06.18 4/1 0 25 319M+ 0B 0B 27993
37712 top 2.9 00:02.62 1/1 0 65 2812K 0B 516K 37712
0 kernel_task 1.0 06:54:24 250/4 0 0 313M 0B 0B 0
156 WindowServer 0.9 11:46:49 15 6 5563 693M 2816K+ 158M- 156
26340 Terminal 0.4 01:19.64 11 5 412 42M 9308K 16M 26340
28008 Code Helper 0.2 00:45.50 22 1 175 53M+ 0B 50M- 27993
433 ControlCente 0.2 41:06.08 5 1 650 68M 48K 53M 433
93392 Numbers 0.1 13:08.79 8 4 1352+ 432M+ 0B 413M- 93392
233 contextstore 0.1 04:25.75 5 4 133+ 4192K+ 384K 1428K 233
54668 airportd 0.1 23:16.93 10 8 873 14M- 0B 12M- 54668
139 distnoted 0.0 03:03.68 2 1 156 764K 0B 288K 139
26816 TextEdit 0.0 00:38.13 6 4 577+ 199M+ 0B 185M- 26816
422 distnoted 0.0 08:40.04 2 1 206 3380K 0B 1488K 422
A minute after quitting the Julia process
Processes: 274 total, 3 running, 271 sleeping, 1165 threads 10:13:23
Load Avg: 2.64, 2.69, 3.01 CPU usage: 5.25% user, 34.12% sys, 60.62% idle
SharedLibs: 202M resident, 43M data, 13M linkedit.
MemRegions: 60072 total, 346M resident, 48M private, 308M shared.
PhysMem: 8174M used (2183M wired), 16M unused.
VM: 9727G vsize, 3100M framework vsize, 360607075(19499) swapins, 373309977(0) s
Networks: packets: 10975935/10G in, 4955109/1124M out.
Disks: 38496634/1803G read, 18000173/1539G written.
PID COMMAND %CPU TIME #TH #WQ #PORT MEM PURG CMPRS PGRP
37761 julia 77.2 01:51.28 4/1 0 25 6957M 0B 3009M+ 27993
0 kernel_task 72.3 06:55:08 250/5 0 0 317M- 0B 0B 0
37712 top 3.8 00:07.98 1/1 0 63 2816K 0B 568K- 37712
156 WindowServer 1.1 11:46:58 14 5 5568 686M- 2688K 168M+ 156
26340 Terminal 0.7 01:21.19 8 2 404 42M+ 3088K 23M+ 26340
433 ControlCente 0.2 41:06.50 6 2 653 68M 48K 52M+ 433
54668 airportd 0.1 23:17.02 9 7 872 14M+ 0B 12M- 54668
96 configd 0.1 05:21.90 7 1 446 3640K 0B 2360K- 96
86 logd 0.1 13:55.15 4 3 926 20M- 0B 24M+ 86
328 locationd 0.1 15:41.70 5 2 184+ 7284K+ 0B 5768K- 328
75217 bluetoothd 0.0 14:21.21 9 5 231 5728K 192K 2244K+ 75217
449 AXVisualSupp 0.0 31:58.52 5 1 276 8872K 0B 7088K+ 449
37679 Siri 0.0 00:00.34 3 1 162 3708K 0B 2508K- 37679
257 symptomsd 0.0 05:58.28 3 2 134+ 4552K+ 0B 4228K- 25
Seconds after quitting VSCode
Processes: 285 total, 3 running, 282 sleeping, 1130 threads 10:13:57
Load Avg: 4.03, 3.01, 3.11 CPU usage: 11.83% user, 33.57% sys, 54.58% idle
SharedLibs: 202M resident, 44M data, 13M linkedit.
MemRegions: 44742 total, 352M resident, 56M private, 320M shared.
PhysMem: 8170M used (2172M wired), 21M unused.
VM: 9703G vsize, 3100M framework vsize, 361224423(12459) swapins, 373836204(4295
Networks: packets: 10975987/10G in, 4955124/1124M out.
Disks: 38512231/1805G read, 18010354/1541G written.
PID COMMAND %CPU TIME #TH #WQ #PORT MEM PURG CMPRS PGRP
37761 julia 78.2 02:17.21 4/1 0 25 8215M 0B 5438M- 27993
0 kernel_task 51.8 06:55:32 250/5 0 0 262M- 0B 0B 0
26340 Terminal 8.4 01:22.20 10 4 409+ 45M+ 6176K+ 17M- 26340
156 WindowServer 6.1 11:47:03 16 7 5543+ 652M- 2688K- 144M- 156
37712 top 3.8 00:09.77 1/1 0 85 2848K 0B 480K 37712
157 tccd 2.6 17:45.01 4 3 61+ 3552K+ 64K+ 1232K- 157
160 loginwindow 2.6 13:31.37 4 2 794 46M 0B 23M- 160
162 trustd 2.1 17:11.55 3 2 99 5036K+ 192K+ 2644K- 162
594 corespotligh 2.0 07:34.85 6 4/1 420+ 13M+ 0B 9640K- 594
125 launchservic 1.9 20:02.84 7 6 347+ 4276K+ 0B 852K- 125
517 callservices 0.7 02:03.48 4 2 395+ 10M+ 0B 7196K- 517
161 runningboard 0.7 12:51.20 7 6 273+ 4780K- 0B 1112K- 161
1 launchd 0.7 24:52.63 4 3 2157+ 17M+ 0B 9596K- 1
449 AXVisualSupp 0.7 31:58.81 5 1 276 8880K 0B 6584K- 449
Seconds after quitting Julia for a second time (this time with VSCode still closed and presumably unable to respawn it). After quitting Julia for the second time my computer's fan immediately spun down. And aggregate analytics (memory, cpu & swap) dropped
Processes: 268 total, 2 running, 266 sleeping, 1032 threads 10:14:33
Load Avg: 3.44, 2.99, 3.10 CPU usage: 1.92% user, 3.60% sys, 94.47% idle
SharedLibs: 202M resident, 44M data, 13M linkedit.
MemRegions: 43854 total, 326M resident, 50M private, 320M shared.
PhysMem: 3484M used (2147M wired), 4707M unused.
VM: 9148G vsize, 3100M framework vsize, 361682705(124) swapins, 374391669(0) swa
Networks: packets: 10976032/10G in, 4955136/1124M out.
Disks: 38525243/1807G read, 18022328/1543G written.
PID COMMAND %CPU TIME #TH #WQ #PORT MEM PURG CMPRS PGRP
156 WindowServer 6.1 11:47:09 17 7 5540+ 667M- 5376K+ 157M- 156
75216 com.apple.Ap 4.0 37:23.16 3 2 183 1140K 0B 660K 75216
37712 top 3.6 00:11.55 1/1 0 69 2852K 0B 464K 37712
0 kernel_task 3.5 06:55:53 250/4 0 0 245M- 0B 0B 0
26340 Terminal 0.9 01:23.00 8 2 406 42M 3088K 23M- 26340
433 ControlCente 0.6 41:06.79 6 2 653 68M 48K 52M- 433
54668 airportd 0.2 23:17.08 9 7 871 14M 0B 12M- 54668
139 distnoted 0.2 03:03.73 2 1 160 764K 0B 280K 139
449 AXVisualSupp 0.2 31:59.18 5 1 276 8880K 0B 7012K 449
422 distnoted 0.1 08:40.23 2 1 202 3332K 0B 1624K 422
150 corebrightne 0.1 03:28.09 7 6 209 2204K+ 0B 1108K 150
93477 com.apple.We 0.1 00:08.05 4 1 84 8884K 0B 8172K- 93477
15848 storagekitd 0.1 02:18.40 8 4 79 2932K 0B 2368K- 15848
411 com.apple.Am 0.1 01:18.15 3 1 71 1868K- 0B 122