question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

High CPU usage from mono-sgen building windows without asar on OS X

See original GitHub issue

Hi Today I upgraded to the 3.9.0. I’m very excited about the ability to sign windows builds on osx, but there appears to be a critical bug.

Building windows binaries now takes significantly longer.

The culprit here is mono-sgen.

The process performs the various actions that it must for about thirty seconds, and then mono-sgen kicks in at 99% CPU usage for about ten minutes.

If you could take a look at soon that would be much appreciated.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:24 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
develarcommented, Apr 23, 2016

@ArekSredzki If you disabled ASAR and mono hangs — it is well known issue. Please see https://github.com/electron/windows-installer/issues/55

I am sorry, but unlikely it will be fixed soon. It is a Squirrel.windows bug and Squirrel.windows written in C# and requires windows. So, it is very hard to fix it (requires a lot of time to learn new unpleasant platform and it is a *** windows). Please file issue to Squirrel.windows.

Why you have to disable ASAR? I can fix some issues in this area.

1reaction
develarcommented, Apr 24, 2016

Why am I still experiencing the slow compression?

Because fix was not complete. nuget part was only fixed (it seems, the same zip issue — because nuget uses the same/simular “broken” (?) zip lib).

And why replace it rather than fix it?

Because nuget is a junk. Squirrel.Windows will be also fixed in this way — we will implement zip on our side in a cross-platform way and pass result to Squirrel.Windows (i.e. I am not going to fix it properly on Squirrel.Windows side because it is not possible — Squirrel.Windows written in C#).

Read more comments on GitHub >

github_iconTop Results From Across the Web

mono-sgen64 causes 100% CPU when connecting to build host
Open Visual Studio for Windows. - Tools -> iOS -> Pair to Mac - Connect to your Mac. On the MAC: - Open...
Read more >
High CPU usage kernel_task with 2 monitors - Apple Developer
The following should fix the high kernel_task CPU usage: Disconnect both external monitors. Shut down the Mac. Plug in the MagSafe power adapter...
Read more >
CPU usage is so high with Windows 10 1909 Build 18363.693
Hello,. I have a laptop Dell with. Core I5 3337U 1.8GHz. Ram 8GB. Samsung EVO 860 SSD 500GB. OS Windows 10 64-bit (1909...
Read more >
Very high CPU and memory usage of mono-sgen on Os X
Working with a fairly large solution (~180 projects), Rider is using 1.74GB Memory, but mono-sgen and mono-sgen64 are using a lot of both...
Read more >
How to Fix High CPU Usage - Intel
These Windows processes are designed to use very little of your processing power or memory under ordinary circumstances — you'll often see them...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found