启动本地neo4j服务器进行开发时收到此错误消息(我正在使用heroku neo4j插件直播)。
WARNING: Detected a limit of 2560 for maximum open files, while a minimum value of 40000 is recommended.
WARNING: Problems with the operation of the server may occur. Please refer to the Neo4j manual regarding lifting this limitation.
我用Google搜索,试图在网站上搜索手册,下载并搜索pdf。 (希望能够消除RTFM响应)。我无法在Mac OSX 10.6中找到如何执行此操作。听起来像是非常基本的东西,它只是假设我会知道的。有什么想法吗?
答案 0 :(得分:1)
更改此设置的最佳方法是以launchd.plist格式设置资源限制,并使用它来生成开发shell或数据库进程。完成启动作业后,您可以加载,卸载并让系统启动它并根据需要重新生成它。
请参阅man launchd.plist - 寻找:
HardResourceLimits <dictionary of integers>
Resource limits to be imposed on the job. These adjust variables set with setrlimit(2). The follow-
ing keys apply:
NumberOfFiles <integer>
The maximum number of open files for this process. Setting this value in a system wide daemon
will set the sysctl(3) kern.maxfiles (SoftResourceLimits) or kern.maxfilesperproc
(HardResourceLimits) value in addition to the setrlimit(2) values.
我对发布的指南和blogs for Oracle 10g installs也运气不错,因为他们很好地解释了Oracle在Snow Leopard(以及其他版本)上喜欢改变的sysctl和内核值,因为Lion更加以发布为中心比以前的版本和你表示你的基本操作系统10.6。