473,322 Members | 1,562 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,322 software developers and data experts.

.net app continously writing data normal?

When observing the column "data written" in the activity manager for my .net
app I discovered that 2-4000kB of data is being written every second to the
disk. This is when the app is idle and not used. Is this normal? If not,
what can be causing it?

/Andreas Z
Sep 12 '05 #1
7 1235
What exactly is the "activity manager" and it's "data written" column?

Willy.

"Andreas Zita" <an******@student.liu.se> wrote in message
news:e4**************@TK2MSFTNGP09.phx.gbl...
When observing the column "data written" in the activity manager for my
.net app I discovered that 2-4000kB of data is being written every second
to the disk. This is when the app is idle and not used. Is this normal? If
not, what can be causing it?

/Andreas Z

Sep 12 '05 #2
Sorry ... Im running a Swedish version of XP and I don't exactly now the
correct translations to English XP. In Swedish its "Aktivitetshanteraren"
och "I/O antal byte skrivna" ... Im referring about the tool in XP which
monitors application currently in memory and its properties ...

/AZ

"Willy Denoyette [MVP]" <wi*************@telenet.be> skrev i meddelandet
news:uQ**************@TK2MSFTNGP09.phx.gbl...
What exactly is the "activity manager" and it's "data written" column?

Willy.

"Andreas Zita" <an******@student.liu.se> wrote in message
news:e4**************@TK2MSFTNGP09.phx.gbl...
When observing the column "data written" in the activity manager for my
.net app I discovered that 2-4000kB of data is being written every second
to the disk. This is when the app is idle and not used. Is this normal?
If not, what can be causing it?

/Andreas Z


Sep 12 '05 #3
Ok, PermormanceMonitor" and "IO write bytes/sec" for the "process" category,
right?
Well, 2-4MB per second written for your process only is not normal, unless
you are performing disk IO in your OnIdle loop (which I guess you are not) ,
must be a bug in your code.

Willy.
"Andreas Zita" <an******@student.liu.se> wrote in message
news:uo*************@TK2MSFTNGP12.phx.gbl...
Sorry ... Im running a Swedish version of XP and I don't exactly now the
correct translations to English XP. In Swedish its "Aktivitetshanteraren"
och "I/O antal byte skrivna" ... Im referring about the tool in XP which
monitors application currently in memory and its properties ...

/AZ

"Willy Denoyette [MVP]" <wi*************@telenet.be> skrev i meddelandet
news:uQ**************@TK2MSFTNGP09.phx.gbl...
What exactly is the "activity manager" and it's "data written" column?

Willy.

"Andreas Zita" <an******@student.liu.se> wrote in message
news:e4**************@TK2MSFTNGP09.phx.gbl...
When observing the column "data written" in the activity manager for my
.net app I discovered that 2-4000kB of data is being written every
second to the disk. This is when the app is idle and not used. Is this
normal? If not, what can be causing it?

/Andreas Z



Sep 12 '05 #4
Doh ... I meant 2-4000 bytes/sec ... (not kB) ... sorry again ...

But should a .net app write anything at all unless Im doing it explicitly?

/AZ
Sep 13 '05 #5
I found out the cause for this!
The two commented lines was causing it ... but i don't now why ...

/AZ

[STAThread]
static void Main()
{
//System.Diagnostics.Process[] p =
System.Diagnostics.Process.GetProcessesByName(Proc ess.GetCurrentProcess().ProcessName);
//if (p.Length == 1)
Application.Run(new Form1());
}
Sep 13 '05 #6
Any Win32 process can perform some disk IO when you might not expect it to
do so, the registry is something that get accessed frequently and the also
CLR performs some IO because it's publishing performance counter data
through the memory mapped registry.
In your case the IO is induced by a performance counter data that's been
read when querying for process data counters (GetProcessesByName), this has
been corrected in v2.0 which doesn't use perfcounters any longer for this.
Note also that what you are trying to achieve is not the right way to check
whether another instance of this application is running, you should opt for
a solution based on a named Mutex to prevent multiple instances.

Willy.

"Andreas Zita" <an******@student.liu.se> wrote in message
news:uP**************@TK2MSFTNGP15.phx.gbl...
I found out the cause for this!
The two commented lines was causing it ... but i don't now why ...

/AZ

[STAThread]
static void Main()
{
//System.Diagnostics.Process[] p =
System.Diagnostics.Process.GetProcessesByName(Proc ess.GetCurrentProcess().ProcessName);
//if (p.Length == 1)
Application.Run(new Form1());
}

Sep 13 '05 #7
Thanks a lot Willy! Your the man! I look into using Mutex ...

/AZ

"Willy Denoyette [MVP]" <wi*************@telenet.be> skrev i meddelandet
news:%2***************@TK2MSFTNGP15.phx.gbl...
Any Win32 process can perform some disk IO when you might not expect it to
do so, the registry is something that get accessed frequently and the also
CLR performs some IO because it's publishing performance counter data
through the memory mapped registry.
In your case the IO is induced by a performance counter data that's been
read when querying for process data counters (GetProcessesByName), this
has been corrected in v2.0 which doesn't use perfcounters any longer for
this.
Note also that what you are trying to achieve is not the right way to
check whether another instance of this application is running, you should
opt for a solution based on a named Mutex to prevent multiple instances.

Willy.

"Andreas Zita" <an******@student.liu.se> wrote in message
news:uP**************@TK2MSFTNGP15.phx.gbl...
I found out the cause for this!
The two commented lines was causing it ... but i don't now why ...

/AZ

[STAThread]
static void Main()
{
//System.Diagnostics.Process[] p =
System.Diagnostics.Process.GetProcessesByName(Proc ess.GetCurrentProcess().ProcessName);
//if (p.Length == 1)
Application.Run(new Form1());
}


Sep 14 '05 #8

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

Similar topics

1
by: yama | last post by:
i have 4 movie clips. i am able to run the first clip with autostart a soon as the webpage opens. i am running the movie clips under window media player. Question 1:i want to run all the movie...
1
by: Raed Sawalha | last post by:
Dear: I used to code a continously running thread in C++ like following: Handle hStopEvent = CreateEvent(NULL,true,false,NULL); UINT uOptional = 0;...
7
by: Andreas Zita | last post by:
When observing the column "data written" in the activity manager for my .net app I discovered that 2-4000kB of data is being written every second to the disk. This is when the app is idle and not...
4
by: Gary Bond | last post by:
Hi All, Can anybody point me to some 'how-to' documentation, tutorials, etc as to how to write a shrink/protect wrapper for .Net exes/dlls, (like the Shrinkwrap product for instance). I have...
4
by: libsfan01 | last post by:
Hi all I want to have create a js function to use xmlhttprequest continously check a given url for any change in its value and then bring the contents of that page through. Here is my code so...
1
by: ganesah | last post by:
hi there, i need to create a program to continously display the received binary data (2bytes) from COM 8 in a console, however I'm having problem in doing so where i do nt see any data being...
0
by: slider | last post by:
Hey all i need a vb asp script which creates and writes to a text file on my webserver. My web server is my local machine and im using IIS on Windows XP Pro Service Pack 2. Heres the code i am...
0
by: das | last post by:
Hello all, I am using the SqlDependency to subscribe to any new inserts into a database table, I enabled the DB to be borker ready and subscrbed to Query notifications on the database. My C#...
30
by: Cramer | last post by:
I've finally gotton board with TDD (test driven development) and wow is it effective! I went from sceptic to True Believer with my first effort. My question: According to the various books and...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.