473,387 Members | 1,283 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

unknwon beheavior-100 percent cpu usage. Please help

has anyone had a issue like this...

My application (VB .net) starts using about 20% from cpu, and slowly
increase the cpu usage to 100%.

I need to know any factor that hs influence on cpu usage...

My app, needs to show rows in a datagrid, and refresh this data throught a
timing, and I use the System.Windows.Forms.Timer object. I suspect threads
are not been deallocated or disposed after I kill them explicity.. Actually I
make use of four paralell threads...

Thanks..
Nov 17 '05 #1
4 1404
-- seen that happen when your program gets caught in a loop that it never
exits -- put some breakpoints in there or messageboxes and debug.

"hmedinapy" wrote:
has anyone had a issue like this...

My application (VB .net) starts using about 20% from cpu, and slowly
increase the cpu usage to 100%.

I need to know any factor that hs influence on cpu usage...

My app, needs to show rows in a datagrid, and refresh this data throught a
timing, and I use the System.Windows.Forms.Timer object. I suspect threads
are not been deallocated or disposed after I kill them explicity.. Actually I
make use of four paralell threads...

Thanks..

Nov 17 '05 #2

hmedinapy a écrit :
has anyone had a issue like this...

My application (VB .net) starts using about 20% from cpu, and slowly
increase the cpu usage to 100%.

I need to know any factor that hs influence on cpu usage...

My app, needs to show rows in a datagrid, and refresh this data throught a
timing, and I use the System.Windows.Forms.Timer object. I suspect threads
are not been deallocated or disposed after I kill them explicity.. Actually I
make use of four paralell threads...


When you get that behavior :
- Use Process Explorer (from www.sysinternals.com) to check wich thread
is consuming CPU time.
- Break into the debugger, swith to the faulty thread and look what it
is doing.

Arnaud
MVP - VC

Nov 17 '05 #3
"ad******@club-internet.fr" wrote:

hmedinapy a écrit :
has anyone had a issue like this...

My application (VB .net) starts using about 20% from cpu, and slowly
increase the cpu usage to 100%.

I need to know any factor that hs influence on cpu usage...

My app, needs to show rows in a datagrid, and refresh this data throught a
timing, and I use the System.Windows.Forms.Timer object. I suspect threads
are not been deallocated or disposed after I kill them explicity.. Actually I
make use of four paralell threads...


When you get that behavior :
- Use Process Explorer (from www.sysinternals.com) to check wich thread
is consuming CPU time.
- Break into the debugger, swith to the faulty thread and look what it
is doing.

Arnaud
MVP - VC

Thank you very much for you reply Anaud.

I followed you steps, and I saw that my app uses about 26 threads,
eventually creates some new threats and then deletes them.

I want to make myself clear.

When I say "Actually I make use of four paralell threads...", I should say
"Actually I make use of four timers... ", and I think the frameworks
implements them in different threats.

Finally, I still have no clue to know where the issue is.

I will preciate your concern. (Please help!!!)

Thanks in advance.
Nov 17 '05 #4
hmedinapy wrote:
"ad******@club-internet.fr" wrote:

hmedinapy a écrit :
has anyone had a issue like this...

My application (VB .net) starts using about 20% from cpu, and slowly
increase the cpu usage to 100%.

I need to know any factor that hs influence on cpu usage...

My app, needs to show rows in a datagrid, and refresh this data
throught a timing, and I use the System.Windows.Forms.Timer object.
I suspect threads are not been deallocated or disposed after I kill
them explicity.. Actually I make use of four paralell threads...


When you get that behavior :
- Use Process Explorer (from www.sysinternals.com) to check wich
thread
is consuming CPU time.
- Break into the debugger, swith to the faulty thread and look what
it
is doing.

Arnaud
MVP - VC

Thank you very much for you reply Anaud.

I followed you steps, and I saw that my app uses about 26 threads,
eventually creates some new threats and then deletes them.

I want to make myself clear.

When I say "Actually I make use of four paralell threads...", I
should say "Actually I make use of four timers... ", and I think the
frameworks
implements them in different threats.

Finally, I still have no clue to know where the issue is.

I will preciate your concern. (Please help!!!)


Which thread consumes 100%CPU? Write down it's PID, then break into a
debugger and look the stack trace of this thread (identified by it's PID)

Arnaud
MVP - VC
Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Nathan | last post by:
I've been working on a new release of my website http://mushroomobserver.org and trying to get all the pages to pass the W3C validator. However, a recent change I made has me stumped. An example...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.