比较流行的发行版本,比如Debian/Ubuntu/Arch Linux/Gentoo的shell session限制都是1024。 大多数Linux发行版本中,正常情况下session中max open files数限制为1024,对于Weblogic Server部署过程来说太小了,必须增大。 临时解决方法:
或者干脆用*表示所有用户: 2. 其他来自Debian GNU/Linux官方文档和Oracle Technology Network的解决方法,直接修改内核参数,无须重启系统。 修改内核参数 查看当前file handles使用情况: 另外一个命令: 此外,用sysctl来修改内核参数fs.file-max和用ulimit的区别,我花了不少时间研究,讨教了Linux/FreeBSD/Solaris/OpenSolaris老鸟Jockey同学,得到点拨之后终于基本弄清楚原委了。 基本上优先级: 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. |
|