Thread View: borland.public.cppbuilder.internet.web
2 messages
2 total messages
Started by Mark Anders
Sun, 31 Oct 2004 15:26
Best way to develop a server stress tool
Author: Mark Anders
Date: Sun, 31 Oct 2004 15:26
Date: Sun, 31 Oct 2004 15:26
28 lines
1642 bytes
1642 bytes
hi,
to check out how many simultaneous visitors our new server may manage, i
like to develop a server stress tool. my idea was to simulate the visitors
via threads. so each visitor is a thread.
the threads should looks like this pseudo code:
void __fastcall TMyThread::Execute()
{
while(!Terminated)
{
open the website
sleep(10000)
}
}
so each visitor oben the website every 10 seconds. i would use nmhttp to
open the website.
problem is, that i like to run our site from 1 - 5000 simultaneous visitors.
at this reason, the use of threads wouldn't be a good solution, because i
think i cannot run 5000 threads on my system without any problems.
how would you create a server stress tool. is there any better way then
threads? please give me some ideas
thanks Mark
Re: Best way to develop a server stress tool
Author: Oren Halvani
Date: Fri, 05 Nov 2004 01:10
Date: Fri, 05 Nov 2004 01:10
20 lines
1480 bytes
1480 bytes
"Mark Anders" <manders@yahoo.com> schrieb im Newsbeitrag
news:41850418@newsgroups.borland.com...
hi Mark,
just a idea...what about:
double factorial(double n)
{
if (n <= 1) return(1); else {return(n * factorial(n - 1));}
}
call it now with: 99999999999
this is what i do, if i want to stress my laptop (for power reasons),
the processor makes here a *hard* work :-)
Oren
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads