473,795 Members | 3,231 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

a processes cpu usage

Hello,

why doesn't this code work correctly?

private int GetCpuUsage(Pro cess proc)
{
DateTime time1,time2;
TimeSpan timediff;
double cpu1,cpu2,cpudi ff;

time1 = DateTime.Now;
cpu1 = proc.TotalProce ssorTime.TotalM illiseconds;

Thread.Sleep(10 0);
proc.Refresh();

time2 = DateTime.Now;
cpu2 = proc.TotalProce ssorTime.TotalM illiseconds;

cpudiff = cpu2 - cpu1;
timediff = time2 - time1;

return Convert.ToInt32 (100 / timediff.TotalM illiseconds * cpudiff);
}

I get wrong values...perhap s the Idle process has an average cpu usage of
2950% ????
Nov 16 '05 #1
15 4898
Hi Dirk

what kind of wrong value you get? Your code produces consistently returns 0
as result, which is Ok.
Because resulting value on my machine is less than 1%, so when converted to
Int32 it gives 0.

HTH
Alex

"Dirk Reske" <_F*******@gmx. net> wrote in message
news:OS******** ******@TK2MSFTN GP12.phx.gbl...
Hello,

why doesn't this code work correctly?

private int GetCpuUsage(Pro cess proc)
{
DateTime time1,time2;
TimeSpan timediff;
double cpu1,cpu2,cpudi ff;

time1 = DateTime.Now;
cpu1 = proc.TotalProce ssorTime.TotalM illiseconds;

Thread.Sleep(10 0);
proc.Refresh();

time2 = DateTime.Now;
cpu2 = proc.TotalProce ssorTime.TotalM illiseconds;

cpudiff = cpu2 - cpu1;
timediff = time2 - time1;

return Convert.ToInt32 (100 / timediff.TotalM illiseconds * cpudiff);
}

I get wrong values...perhap s the Idle process has an average cpu usage of
2950% ????

Nov 16 '05 #2
But I get at some processes more than 100%, which is not possible...
Perhaps the Idle process is always nearly 2600%

"AlexS" <sa***********@ SPAMsympaticoPL EASE.ca> schrieb im Newsbeitrag
news:#h******** ******@tk2msftn gp13.phx.gbl...
Hi Dirk

what kind of wrong value you get? Your code produces consistently returns 0 as result, which is Ok.
Because resulting value on my machine is less than 1%, so when converted to Int32 it gives 0.

HTH
Alex

"Dirk Reske" <_F*******@gmx. net> wrote in message
news:OS******** ******@TK2MSFTN GP12.phx.gbl...
Hello,

why doesn't this code work correctly?

private int GetCpuUsage(Pro cess proc)
{
DateTime time1,time2;
TimeSpan timediff;
double cpu1,cpu2,cpudi ff;

time1 = DateTime.Now;
cpu1 = proc.TotalProce ssorTime.TotalM illiseconds;

Thread.Sleep(10 0);
proc.Refresh();

time2 = DateTime.Now;
cpu2 = proc.TotalProce ssorTime.TotalM illiseconds;

cpudiff = cpu2 - cpu1;
timediff = time2 - time1;

return Convert.ToInt32 (100 / timediff.TotalM illiseconds * cpudiff);
}

I get wrong values...perhap s the Idle process has an average cpu usage of 2950% ????


Nov 16 '05 #3
Dirk,

judging by this you use some modification of the code you posted. I would
suggest to look what is different.

When I did some tests I never had more than 2%. Usually (8 out of 10) - 0.

HTH
Alex

"Dirk Reske" <_F*******@gmx. net> wrote in message
news:uW******** ******@tk2msftn gp13.phx.gbl...
But I get at some processes more than 100%, which is not possible...
Perhaps the Idle process is always nearly 2600%

"AlexS" <sa***********@ SPAMsympaticoPL EASE.ca> schrieb im Newsbeitrag
news:#h******** ******@tk2msftn gp13.phx.gbl...
Hi Dirk

what kind of wrong value you get? Your code produces consistently returns
0
as result, which is Ok.
Because resulting value on my machine is less than 1%, so when converted

to
Int32 it gives 0.

HTH
Alex

