On our production server, we have a great deal of data. To improve
performance, we give the user a "page" of data at a time and then spawn count
of the total number of products based on the query parameters on a separate
thread. The user can change their mind, of course, and change their query
before the count has returned for the previous query. We are trying to
simulate a lot of data on our developement server by putting a sleep command
(dbms_lock.slee p) in the stored procedure. I'm having problems terminating
the thread. I've used the bool variable as even abort, but it still takes the
full sleep time. Is the Oracle sleep command simular to the .Net command and
is not interruptable? It would be much easier to just load more data into teh
tables or at least do add some monster query into it for testing, but the DBA
says this should be just as good.
Thanks,
Susan 4 2159
Your abort is killing the thread in your application but it sounds like your
command is still running on the database (is this how you are measuring that
it is still "alive"?)
Cheers,
Greg Young
MVP - C# http://codebetter.com/blogs/gregyoung
"Susan" <Su***@discussi ons.microsoft.c omwrote in message
news:25******** *************** ***********@mic rosoft.com...
On our production server, we have a great deal of data. To improve
performance, we give the user a "page" of data at a time and then spawn
count
of the total number of products based on the query parameters on a
separate
thread. The user can change their mind, of course, and change their query
before the count has returned for the previous query. We are trying to
simulate a lot of data on our developement server by putting a sleep
command
(dbms_lock.slee p) in the stored procedure. I'm having problems terminating
the thread. I've used the bool variable as even abort, but it still takes
the
full sleep time. Is the Oracle sleep command simular to the .Net command
and
is not interruptable? It would be much easier to just load more data into
teh
tables or at least do add some monster query into it for testing, but the
DBA
says this should be just as good.
Thanks,
Susan
your DBA is wrong. Use a good stress testing tool to generate the actual
volume rather than trying to simulate it with a hack.
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster http://blogs.msdn.com/nickmalik
Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Susan" <Su***@discussi ons.microsoft.c omwrote in message
news:25******** *************** ***********@mic rosoft.com...
On our production server, we have a great deal of data. To improve
performance, we give the user a "page" of data at a time and then spawn
count
of the total number of products based on the query parameters on a
separate
thread. The user can change their mind, of course, and change their query
before the count has returned for the previous query. We are trying to
simulate a lot of data on our developement server by putting a sleep
command
(dbms_lock.slee p) in the stored procedure. I'm having problems terminating
the thread. I've used the bool variable as even abort, but it still takes
the
full sleep time. Is the Oracle sleep command simular to the .Net command
and
is not interruptable? It would be much easier to just load more data into
teh
tables or at least do add some monster query into it for testing, but the
DBA
says this should be just as good.
Thanks,
Susan
I can see what your DBA is trying to do, but its not a real measure of
stress testing as all your testing is the stored proc holding up the
conclusion of a request. In theory, all requests would take the duration of
the sleep timeout and thats not how systems work.
Get a proper stress testing tool and let your procedures work as they should
be in a live environment.
Regards
John Timney (MVP)
"Susan" <Su***@discussi ons.microsoft.c omwrote in message
news:25******** *************** ***********@mic rosoft.com...
On our production server, we have a great deal of data. To improve
performance, we give the user a "page" of data at a time and then spawn
count
of the total number of products based on the query parameters on a
separate
thread. The user can change their mind, of course, and change their query
before the count has returned for the previous query. We are trying to
simulate a lot of data on our developement server by putting a sleep
command
(dbms_lock.slee p) in the stored procedure. I'm having problems terminating
the thread. I've used the bool variable as even abort, but it still takes
the
full sleep time. Is the Oracle sleep command simular to the .Net command
and
is not interruptable? It would be much easier to just load more data into
teh
tables or at least do add some monster query into it for testing, but the
DBA
says this should be just as good.
Thanks,
Susan
Actually, the thread running the process doesn't die till the stored
procedure comes back for some reason. I had tried the OracleCommand.C ancel
on the stored procedure and then ending the thread, but that seems to hang as
well. It also seems to prevent additional stored procs from running till it
is done.
"Greg Young" wrote:
Your abort is killing the thread in your application but it sounds like your
command is still running on the database (is this how you are measuring that
it is still "alive"?)
Cheers,
Greg Young
MVP - C# http://codebetter.com/blogs/gregyoung
"Susan" <Su***@discussi ons.microsoft.c omwrote in message
news:25******** *************** ***********@mic rosoft.com...
On our production server, we have a great deal of data. To improve
performance, we give the user a "page" of data at a time and then spawn
count
of the total number of products based on the query parameters on a
separate
thread. The user can change their mind, of course, and change their query
before the count has returned for the previous query. We are trying to
simulate a lot of data on our developement server by putting a sleep
command
(dbms_lock.slee p) in the stored procedure. I'm having problems terminating
the thread. I've used the bool variable as even abort, but it still takes
the
full sleep time. Is the Oracle sleep command simular to the .Net command
and
is not interruptable? It would be much easier to just load more data into
teh
tables or at least do add some monster query into it for testing, but the
DBA
says this should be just as good.
Thanks,
Susan
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: ritterhaus |
last post by:
Just a simple bit of code to toggle between two state at intervals...
import time
for i in range(4):
print 'On'
time.sleep(1)
print 'Off'
time.sleep(1)
.... SHOULD toggle On and Off four times with one-second pauses. When I
|
by: Jeffrey Maitland |
last post by:
Hello all,
I am in the process of writing a multithreading program and what I was
wondering is a sleep command in an executing function will affect the
threads below it? Here is a basic example of what I mean.
def main():
temp_var = True
while temp_var == True:
if
|
by: John |
last post by:
Thanks.
I am writing a C++ code on Linux and Sun OS platform.
How to make a procedure sleep or delay?
Thanks again.
"John Carson" <donaldquixote@datafast.net.au> wrote in message news:<40455261$1@usenet.per.paradox.net.au>...
> "John Carson" <donaldquixote@datafast.net.au> wrote in message
> news:40455214$1@usenet.per.paradox.net.au
|
by: Alo Sarv |
last post by:
Hi
From what I have understood from various posts in this newsgroup, writing event
loops pretty much comes down to this:
while (true) {
handleEvents();
sleep(1); // or _sleep() or nanosleep(), depending on platform
}
|
by: lokb |
last post by:
Hi,
I am creating a detach thread as shown below and caling pthread_create in
a while loop where the file names in the directory are fetched and is
passed as a parmater to pthread create. The apilcation is running fine
except for the sleep cycle.
My sleep cylce is sleep(5) which is halting all the threads created from
execution. What i need...
| |
by: Stephen Miller |
last post by:
I have an ASP.Net application that sends a NetworkStream to a .Net
Service, which has a TcpListener listening on a port for the ASP.Net
client. When it receives a request it creates a new thread with the
AddressOf a class that runs a long data intensive process that can
take between 1-15 minutes and results in the creation of a uniquely
named...
|
by: Joe |
last post by:
Does anyone know the difference, in practical terms, between
Thread.Sleep (10000) and Thread.CurrentThread.Join (10000)??
The MSDN says that with Join, standard COM and SendMessage pumping
continues, but what does this mean in practice for a typical Windows
Forms or Windows Service application??
Some people say you should always use...
|
by: JackCoke |
last post by:
Hello. I am new at this so forgive me if there is a simple answer, although
it is one I could not find.
My VB 2003 program can scan a folder, determine the size of the file it
finds, wait 30 seconds, then determine the size of the file at that point.
I wait the 30 seconds by using the Thread.Sleep method. Is there a way to
wake the sleep...
|
by: fniles |
last post by:
I am using VB.NET 2003 and a socket control. As I get quotes, I add the
quote to the arraylist, and I send the quotes to my clients by removing the
message from the arraylist and send it to the client using the socket.
I found that the arraylist got backed up, the queue depth will be 1000 or
bigger. I put a Thread.Sleep(1) outside the While...
|
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...
|
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. ...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |