如何设置 JAVA_OPTS
答案:2 悬赏:60 手机版
解决时间 2021-11-13 22:37
- 提问者网友:不爱我么
- 2021-11-13 00:24
如何设置 JAVA_OPTS
最佳答案
- 五星知识达人网友:思契十里
- 2021-11-13 01:39
在windows平台,需要参照如下步骤设置:
1 On the taskabar, click Start, and then point to Settings, Control Panel, and System.
2 In the System Properties dialog box Advanced tab, click Environment Variables.
3 In the Environment Variables dialog box, under System variables, click New.
4 In the New System Variable dialog box, enter:
a Variable name: JAVA_OPTS.
b Variable value -Xms256m -Xmx512m
5 Click OK.
6 Verify that the Environment Variables dialog box displays the following system variable name value pair:
JAVA_OPTS="-Xms256m -Xmx512m "
7 Click OK, OK to close the System Properties dialog box.
在linux/unix下,需要参照以下步骤设置
1 Start a terminal session.
2 At the command prompt type:
3 export set JAVA_OPTS=”-Xms256m -Xmx512m”
4 Close the terminal session.
1 On the taskabar, click Start, and then point to Settings, Control Panel, and System.
2 In the System Properties dialog box Advanced tab, click Environment Variables.
3 In the Environment Variables dialog box, under System variables, click New.
4 In the New System Variable dialog box, enter:
a Variable name: JAVA_OPTS.
b Variable value -Xms256m -Xmx512m
5 Click OK.
6 Verify that the Environment Variables dialog box displays the following system variable name value pair:
JAVA_OPTS="-Xms256m -Xmx512m "
7 Click OK, OK to close the System Properties dialog box.
在linux/unix下,需要参照以下步骤设置
1 Start a terminal session.
2 At the command prompt type:
3 export set JAVA_OPTS=”-Xms256m -Xmx512m”
4 Close the terminal session.
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