"Dirk Reske" <_F*******@gmx. net> wrote in message
news:OS******** ******@TK2MSFTN GP12.phx.gbl...
Hello,

why doesn't this code work correctly?

private int GetCpuUsage(Pro cess proc)
{
DateTime time1,time2;
TimeSpan timediff;
double cpu1,cpu2,cpudi ff;

time1 = DateTime.Now;
cpu1 = proc.TotalProce ssorTime.TotalM illiseconds;

Thread.Sleep(10 0);
proc.Refresh();

time2 = DateTime.Now;
cpu2 = proc.TotalProce ssorTime.TotalM illiseconds;

cpudiff = cpu2 - cpu1;
timediff = time2 - time1;

return Convert.ToInt32 (100 / timediff.TotalM illiseconds * cpudiff); }

I get wrong values...perhap s the Idle process has an average cpu usage

of 2950% ????



Nov 16 '05 #4
No, I really use this code:

"AlexS" <sa***********@ SPAMsympaticoPL EASE.ca> schrieb im Newsbeitrag
news:OI******** ******@tk2msftn gp13.phx.gbl...
Dirk,

judging by this you use some modification of the code you posted. I would
suggest to look what is different.

When I did some tests I never had more than 2%. Usually (8 out of 10) - 0.

HTH
Alex

"Dirk Reske" <_F*******@gmx. net> wrote in message
news:uW******** ******@tk2msftn gp13.phx.gbl...
But I get at some processes more than 100%, which is not possible...
Perhaps the Idle process is always nearly 2600%

"AlexS" <sa***********@ SPAMsympaticoPL EASE.ca> schrieb im Newsbeitrag
news:#h******** ******@tk2msftn gp13.phx.gbl...
Hi Dirk

what kind of wrong value you get? Your code produces consistently returns
0
as result, which is Ok.
Because resulting value on my machine is less than 1%, so when
converted to
Int32 it gives 0.

HTH
Alex

"Dirk Reske" <_F*******@gmx. net> wrote in message
news:OS******** ******@TK2MSFTN GP12.phx.gbl...
> Hello,
>
> why doesn't this code work correctly?
>
> private int GetCpuUsage(Pro cess proc)
> {
> DateTime time1,time2;
> TimeSpan timediff;
> double cpu1,cpu2,cpudi ff;
>
> time1 = DateTime.Now;
> cpu1 = proc.TotalProce ssorTime.TotalM illiseconds;
>
> Thread.Sleep(10 0);
> proc.Refresh();
>
> time2 = DateTime.Now;
> cpu2 = proc.TotalProce ssorTime.TotalM illiseconds;
>
> cpudiff = cpu2 - cpu1;
> timediff = time2 - time1;
>
> return Convert.ToInt32 (100 / timediff.TotalM illiseconds * cpudiff); > }
>
> I get wrong values...perhap s the Idle process has an average cpu

usage of
> 2950% ????
>
>



Nov 16 '05 #5
private int GetCpuUsage(Pro cess proc)
{
DateTime time1,time2;
TimeSpan timediff;
double cpu1,cpu2,cpudi ff;

time1 = DateTime.Now;
cpu1 = proc.TotalProce ssorTime.TotalM illiseconds;

Thread.Sleep(10 0);
proc.Refresh();

time2 = DateTime.Now;
cpu2 = proc.TotalProce ssorTime.TotalM illiseconds;

cpudiff = cpu2 - cpu1;
timediff = time2 - time1;

return Convert.ToInt32 (100 / timediff.TotalM illiseconds * cpudiff);
}
"AlexS" <sa***********@ SPAMsympaticoPL EASE.ca> schrieb im Newsbeitrag
news:OI******** ******@tk2msftn gp13.phx.gbl...
Dirk,

judging by this you use some modification of the code you posted. I would
suggest to look what is different.

When I did some tests I never had more than 2%. Usually (8 out of 10) - 0.

HTH
Alex

"Dirk Reske" <_F*******@gmx. net> wrote in message
news:uW******** ******@tk2msftn gp13.phx.gbl...
But I get at some processes more than 100%, which is not possible...
Perhaps the Idle process is always nearly 2600%

