`

设置JVM启动属性,设置tomcat远程调试端口

    博客分类:
  • JAVA
 
阅读更多

在eclipse中设置启动属性,或者在命令行运行时设置   -Dproperty=weirongneng


 

public class Dproperty {
	
	public static void main(String[] args) {
		String  val = System.getProperty("wrn");
		System.out.println(val);
	}
}

 设置tomcat远程调试端口:

1、开启远程调试端口

WIN系统,在catalina.bat里:

SET CATALINA_OPTS=-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8899

Linux系统,在catalina.sh里:

CATALINA_OPTS="-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8899"

  • 大小: 54.2 KB
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics