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

max number of processes

how can i determine what the maximum number of processes i should open
with popen (or proc_open) is? i assume it'd depend on the hardware of
the computer in question, but if that were teh case, then is there a
way to get info. about it, and some general method to determine a good
number of processes to open from that info?
Jul 17 '05 #1
2 2830
yawnmoth wrote:
how can i determine what the maximum number of processes i should open
with popen (or proc_open) is? i assume it'd depend on the hardware of
the computer in question, but if that were teh case, then is there a
way to get info. about it, and some general method to determine a good
number of processes to open from that info?


If you have to ask... you're contemplating opening /way/ too many processes.

The number of processes that are alive at any one time should be small. You
should /never/ "create a process, let it handle one request and die." The
more runnable processes there are, the less time per-second each process
can receive. If you want to process several requests, use a queue, and
have the children remove requests from that queue.

Jul 17 '05 #2
Sundial Services <in**@sundialservices.com> wrote in message news:<co**********@domitilla.aioe.org>...

<snip>

If you have to ask... you're contemplating opening /way/ too many processes.

The number of processes that are alive at any one time should be small. You
should /never/ "create a process, let it handle one request and die." The
more runnable processes there are, the less time per-second each process
can receive. If you want to process several requests, use a queue, and
have the children remove requests from that queue.


would an implementation whereby ea. process accessed a single file /
used that file as a queue be sufficient?

although that said, i think for my purposes, multiple processes may be
better (please correct me if i'm wrong). i'm trying to detect whether
or not those attempting to perform a certain action on a website are
doing so from proxies. because it takes about a second to reject a
proxy (well, using 1 as the timeout) it'd take about 8 seconds (if i
wanted to take 8 ports). that's a bit too much time, so i'm using
multiple processes to reduce it to (ideally) a second.
Jul 17 '05 #3

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

Similar topics

4
by: sumithradevi | last post by:
Hello Friends, I am getting the following error. java.sql.SQLException: ORA-00020: maximum number of processes (100) exceeded I am closing all my resultsets and all my connections in the try...
8
by: Michelle | last post by:
hi, i have created an array from recordset containing user names eg. (davidp, davidp, evenf, patricka, rebeccah) which i have sorted in alphabetical order, but i need to identify duplicates...
4
by: Tim Morrison | last post by:
SQL Server 2000 - MSDE 2000 Is there a way to get the number of current users logged into a SQL 2000 Server (also MSDE)? Cant be distinct users as most users are logged into the database using the...
1
by: Dominic | last post by:
I'd like to tune the performance of my application in a web garden. Our server has dual processors. Is there any guideline to set this "maximum number of worker processes" for web garden? In my...
2
by: chris.tice | last post by:
Hi, I am looking for an easy way to find the total number of running processes on a given machine in a C program. Currently I am doing this: system("ps -e | wc -l > count.txt"); then...
12
by: Paul Sijben | last post by:
I have a server in Python 2.5 that generates a lot of threads. It is running on a linux server (Fedora Core 6). The server quickly runs out of threads. I am seeing the following error. File...
0
by: mallz | last post by:
hi, i get this error sometimes. Im using jsp, as soon as i create a certain number of inputs, i get this error and everything stops working. java.sql.SQLException: ORA-00020: maximum number of...
5
by: Jeff | last post by:
I need to run many processes from my application. and I am using the following enclosed in a for next loop: System.Diagnostics.Process runObj = new System.Diagnostics.Process();...
2
by: Shao | last post by:
Dear All, I am looking for a nitty-gritty Python Ajax script to fire off a number of processing programmes, periodically checking their operations, sending messages back to an HTML div form by...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...
0
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
tracyyun
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...
0
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
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...

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.