08-30-2017
Why do you want to change this reasonable limit?
Last edited by MadeInGermany; 08-30-2017 at 01:43 PM..
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
What is posix? What is the relation between Posix, Unix and linux? (1 Reply)
Discussion started by: darbarilal
1 Replies
2. Programming
can somebody explain about the ANSI C vs POSIX. say i was using open and fopen, i know that open is POSIX, and fopen is ANSI C. i read that that POSIX is a system call and ANSI C is like a standard library function. wouldn't the fopen function has to call on open function anyway to open any kind... (2 Replies)
Discussion started by: bb00y
2 Replies
3. Programming
Please,does anybody can give me any general info about unix(posix) ? (1 Reply)
Discussion started by: Haris Astreos
1 Replies
4. UNIX for Dummies Questions & Answers
how to read POSIX? poe six or not? (3 Replies)
Discussion started by: robin.zhu
3 Replies
5. Programming
Hello !
Let's supose I have a main function in C , and two POSIX threads. I give you an example down :
int main() {
int something;
char else;
void *FirstThread();
void *SecondThread();
..
<start those two pthreads ..>
return 0;}
void *FirstThread() { ... }
void *SecondThread()... (2 Replies)
Discussion started by: !_30
2 Replies
6. Programming
HI,
When i am configuring php in SUN Solaris. I am getting the below error.
configure: error: Your system seems to lack POSIX threads.
Do i need to install POSIX? If so can somebody let me know where can i download POSIX for Solaris 8?
Thanks, (2 Replies)
Discussion started by: Krrishv
2 Replies
7. UNIX for Advanced & Expert Users
Hi,
consider the code below:
#include <stdio.h>
.
.
struct myStruct
{
char *message ;
int id;
};
.
.
.
void *thread_function( void *ptr );
nt main()
{
pthread_t thread1, thread2 ,thread3 ;
struct myStruct nico1; (2 Replies)
Discussion started by: Behnaz
2 Replies
8. UNIX for Advanced & Expert Users
Hi ,
I am using UNIX network programming Vol1 (by R Stevens) book to learn about IPC.
I would be using HP-UX,Solaris and Linux at my work.
I have sections for POSIX and for System V in that book.
I am quite confused in indentifying those OSs as POSIX or SYstem V.
Can anyone please... (1 Reply)
Discussion started by: kumaran_5555
1 Replies
9. Programming
I want to create a program that creates 2 child process, and each of them creates 2 threads, and each thread prints its thread id. I0ve allread done that the outuput isn't the outuput i want.
When a run the following comand "$./a.out | sort -u | wc -l" I have the folowing output
2
$:
It should... (3 Replies)
Discussion started by: pharaoh
3 Replies
10. OS X (Apple)
Thanks to all you guys about posix compliance I have learnt an enormous amount over the last few days.
I have written a program that is an Egg Timer with simple animation.
I now realise how sophisticated 'bash' is compared to full posix compliance.
The code below has passed all of the tests from... (11 Replies)
Discussion started by: wisecracker
11 Replies
LEARN ABOUT DEBIAN
apache2::resource
libapache2-mod-perl2-2.0.7::docs::api::Apache2::ResourceUser)Contributed Perl Documenlibapache2-mod-perl2-2.0.7::docs::api::Apache2::Resource(3pm)
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.14.2 2011-02-08 libapache2-mod-perl2-2.0.7::docs::api::Apache2::Resource(3pm)