比較流行的發(fā)行版本,比如Debian/Ubuntu/Arch Linux/Gentoo的shell session限制都是1024。 大多數(shù)Linux發(fā)行版本中,正常情況下session中max open files數(shù)限制為1024,對于Weblogic Server部署過程來說太小了,必須增大。 臨時(shí)解決方法:
或者干脆用*表示所有用戶: 2. 其他來自Debian GNU/Linux官方文檔和Oracle Technology Network的解決方法,直接修改內(nèi)核參數(shù),無須重啟系統(tǒng)。 修改內(nèi)核參數(shù) 查看當(dāng)前file handles使用情況: 另外一個(gè)命令: 此外,用sysctl來修改內(nèi)核參數(shù)fs.file-max和用ulimit的區(qū)別,我花了不少時(shí)間研究,討教了Linux/FreeBSD/Solaris/OpenSolaris老鳥Jockey同學(xué),得到點(diǎn)撥之后終于基本弄清楚原委了。 基本上優(yōu)先級: The Linux kernel provides the getrlimit and setrlimit system calls to get and set resource limits per process. Each resource has an associated soft and hard limit. The soft limit is the value that the kernel enforces for the corresponding resource. The hard limit acts as a ceiling for the soft limit: an unprivileged process may only set its soft limit to a value in the range from 0 up to the hard limit, and (irreversibly) lower its hard limit. A privileged process (one with the CAP_SYS_RESOURCE capability) may make arbitrary changes to either limit value. |
|