"AlexS" <sa***********@ SPAMsympaticoPL EASE.ca> schrieb im Newsbeitrag
news:#h******** ******@tk2msftn gp13.phx.gbl...
Hi Dirk

what kind of wrong value you get? Your code produces consistently returns
0
as result, which is Ok.
Because resulting value on my machine is less than 1%, so when
converted to
Int32 it gives 0.

HTH
Alex

"Dirk Reske" <_F*******@gmx. net> wrote in message
news:OS******** ******@TK2MSFTN GP12.phx.gbl...
> Hello,
>
> why doesn't this code work correctly?
>
> private int GetCpuUsage(Pro cess proc)
> {
> DateTime time1,time2;
> TimeSpan timediff;
> double cpu1,cpu2,cpudi ff;
>
> time1 = DateTime.Now;
> cpu1 = proc.TotalProce ssorTime.TotalM illiseconds;
>
> Thread.Sleep(10 0);
> proc.Refresh();
>
> time2 = DateTime.Now;
> cpu2 = proc.TotalProce ssorTime.TotalM illiseconds;
>
> cpudiff = cpu2 - cpu1;
> timediff = time2 - time1;
>
> return Convert.ToInt32 (100 / timediff.TotalM illiseconds * cpudiff); > }
>
> I get wrong values...perhap s the Idle process has an average cpu

usage of
> 2950% ????
>
>



Nov 16 '05 #6
Dirk,

then take a good look which process you pass in. I tested with current
process. Code is fine with it.
However if you pass reference of process which was obtained long before the
call and was not refreshed since - you might get huge value in cpudiff. Take
a good look at process.Refresh method description.

HTH
Alex

"Dirk Reske" <_F*******@gmx. net> wrote in message
news:Ol******** ******@TK2MSFTN GP09.phx.gbl...
private int GetCpuUsage(Pro cess proc)
{
DateTime time1,time2;
TimeSpan timediff;
double cpu1,cpu2,cpudi ff;

time1 = DateTime.Now;
cpu1 = proc.TotalProce ssorTime.TotalM illiseconds;

Thread.Sleep(10 0);
proc.Refresh();

time2 = DateTime.Now;
cpu2 = proc.TotalProce ssorTime.TotalM illiseconds;

cpudiff = cpu2 - cpu1;
timediff = time2 - time1;

return Convert.ToInt32 (100 / timediff.TotalM illiseconds * cpudiff);
}
"AlexS" <sa***********@ SPAMsympaticoPL EASE.ca> schrieb im Newsbeitrag
news:OI******** ******@tk2msftn gp13.phx.gbl...
Dirk,

judging by this you use some modification of the code you posted. I would
suggest to look what is different.

When I did some tests I never had more than 2%. Usually (8 out of 10) - 0.
HTH
Alex

"Dirk Reske" <_F*******@gmx. net> wrote in message
news:uW******** ******@tk2msftn gp13.phx.gbl...
But I get at some processes more than 100%, which is not possible...
Perhaps the Idle process is always nearly 2600%

"AlexS" <sa***********@ SPAMsympaticoPL EASE.ca> schrieb im Newsbeitrag
news:#h******** ******@tk2msftn gp13.phx.gbl...
> Hi Dirk
>
> what kind of wrong value you get? Your code produces consistently

returns
0
> as result, which is Ok.
> Because resulting value on my machine is less than 1%, so when

converted to
> Int32 it gives 0.
>
> HTH
> Alex
>
> "Dirk Reske" <_F*******@gmx. net> wrote in message
> news:OS******** ******@TK2MSFTN GP12.phx.gbl...
> > Hello,
> >
> > why doesn't this code work correctly?
> >
> > private int GetCpuUsage(Pro cess proc)
> > {
> > DateTime time1,time2;
> > TimeSpan timediff;
> > double cpu1,cpu2,cpudi ff;
> >
> > time1 = DateTime.Now;
> > cpu1 = proc.TotalProce ssorTime.TotalM illiseconds;
> >
> > Thread.Sleep(10 0);
> > proc.Refresh();
> >
> > time2 = DateTime.Now;
> > cpu2 = proc.TotalProce ssorTime.TotalM illiseconds;
> >
> > cpudiff = cpu2 - cpu1;
> > timediff = time2 - time1;
> >
> > return Convert.ToInt32 (100 / timediff.TotalM illiseconds *

cpudiff);
> > }
> >
> > I get wrong values...perhap s the Idle process has an average cpu usage of
> > 2950% ????
> >
> >
>
>



