473,503 Members | 1,716 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Cut Processing time

We have a number of vb services and programmes running on our windows 2003
server, the problem is that the server runs at 98-100% processing . Is it
possible to set the programs to not use this much processing time, any
advise or help would be appreciated as we have managed to "stop" a number of
systems.

We have tried to move individual programs to separate systems but usage is
the same, is it possible to do anything ?
Nov 21 '05 #1
5 1028
Tlink,

I assume that there is an procedure in it, that is endless. That one has to
start at an event, not endless. And if that is not possible with a timer
that checks ever x timeunits.

I hope this helps,

Cor
Nov 21 '05 #2
"Tlink" <Tl***@online.nospam> schrieb:
We have a number of vb services and programmes running on our windows 2003
server, the problem is that the server runs at 98-100% processing . Is it
possible to set the programs to not use this much processing time, any
advise or help would be appreciated as we have managed to "stop" a number
of systems.


You could assign a lower priority to the process in Windows explorer, for
example. However, I am curious what your service is actually doing that
causes the high processor usage.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3

The processors are adding,deleting and changing current data in a MS SQL
database, with information being update consistently, so
what I want to do is control CPU usage via the programs.

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:%2******************@TK2MSFTNGP09.phx.gbl...
"Tlink" <Tl***@online.nospam> schrieb:
We have a number of vb services and programmes running on our windows
2003 server, the problem is that the server runs at 98-100% processing .
Is it possible to set the programs to not use this much processing time,
any advise or help would be appreciated as we have managed to "stop" a
number of systems.


You could assign a lower priority to the process in Windows explorer, for
example. However, I am curious what your service is actually doing that
causes the high processor usage.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #4
Hi Tlink,

A simple while loop in the program will eat all the CPU time.
e.g.
While Ture
.....
Wend

Windows schedule the threads based on the priority(Normal/High...) you will
find that in the Task Manager if no process is running, the Idel process
will occupy the almost 100% CPU, this is tell you that current the CPU is
idle. Once another process with higher priority want CPU time, the idle
process's CPU time will decrease.

So commonly it is not proper to run a loop all the time without any thread
sleep, because that is tell the CPU you want the CPU time all the time, so
that CPU will be occupied by your process if there is no other higher
priority process want it.

I think you may try Cor's suggestion, or check every 1 second or more. Or
When you code is modifying the database, try to fire event to tell
something had happened.
e.g.
While True
checkdatabase()
Thread.Sleep(1000)
Wend
Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 21 '05 #5
I don't see how that's possible. When sending commands to a database
the current thread will remain in a wait state until the database
responds. If the application really is doing a lot of work against the
database then I would expect far lower CPU usage.

Have you profiled the application to see what it's doing?

Brian

Tlink wrote:
The processors are adding,deleting and changing current data in a MS SQL
database, with information being update consistently, so
what I want to do is control CPU usage via the programs.

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:%2******************@TK2MSFTNGP09.phx.gbl...
"Tlink" <Tl***@online.nospam> schrieb:
We have a number of vb services and programmes running on our windows
2003 server, the problem is that the server runs at 98-100% processing .
Is it possible to set the programs to not use this much processing time,
any advise or help would be appreciated as we have managed to "stop" a
number of systems.


Nov 21 '05 #6

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

Similar topics

4
5034
by: Bob | last post by:
Below is sample code that illustrates what I'm trying to do. For sake of brevity I didn't include the properties of buildBtn that determine what data to request. The problem is I never see...
2
1486
by: Luiz Vianna | last post by:
Hi folks, I got a problem that certainly someone had too. After a user request, I (my server) must process a lot of data that will expend some time. During this process I must inform the user...
0
1466
by: FatboyCanteen | last post by:
I have a page when it starts loading, it will perform a long time process! So, the Page is empty during this time. I want to add a Processing Message, eg Processing. Processing.. Processing... ...
6
4959
by: James Radke | last post by:
Hello, I have a multithreaded windows NT service application (vb.net 2003) that I am working on (my first one), which reads a message queue and creates multiple threads to perform the processing...
2
5757
by: rdemyan via AccessMonster.com | last post by:
My application has a lot of complicated SQL statements, calculations, processing that takes time. I've created a custom form to act like a messagebox. It has 10 small rectangles on it that change...
3
1105
by: Will | last post by:
Our company just allowed asp.net to be used internally here at my job. I am in the process of getting the software. My boss wants me to have some sort of way to capture load times in various...
10
5688
by: Enrique Cruiz | last post by:
Hello all, I am currently implementing a fairly simple algorithm. It scans a grayscale image, and computes a pixel's new value as a function of its original value. Two passes are made, first...
1
1445
by: Rob | last post by:
Hi, I've developed a basic dialog program using the MFC foundation wizard. Upon pushing one of the buttons, a time consuming processing is invoked, during which the user cannot access the...
1
3413
by: Xah Lee | last post by:
Text Processing with Emacs Lisp Xah Lee, 2007-10-29 This page gives a outline of how to use emacs lisp to do text processing, using a specific real-world problem as example. If you don't know...
0
1594
by: Johannes Nix | last post by:
Hi, this might be of interest for people who are look for practical information on doing real-time signal processing, possibly using multiple CPUs, and wonder whether it's possible to use...
0
7192
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,...
0
7315
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...
0
5559
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,...
1
4991
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...
0
4665
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3158
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3147
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1492
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 ...
1
721
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.