Memory Usage and Stack Size
Contents
If your Iguana server on Unix, Mac OS X or Linux is running a large number of channels and does not have much memory, you can reduce the server’s memory usage by changing the stack size on your system.
To view the current stack size, use the ulimit -a command. This command displays the limits and sizes that have been set for your system, including the stack size:
myUnixSystem:~ username$ ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) 6144 file size (blocks, -f) unlimited max locked memory (kbytes, -l) unlimited max memory size (kbytes, -m) unlimited open files (-n) 256 pipe size (512 bytes, -p) 1 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 266 virtual memory (kbytes, -v) unlimited
To change the stack size, use the ulimit -s <size> command, where <size> is the new stack size in kilobytes.
Note: Be careful when setting the stack size. A stack size that is too small may have detrimental effects on other programs.
Continue: Database Deployment Issues