如何在命令提示符中检查 JAVA_OPTS 值?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/18870998/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-12 11:47:34  来源:igfitidea点击:

How to check JAVA_OPTS value in command prompt?

javajboss

提问by user24453

Our application is deploy JBoss server then throws error PermGen space Then java_OPTS in set permgen variable in jboss bat and config file. JAVA_OPTs in value assige or not how to check it? How to check JAVA_OPTS value in command prompt?

我们的应用程序是部署 JBoss 服务器,然后在 jboss bat 和配置文件中的 set permgen 变量中抛出错误 PermGen space 然后 java_OPTS。JAVA_OPTs 中的值分配与否如何检查?如何在命令提示符中检查 JAVA_OPTS 值?

采纳答案by typohon111

if your JAVA_OPTS is set in Windows then with simple:

如果您的 JAVA_OPTS 是在 Windows 中设置的,那么简单:

echo %JAVA_OPTS%

in linux

在 linux 中

echo "$JAVA_OPTS"

but it is possible that it is set first in your standalone.bat file. Then its valid only for execution time of standalone.bat (.sh) file and you can find its value in this file.

但它可能首先在您的 standalone.bat 文件中设置。那么它只对 standalone.bat (.sh) 文件的执行时间有效,你可以在这个文件中找到它的值。

hope i could help

希望我能帮上忙