Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : POSIX Functions : posix_getrlimit

posix_getrlimit

Return info about system resource limits (PHP 4, PHP 5)
array posix_getrlimit ( )

Example 1880. Example use of posix_getrlimit()

<?php

$limits
= posix_getrlimit();

print_r($limits);
?>

The above example will output something similar to:

Array
(
   [soft core] => 0
   [hard core] => unlimited
   [soft data] => unlimited
   [hard data] => unlimited
   [soft stack] => 8388608
   [hard stack] => unlimited
   [soft totalmem] => unlimited
   [hard totalmem] => unlimited
   [soft rss] => unlimited
   [hard rss] => unlimited
   [soft maxproc] => unlimited
   [hard maxproc] => unlimited
   [soft memlock] => unlimited
   [hard memlock] => unlimited
   [soft cpu] => unlimited
   [hard cpu] => unlimited
   [soft filesize] => unlimited
   [hard filesize] => unlimited
   [soft openfiles] => 1024
   [hard openfiles] => 1024
)

Code Examples / Notes » posix_getrlimit

petert

The array returned (on a RH6.2 box) is:
    soft core = 0
    hard core = unlimited
    soft data = unlimited
    hard data = unlimited
    soft stack = 8388608
    hard stack = unlimited
    soft totalmem = unlimited
    hard totalmem = unlimited
    soft rss = unlimited
    hard rss = unlimited
    soft maxproc = 2048
    hard maxproc = 2048
    soft memlock = unlimited
    hard memlock = unlimited
    soft cpu = unlimited
    hard cpu = unlimited
    soft filesize = unlimited
    hard filesize = unlimited
    soft openfiles = 1024
    hard openfiles = 1024


Change Language


Follow Navioo On Twitter
posix_access
posix_ctermid
posix_get_last_error
posix_getcwd
posix_getegid
posix_geteuid
posix_getgid
posix_getgrgid
posix_getgrnam
posix_getgroups
posix_getlogin
posix_getpgid
posix_getpgrp
posix_getpid
posix_getppid
posix_getpwnam
posix_getpwuid
posix_getrlimit
posix_getsid
posix_getuid
posix_initgroups
posix_isatty
posix_kill
posix_mkfifo
posix_mknod
posix_setegid
posix_seteuid
posix_setgid
posix_setpgid
posix_setsid
posix_setuid
posix_strerror
posix_times
posix_ttyname
posix_uname
eXTReMe Tracker