如果要限制 nsslapd 进程所使用的堆内存量,可以设置动态内存占用的阈值。当目录服务器在资源共享或资源稀少的计算机上运行时,可能需要设置此阈值。
只能在 SolarisTM 和 Linux 平台上设置此阈值。
有关调整内存大小的信息,请参见《Sun Java System Directory Server Enterprise Edition 6.1 Deployment Planning Guide》中的“Directory Server and Memory”。
无法使用 DSCC 执行此任务。请使用命令行,如以下过程所述。
默认情况下,heap-high-threshold-size 和 heap-low-threshold-size 属性是 undefined。
设置堆内存高端阈值的最大值。
$ dsconf set-server-prop -h host -p port heap-high-threshold-size:value |
其中,value 是 undefined 或用千兆字节 (G)、兆字节 (M)、千字节 (k) 或字节 (b) 表示的内存大小。您的计算机必须支持所指定的大小。
有关用于 heap-high-threshold-size 的值的建议,请参见 server(5dsconf) 手册页。
设置堆内存低端阈值的最大值(可选)。
$ dsconf set-server-prop -h host -p port heap-low-threshold-size:value |
其中,value 是 undefined 或用千兆字节 (G)、兆字节 (M)、千字节 (k) 或字节 (b) 表示的内存大小。您的计算机必须支持所指定的大小。
有关用于 heap-low-threshold-size 的值的建议,请参见 server(5dsconf) 手册页。