Suppose I have a php script. Now i am benchmarking that script using apache benchmark tool. Let us say with the command. ab -n 10 -c 4 filename.php Many different apache processes will be created so as to fulfill the requests.
Suppose total 4 processes are created to fulfill this request. Now, Let us say that the processes have ids p1,p2,p3,p4 and requests are r1,r2,.....r10.
As an example assume how requests are completed.
p1 p2 p3 p4 r1 r2 r3 r4
Suppose r2 got completed. So, r5 assigned to p2.
p1 p2 p3 p4 r1 r5 r3 r4
Suppose r4 got completed. So, r6 assigned to p4.
p1 p2 p3 p4 r1 r5 r3 r6
Suppose r3 got completed. So, r7 assigned to p3.
p1 p2 p3 p4 r1 r5 r7 r6
Suppose r1 got completed. So, r8 assigned to p1.
p1 p2 p3 p4 r8 r5 r7 r6
Suppose r7 got completed. So, r9 assigned to p3.
p1 p2 p3 p4 r8 r5 r9 r6
Suppose r5 got completed. So, r10 assigned to p2.
p1 p2 p3 p4 r8 r10 r9 r6
Now, at some point r6,r9,r8,10 also got completed.
Now we can see that which process has completed which requests.
process p1 p2 p3 p4 requests r1,r8 r2,r5,r10 r3,r7,r9 r4,r6 counter 2 3 3 2
p1,p2,p3,p4 exists the pids of the process. Also, the counter that which process has fulfilled which request exists. Now, in php i can get the pid of which process has called it by getmypid() function and maintain a counter to store how many requests are fulfilled by the process. So, i can know for all the requests fulfilled.
Please provide me some good way where i can get the same knowledge but without relying on the getmypid function.
Thanks a lot.
1 1913 Sign in to post your reply or Sign up for a free account.
Similar topics |
by: TJ |
last post by:
Anyone know how to display process id's (normally found by going to
Component Services and switching to applications to 'Status View') in a web
page?
I'm trying to keep remote users from having to terminal server or use com+
to view the process id's they need for asp debugging (via attaching to a
process (remote debugging via dcom and machine debug manager))
Thx in advance,
|
by: Ralph Snart |
last post by:
Is there a way to alternate table row colors without using the
position() mod 2 trick? I'm in a series of nested xsl:for-each
elements, about 3 deep, and I want to alternate the table row
color all the way through. position() resets to 1 whenever
the inner for-each loops around, of course.
Example code:
<xsl:for-each select="/games/game) = 1]">
<xsl:sort select="platform"/>
|
by: reddy |
last post by:
I am trying to insert a node into an XMLFile. using XMLTextwriter. My
Question is
Is it possible to do without using XMLDocument. Because its loading all the
the file into memory. I just want to insert in the front. My code is give
below.
Is it possible to do without using XMLDOcument?
Dim masterDoc As String = Request.PhysicalApplicationPath & "PageViews.xml"
Dim writer As XmlTextWriter = Nothing
|
by: raymond |
last post by:
Hi,
Is it possible to create a proxy client class or a web service method by
VS.NET without using wsdl? My stupid client is using a xml schema (.xsd) to
describe all their web service methods (and my webmethods) by Java (Apache
toolkit) instead of using WSDL. What should I do?
Thanks a lot!
Raymond
|
by: Gregor Wind |
last post by:
Hello all,
for my image processing application I need a large amount of virtual memory.
I read, that it is normaly possible to get 2GB of virtual memory for each
process and when you modify the boot.ini file it should be possible to get
3GB vitual memory for one process.
I have tried to allocate nearly 2GB in my application, but I receive the
SystemOutOfMemory Exception. It is only possible to allocate a little bit
more than 1GB. I...
| |
by: eBob.com |
last post by:
How do you make a loop iterate early without using a GoTo? (I guess
I've done too much structured programming and I really don't like
using GoTos.)
Here's my code ...
For Each Thing As OFI In FileInfo
If Thing.Displayed <> True Then
GoTo Iterate 'skip this entry; try next one
End If
|
by: ulyses |
last post by:
Let's assume I have following file:
2938929384902491233.....
923949919199191919112....
File contains INTs only. What is more they are huge. For example first
row in file may contain integer which size is 50MB and the second 30MB.
Now we come to my problem. Is there possibility to swap this rows
without using system memory (preferably in Unix/Linux)? Is there any
function in C to do this?
|
by: Marcel Brekelmans |
last post by:
Hi,
I was wondering if it's possible to install/uninstall a service from code
without using the InstalUtil.exe tool with the /i and /u flags. As far as I
can Google everyone is doing it that way and MicroSoft also mentions this.
There's something like the ServiceBase class from which you ought to derive
your own class. This has a Uninstall() and a Install() method, but I'm not
getting access to these methods. MicroSoft says that this...
|
by: ceeques |
last post by:
Hi
I am a novice in C. Could you guys help me solve this problem -
I need to convert integer(and /short) to string without using sprintf
(I dont have standard libray stdio.h).
for instance:-
int i =2;
char ch 'A'
|
by: Pygmalion |
last post by:
I have found dozen of useful PHP counters on the web. However, nobody
is working for my web pages, since administrator does not want to
enable the possibility that PHP could be called from HTML. (i.e.
"Addhandler application/x-httpd-php .html .php" in .htaccess). He
says it is a security problem.
Is it possible to make a PHP counter WITHOUT using echo command?
Thanks for your suggestions,
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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...
|
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...
|
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...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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
|
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |