03-02-2009
ulimit in the process shell script or call setrlimit() in C code.
10 More Discussions You Might Find Interesting
1. SCO
Hi everyone,
I have a problem on sco unixware 7.1.4
a Ghost process is consuming cpu usage.
rtpm
cpu 0 ======---------
cpu 1 ===---------------------
cpu 2 ============================================================-----------
cpu 3 ... (1 Reply)
Discussion started by: neal.opperman
1 Replies
2. UNIX for Dummies Questions & Answers
Hi There,
I'm trying to find a way to gather resource usage information (CPU, Memory & Virtual Memory) for a single process in a scripted way.
I've looked at vmstat & top but I can't figure out how to use them to get the information for a single process.
can any one help with this?
... (2 Replies)
Discussion started by: Murph
2 Replies
3. Solaris
hi
pmap, prstat and ps gives the RSS which is shared memory.
I need to know the consumption of real memory. how to do that?
thx (4 Replies)
Discussion started by: melanie_pfefer
4 Replies
4. Shell Programming and Scripting
Hello,
I have to create shell script being myself real novice in scripting...
I was looking on the Internet for some script examples, but I don't have the basic understanding of the shell. I was trying to do something with “ps” command without success.
For exemple total number of... (2 Replies)
Discussion started by: mr_awd
2 Replies
5. Red Hat
First post, sorry to be a bother but this one has been dogging me. I have a process user (java application server) that trips a resource limit every couple weeks and need help finding what limit we're hitting.
First, this is what's running:
This is the error when jobs are run or the... (0 Replies)
Discussion started by: Katahdin
0 Replies
6. Programming
Hi,all:
I run my program which consists of one kernel module and one user mode process on a dual core server. The problem here is the kernel module consumes 100% of one core while the user mode process only consumes 10% of the other core, is there any solution that I can assign some computing... (1 Reply)
Discussion started by: neyshule
1 Replies
7. AIX
Hi,
I have AIX processes something as below, how to know the resources consumption group by process pattern "price" and "devdb"?
eg:
CPU RAM WIO
price 20% 250M 5%
devdb 30% 1000M 8%
oracle 2990122 1 0 10:33:39 - 0:00... (1 Reply)
Discussion started by: victorcheung
1 Replies
8. AIX
Hi,
This thread has been posted before on linuxquestions.org, but no answer, maybe because this is unix question and not linux. I'm posting the same thread here, hope I can get an answer from someone in the meantime, I wish I could post of emergency thread but it needs bits which I don't have :... (6 Replies)
Discussion started by: aLuViAn
6 Replies
9. HP-UX
Dear All,
I want to find out top 15 memory consumption processes in HP UX. Can anyone give me any idea about it?
Kauser (2 Replies)
Discussion started by: makauser
2 Replies
10. Solaris
Hi
Well I would like to know step by step process of adding a mountpoint in HAPLUS resource in SUN cluster as I go the below command to add a mount point but not the step by step process of adding a mount point in existing HA Plus resource.
clrs set -p FileSystemMountPoints+=<new_MP>... (3 Replies)
Discussion started by: amity
3 Replies
LEARN ABOUT OSX
apache2::resource
apache_mod_perl-108~358::mod_perl-2.0.7::docs::api::ApacUser:Contributed Papache_mod_perl-108~358::mod_perl-2.0.7::docs::api::Apache2::Resource(3)
NAME
Apache2::Resource - Limit resources used by httpd children
Synopsis
PerlModule Apache2::Resource
# set child memory limit in megabytes
# default is 64 Meg
PerlSetEnv PERL_RLIMIT_DATA 32:48
# linux does not honor RLIMIT_DATA
# RLIMIT_AS (address space) will work to limit the size of a process
PerlSetEnv PERL_RLIMIT_AS 32:48
# set child cpu limit in seconds
# default is 360 seconds
PerlSetEnv PERL_RLIMIT_CPU 120
PerlChildInitHandler Apache2::Resource
Description
"Apache2::Resource" uses the "BSD::Resource" module, which uses the C function "setrlimit" to set limits on system resources such as memory
and cpu usage.
Any "RLIMIT" operation available to limit on your system can be set by defining that operation as an environment variable with a "PERL_"
prefix. See your system "setrlimit" manpage for available resources which can be limited.
The following limit values are in megabytes: "DATA", "RSS", "STACK", "FSIZE", "CORE", "MEMLOCK"; all others are treated as their natural
unit.
If the value of the variable is of the form "S:H", "S" is treated as the soft limit, and "H" is the hard limit. If it is just a single
number, it is used for both soft and hard limits.
Defaults
To set reasonable defaults for all RLIMITs, add this to your httpd.conf:
PerlSetEnv PERL_RLIMIT_DEFAULTS On
PerlModule Apache2::Resource
See Also
BSD::Resource(3), setrlimit(2)
Copyright
mod_perl 2.0 and its core modules are copyrighted under The Apache Software License, Version 2.0.
Author
Doug MacEachern
perl v5.16.2 2011-0apache_mod_perl-108~358::mod_perl-2.0.7::docs::api::Apache2::Resource(3)