]> scripts.mit.edu Git - www/raw.git/blob - faq/34.mdwn
Import from TextPattern
[www/raw.git] / faq / 34.mdwn
1 [[!meta title="Do you enforce any resource limits?"]]
2 Yes. The server enforces the following resource limits on web
3 scripts:
4     core file size          (blocks) 0
5     data seg size           (kbytes) 1048576
6     file size               (blocks) unlimited
7     pending signals                  32255
8     max locked memory       (kbytes) 32
9     max memory size         (kbytes) 524268
10     open files                       1024
11     pipe size            (512 bytes) 8
12     POSIX message queues     (bytes) 819200
13     stack size              (kbytes) 10240
14     cpu time               (seconds) 300
15     max user processes               4096
16     virtual memory          (kbytes) 524288
17     file locks                       unlimited
18
19 These limits exist primarily to protect the server from runaway
20 scripts.
21
22 There are also some timeouts in the Apache configuration that apply
23 to web scripts. In particular, if a CGI or FastCGI application goes
24 30 seconds without writing and flushing any data back to Apache,
25 the request will be aborted.
26
27 Finally, there are also looser limits placed on processes launched
28 from a non-web context:
29     core file size          (blocks) 0
30     data seg size           (kbytes) 1048576
31     file size               (blocks) unlimited
32     pending signals                  32255
33     max locked memory       (kbytes) 32
34     max memory size         (kbytes) 524268
35     open files                       1024
36     pipe size            (512 bytes) 8
37     POSIX message queues     (bytes) 819200
38     stack size              (kbytes) 10240
39     cpu time               (seconds) unlimited
40     max user processes               1024
41     virtual memory          (kbytes) 1048576
42     file locks                       unlimited
43
44 If you find yourself running into these limits on a regular basis,
45 please contact us to let us know what is triggering the limits.
46
47
48