Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
troubleshooting:private-memory-size [2006/12/19 09:40] – 81.180.83.75 | troubleshooting:private-memory-size [2008/02/13 17:09] (current) – fix errors, actualize content 212.227.35.68 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Increase Private Memory Size ===== | ||
+ | OpenSER has its own memory manager. Even if you have lot of memory in the system, OpenSER will use only the memory size it was configured, and you may get "out of memory" | ||
+ | |||
+ | By default the size of private memory chunk used by each OpenSER process is 1 MB. | ||
+ | |||
+ | To increase the size of private memory you need to compile OpenSER from sources. Once you get the sources from SVN or the openser.org' | ||
+ | |||
+ | - edit the file ' | ||
+ | |||
+ | /*used only if PKG_MALLOC is defined*/ | ||
+ | #define PKG_MEM_POOL_SIZE 1024*1024 | ||
+ | |||
+ | - change the value of PKG_MEM_POOL_SIZE to desired size, for example to have 4MB of private memory: | ||
+ | |||
+ | #define PKG_MEM_POOL_SIZE 4*1024*1024 | ||
+ | |||
+ | - recompile and reinstall OpenSER | ||
+ | |||
+ | make all; make install; | ||
+ | |||
+ | |||
+ | ====== Increase Share Memory Size ====== | ||
+ | |||
+ | To increase the share memory size use ' | ||
+ | |||
+ | < | ||
+ | openser -m 256 | ||
+ | |||
+ | # this will run OpenSER with 256MB of share memory | ||
+ | </ | ||
+ | |||
+ | ===== Troubleshooting Stuff ===== | ||
+ | |||
+ | {{indexmenu> |