在啓動amoeba時候,報錯如下:
[root@Gamedb1 bin]# ./amoeba
The stack size specified is too small, Specify at least 160k
Could not create the Java virtual machine.
解決方法:
修改 amoeba 文件,找到如下這一行
DEFAULT_OPTS="-server -Xms256m -Xmx256m -Xss128k"
將其修改爲:
DEFAULT_OPTS="-server -Xms256m -Xmx256m -Xss256k"
保存,再次啓動
[root@Gamedb1 bin]# ./amoeba
amoeba start|stop
提示要加參數
[root@Gamedb1 amoeba]# ./bin/amoeba start
log4j:WARN log4j config load completed from file:/usr/local/amoeba/conf/log4j.xml
2012-12-06 18:57:08,863 INFO context.MysqlRuntimeContext - Amoeba for Mysql current versoin=5.1.45-mysql-amoeba-proxy-2.2.0
log4j:WARN ip access config load completed from file:/usr/local/amoeba/conf/access_list.conf
2012-12-06 18:57:09,566 INFO net.ServerableConnectionManager - Amoeba Monitor Server listening on /127.0.0.1:44571.
2012-12-06 18:57:09,566 INFO net.ServerableConnectionManager - Amoeba for Mysql listening on 0.0.0.0/0.0.0.0:8066.
2012-12-06 19:00:13,345 WARN net.ServerableConnectionManager - Amoeba for Mysql shutdown completed!
2012-12-06 19:00:13,346 WARN net.ServerableConnectionManager - Amoeba Monitor Server shutdown completed!