Nov 16 '05 #7
I pass each process...
foreach (Process proc in Process.GetProc esses())
......

when I put a proc.Refresh() at the first line of the GetCpuUsage funktion
all works fine...
some little mistakes..

System: 10%
Idle: 100%

-> this are 110% this can't be??

"AlexS" <sa***********@ SPAMsympaticoPL EASE.ca> schrieb im Newsbeitrag
news:#u******** ******@TK2MSFTN GP12.phx.gbl...
Dirk,

then take a good look which process you pass in. I tested with current
process. Code is fine with it.
However if you pass reference of process which was obtained long before the call and was not refreshed since - you might get huge value in cpudiff. Take a good look at process.Refresh method description.

HTH
Alex

"Dirk Reske" <_F*******@gmx. net> wrote in message
news:Ol******** ******@TK2MSFTN GP09.phx.gbl...
private int GetCpuUsage(Pro cess proc)
{
DateTime time1,time2;
TimeSpan timediff;
double cpu1,cpu2,cpudi ff;

time1 = DateTime.Now;
cpu1 = proc.TotalProce ssorTime.TotalM illiseconds;

Thread.Sleep(10 0);
proc.Refresh();

time2 = DateTime.Now;
cpu2 = proc.TotalProce ssorTime.TotalM illiseconds;

cpudiff = cpu2 - cpu1;
timediff = time2 - time1;

return Convert.ToInt32 (100 / timediff.TotalM illiseconds * cpudiff);
}
"AlexS" <sa***********@ SPAMsympaticoPL EASE.ca> schrieb im Newsbeitrag
news:OI******** ******@tk2msftn gp13.phx.gbl...
Dirk,

judging by this you use some modification of the code you posted. I would suggest to look what is different.

When I did some tests I never had more than 2%. Usually (8 out of 10) -
0.

HTH
Alex

"Dirk Reske" <_F*******@gmx. net> wrote in message
news:uW******** ******@tk2msftn gp13.phx.gbl...
> But I get at some processes more than 100%, which is not possible...
> Perhaps the Idle process is always nearly 2600%
>
> "AlexS" <sa***********@ SPAMsympaticoPL EASE.ca> schrieb im

Newsbeitrag > news:#h******** ******@tk2msftn gp13.phx.gbl...
> > Hi Dirk
> >
> > what kind of wrong value you get? Your code produces consistently
returns
> 0
> > as result, which is Ok.
> > Because resulting value on my machine is less than 1%, so when

converted
> to
> > Int32 it gives 0.
> >
> > HTH
> > Alex
> >
> > "Dirk Reske" <_F*******@gmx. net> wrote in message
> > news:OS******** ******@TK2MSFTN GP12.phx.gbl...
> > > Hello,
> > >
> > > why doesn't this code work correctly?
> > >
> > > private int GetCpuUsage(Pro cess proc)
> > > {
> > > DateTime time1,time2;
> > > TimeSpan timediff;
> > > double cpu1,cpu2,cpudi ff;
> > >
> > > time1 = DateTime.Now;
> > > cpu1 = proc.TotalProce ssorTime.TotalM illiseconds;
> > >
> > > Thread.Sleep(10 0);
> > > proc.Refresh();
> > >
> > > time2 = DateTime.Now;
> > > cpu2 = proc.TotalProce ssorTime.TotalM illiseconds;
> > >
> > > cpudiff = cpu2 - cpu1;
> > > timediff = time2 - time1;
> > >
> > > return Convert.ToInt32 (100 / timediff.TotalM illiseconds *
cpudiff);
> > > }
> > >
> > > I get wrong values...perhap s the Idle process has an average cpu

usage
> of
> > > 2950% ????
> > >
> > >
> >
> >
>
>



Nov 16 '05 #8
Dirk,

