在命令行或eclipse.ini文件中可以设置一些eclipse启动时用的参数:
-data myworkspace可以指定自己的工作区
-vm javapath 可以指定用哪个java vm
-nl locale 定义语言环境
设置vm参数时,要放在-vmargs之后:
-vmargs -djava.util.logging.config.file=mylog.properties 设置日志文件位置.调试状态下可以在console视图中看到日志.
-vmargs -xms 设置jvm初始化堆的内存大小
-vmargs -xmx 设置jvm最大的堆内存大小
-vmargs -xss 设置jvm栈内存大小
-vmargs -xx:maxpermsize 设置permanent generation使用的最大内存.
-vmargs -xx:permsize 设置程序permanent generation内存大小.
以上就是eclipse参数怎么设置的详细内容。
