Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hey everyone. I"ve been working on a large application suite in vb.net for some time now. Recently, i discovered that as the app is used, CPU usage steadily increases. Even when the application is in an idle state, awaiting user interaction, the CPU usage stay high. As you continue to use the app, CPU usage increases. I used a tool to analyze the CPU usage and it turns out that the main application thread is using the CPU cycles. But... none of my code is running... it's some sort of .net background work eating up all the CPU. THe application is not in an infinite loop, because you are able to use the app normally... it's just slow. If it was stuck in a block of code, it wouldn't respond.

 

Here's a weird phenomenon... after using the app for a while and CPU usage gets high (> 80%), things get weird. At this point, if I make the app work (legitimately use cycles), the overall system CPU usage DROPS! Then, once the application is done working and returns to an idle state, the CPU usages RISES back up to 99%! THis proves to me that it's some sort of background .NET crap that's eating up CPU time! Has anyone had problems with this?!? Is it the garbage collector? How can i stop it!?!

 

Thanks alot

 

Bill

  • *Experts*
Posted
Yes, its probably the garbage collector. You cant stop it, its a core part of the framework, hence the name managed for .net apps :) because it manages the memory the program uses. But as the computer needs the resources taken by gc gc should be releasing the memory and resources.
Posted
Yeah, but I can't imagine that all 'net apps do this. Is .NET not suited for large-scale apps? I've spent 3 months on this project... but the beta is due in a week, so it's undergoing heavy testing right now -- which is how i discovered this. There must be a solution!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...