if you want to measure activity of process - you must measure it using as a
start time when process was started, not some arbitrary moment as in your
sample. When you go through all processes on machine and measure activity
against 100ms interval of course you get senseless figures.
Check once again Refresh. In your foreach you get total milliseconds since
the process started + some delta which process used during sleep.

HTH
Alex

"Dirk Reske" <_F*******@gmx. net> wrote in message
news:u6******** *****@tk2msftng p13.phx.gbl...
I pass each process...
foreach (Process proc in Process.GetProc esses())
.....

when I put a proc.Refresh() at the first line of the GetCpuUsage funktion
all works fine...
some little mistakes..

System: 10%
Idle: 100%

-> this are 110% this can't be??

"AlexS" <sa***********@ SPAMsympaticoPL EASE.ca> schrieb im Newsbeitrag
news:#u******** ******@TK2MSFTN GP12.phx.gbl...
Dirk,

then take a good look which process you pass in. I tested with current
process. Code is fine with it.
However if you pass reference of process which was obtained long before

the
call and was not refreshed since - you might get huge value in cpudiff.

Take
a good look at process.Refresh method description.

HTH
Alex

"Dirk Reske" <_F*******@gmx. net> wrote in message
news:Ol******** ******@TK2MSFTN GP09.phx.gbl...
private int GetCpuUsage(Pro cess proc)
{
DateTime time1,time2;
TimeSpan timediff;
double cpu1,cpu2,cpudi ff;

time1 = DateTime.Now;
cpu1 = proc.TotalProce ssorTime.TotalM illiseconds;

Thread.Sleep(10 0);
proc.Refresh();

time2 = DateTime.Now;
cpu2 = proc.TotalProce ssorTime.TotalM illiseconds;

cpudiff = cpu2 - cpu1;
timediff = time2 - time1;

return Convert.ToInt32 (100 / timediff.TotalM illiseconds * cpudiff); }
"AlexS" <sa***********@ SPAMsympaticoPL EASE.ca> schrieb im Newsbeitrag
news:OI******** ******@tk2msftn gp13.phx.gbl...
> Dirk,
>
> judging by this you use some modification of the code you posted. I

would
> suggest to look what is different.
>
> When I did some tests I never had more than 2%. Usually (8 out of 10) -
0.
>
> HTH
> Alex
>
> "Dirk Reske" <_F*******@gmx. net> wrote in message
> news:uW******** ******@tk2msftn gp13.phx.gbl...
> > But I get at some processes more than 100%, which is not possible... > > Perhaps the Idle process is always nearly 2600%
> >
> > "AlexS" <sa***********@ SPAMsympaticoPL EASE.ca> schrieb im

Newsbeitrag > > news:#h******** ******@tk2msftn gp13.phx.gbl...
> > > Hi Dirk
> > >
> > > what kind of wrong value you get? Your code produces consistently > returns
> > 0
> > > as result, which is Ok.
> > > Because resulting value on my machine is less than 1%, so when
converted
> > to
> > > Int32 it gives 0.
> > >
> > > HTH
> > > Alex
> > >
> > > "Dirk Reske" <_F*******@gmx. net> wrote in message
> > > news:OS******** ******@TK2MSFTN GP12.phx.gbl...
> > > > Hello,
> > > >
> > > > why doesn't this code work correctly?
> > > >
> > > > private int GetCpuUsage(Pro cess proc)
> > > > {
> > > > DateTime time1,time2;
> > > > TimeSpan timediff;
> > > > double cpu1,cpu2,cpudi ff;
> > > >
> > > > time1 = DateTime.Now;
> > > > cpu1 = proc.TotalProce ssorTime.TotalM illiseconds;
> > > >
> > > > Thread.Sleep(10 0);
> > > > proc.Refresh();
> > > >
> > > > time2 = DateTime.Now;
> > > > cpu2 = proc.TotalProce ssorTime.TotalM illiseconds;
> > > >
> > > > cpudiff = cpu2 - cpu1;
> > > > timediff = time2 - time1;
> > > >
> > > > return Convert.ToInt32 (100 / timediff.TotalM illiseconds *
> cpudiff);
> > > > }
> > > >
> > > > I get wrong values...perhap s the Idle process has an average cpu usage
> > of
> > > > 2950% ????
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Nov 16 '05 #9
acn you modify my code so?

