我有一台装有 Ubuntu Server 12、Apache、MySQL 和 PHP 的虚拟机。我正尝试在同一台机器上设置 ApacheDS。因此,我毫无问题地安装了 xubuntu、java 和 apacheds(使用 deb 包)。然后,当我尝试使用以下命令启动 ApacheDS 时:
$ sudo /etc/init.d/apacheds-2.0.0-M15-default start
我得到:
Starting ApacheDS - default...
$
然后如果我执行:
$ sudo /etc/init.d/apacheds-2.0.0-M15-default status
我得到:
Starting ApacheDS - default is not running
我检查了 /var/log/syslog,什么都没有!出了什么问题?有什么想法吗?
答案1
我有同样的问题。
您可以在“控制台”模式下查看启动问题。只需执行:
$ sudo /etc/init.d/apacheds-2.0.0-M15-default console
就我而言,我收到以下错误消息,该消息源自“java”命令:
Running ApacheDS - default...
wrapper | --> Wrapper Started as Console
wrapper | Launching a JVM...
wrapper | JVM exited while loading the application.
jvm 1 | Error occurred during initialization of VM
jvm 1 | Could not reserve enough space for object heap
jvm 1 | Error: Could not create the Java Virtual Machine.
jvm 1 | Error: A fatal exception has occurred. Program will exit.
wrapper | There were 1 failed launches in a row, each lasting less than 300 seconds. Giving up.
wrapper | There may be a configuration problem: please check the logs.
wrapper | <-- Wrapper Stopped
需要修复的是 Java 选项。就我而言,我必须减少初始堆大小:
java -Xms16m -Xmx64m ...