thx

"AlexS" <sa***********@ SPAMsympaticoPL EASE.ca> schrieb im Newsbeitrag
news:Oy******** ******@TK2MSFTN GP11.phx.gbl...
Dirk,

if you want to measure activity of process - you must measure it using as a start time when process was started, not some arbitrary moment as in your
sample. When you go through all processes on machine and measure activity
against 100ms interval of course you get senseless figures.
Check once again Refresh. In your foreach you get total milliseconds since
the process started + some delta which process used during sleep.

HTH
Alex

"Dirk Reske" <_F*******@gmx. net> wrote in message
news:u6******** *****@tk2msftng p13.phx.gbl...
I pass each process...
foreach (Process proc in Process.GetProc esses())
.....

when I put a proc.Refresh() at the first line of the GetCpuUsage funktion
all works fine...
some little mistakes..

System: 10%
Idle: 100%

-> this are 110% this can't be??

"AlexS" <sa***********@ SPAMsympaticoPL EASE.ca> schrieb im Newsbeitrag
news:#u******** ******@TK2MSFTN GP12.phx.gbl...
Dirk,

then take a good look which process you pass in. I tested with current
process. Code is fine with it.
However if you pass reference of process which was obtained long before
the
call and was not refreshed since - you might get huge value in
cpudiff. Take
a good look at process.Refresh method description.

HTH
Alex

"Dirk Reske" <_F*******@gmx. net> wrote in message
news:Ol******** ******@TK2MSFTN GP09.phx.gbl...
> private int GetCpuUsage(Pro cess proc)
> {
> DateTime time1,time2;
> TimeSpan timediff;
> double cpu1,cpu2,cpudi ff;
>
> time1 = DateTime.Now;
> cpu1 = proc.TotalProce ssorTime.TotalM illiseconds;
>
> Thread.Sleep(10 0);
> proc.Refresh();
>
> time2 = DateTime.Now;
> cpu2 = proc.TotalProce ssorTime.TotalM illiseconds;
>
> cpudiff = cpu2 - cpu1;
> timediff = time2 - time1;
>
> return Convert.ToInt32 (100 / timediff.TotalM illiseconds *

cpudiff); > }
> "AlexS" <sa***********@ SPAMsympaticoPL EASE.ca> schrieb im
Newsbeitrag > news:OI******** ******@tk2msftn gp13.phx.gbl...
> > Dirk,
> >
> > judging by this you use some modification of the code you posted. I would
> > suggest to look what is different.
> >
> > When I did some tests I never had more than 2%. Usually (8 out of

10) -
0.
> >
> > HTH
> > Alex
> >
> > "Dirk Reske" <_F*******@gmx. net> wrote in message
> > news:uW******** ******@tk2msftn gp13.phx.gbl...
> > > But I get at some processes more than 100%, which is not

possible... > > > Perhaps the Idle process is always nearly 2600%
> > >
> > > "AlexS" <sa***********@ SPAMsympaticoPL EASE.ca> schrieb im

Newsbeitrag
> > > news:#h******** ******@tk2msftn gp13.phx.gbl...
> > > > Hi Dirk
> > > >
> > > > what kind of wrong value you get? Your code produces consistently > > returns
> > > 0
> > > > as result, which is Ok.
> > > > Because resulting value on my machine is less than 1%, so when
> converted
> > > to
> > > > Int32 it gives 0.
> > > >
> > > > HTH
> > > > Alex
> > > >
> > > > "Dirk Reske" <_F*******@gmx. net> wrote in message
> > > > news:OS******** ******@TK2MSFTN GP12.phx.gbl...
> > > > > Hello,
> > > > >
> > > > > why doesn't this code work correctly?
> > > > >
> > > > > private int GetCpuUsage(Pro cess proc)
> > > > > {
> > > > > DateTime time1,time2;
> > > > > TimeSpan timediff;
> > > > > double cpu1,cpu2,cpudi ff;
> > > > >
> > > > > time1 = DateTime.Now;
> > > > > cpu1 = proc.TotalProce ssorTime.TotalM illiseconds;
> > > > >
> > > > > Thread.Sleep(10 0);
> > > > > proc.Refresh();
> > > > >
> > > > > time2 = DateTime.Now;
> > > > > cpu2 = proc.TotalProce ssorTime.TotalM illiseconds;
> > > > >
> > > > > cpudiff = cpu2 - cpu1;
> > > > > timediff = time2 - time1;
> > > > >
> > > > > return Convert.ToInt32 (100 / timediff.TotalM illiseconds * > > cpudiff);
> > > > > }
> > > > >
> > > > > I get wrong values...perhap s the Idle process has an average cpu > usage
> > > of
> > > > > 2950% ????
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Nov 16 '05 #10

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

Similar topics

1
2647
by: Behrang Dadsetan | last post by:
Hi all, please note that once I finished writing the script someone explained me that there is a command pwait under Solaris... anyway it was fun to write and it did not take long (while I am not a python guru..). And my version is MUUUCH better :) Is there no standard interfaces to the process table? I only found examples of how to do it on the win32 platform. So I parse with re the
3
2240
by: Bruce Pullen | last post by:
db27.2 fp7 on AIX5.2 I just bounced the database (as a specific db2dari process had reached user memory limit), and some (orpahned) db2dari processes are still there. db2fenc1 42682 1 108 Sep 28 - 14308:10 db2dari (81842) .... db2fenc1 90546 1 108 Sep 28 - 431:39 db2dari (63356)
1
1215
by: Indepth | last post by:
Overview: We're creating a ASP.NET app in C# that calls some C# programs we've created. Our DB server is on a w2k3 machine and using our w2k machines as our web server. Without setting an Identity in the web.config we can not access the DB on the w2k3 machine at all. So a temporary solution we had was to use the w2k3 machine as the DB and Web server but this isn't the setup that has be requested to duplicate. Problem: When we set an...
4
7832
by: AN | last post by:
Greetings, We make an ASP.NET web application and we host it for our customers. We have provisioned hardware and hope to be able to service around 200 customers on this hardware. The web servers are in a stateless farm and have 2 GB of RAM. We are using ASP.NET 1.1 when using a dedicated application pool for each virtual directory. Each customer gets their own virtual directory and copy of the ASP.NET dll in their bin folder, which...
35
4044
by: Carl J. Van Arsdall | last post by:
Alright, based a on discussion on this mailing list, I've started to wonder, why use threads vs processes. So, If I have a system that has a large area of shared memory, which would be better? I've been leaning towards threads, I'm going to say why. Processes seem fairly expensive from my research so far. Each fork copies the entire contents of memory into the new process. There's also a more expensive context switch between...
1
1360
by: Joshua Ruppert | last post by:
Does anyone know what it means if I see PHP processes in the process tree at the base level, instead of under the IIS worker process? I do nothing but web serving off of the box. These processes that are not under the IIS worker process seem to be stranded/hung. They are never cleaned up by any garbage collection and I have to kill them manually. They also always have a fairly low memory usage, potentially indicating that they fail...
0
1068
by: Innes MacKenzie | last post by:
I have an application (a .NET 2.0 windows service) which launches numerous short-lived processes (also a .NET 2.0 application). Occasionally, one or two of these processes will not run properly but instead stay running, 'just sitting there', exhibiting a number of unusual properties: Memory usage about 68K - normal .NET processes take up multi-Megabytes of memory. Process has a single thread in the Wait:Suspended state. The thread's...
5
587
by: Sune | last post by:
Hi all, I want to make data stored in-memory (not disk) available to several processes. My concern is that poorly written C applications with dangling pointers may(will) damage the data in this memory segment if it is open to all, i.e. shared memory mapped into all processes memory area. I don't want to use TCP/IP client/server between the apps and a data store process due to the overhead.
1
1168
by: Feresca | last post by:
Hi everyone, I've been trying to find a way to distinguish between processes(or applications) that are just running and processes that are actually doing something. For example how can you distinguish whether a defragmenter is currently defragmenting or just open. Is it a difference in CPU usage or Memory usage? Or is there some other variable that changes that can give a clear indication? Thanks to all who help.
0
9672
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10435
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10213
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10000
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9037
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7538
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.