zoukankan      html  css  js  c++  java
  • tomcat 开启远程debug

    修改 tomcat  目录下  /bin/catelina.sh

    #                   execution immediately after startup. Default is "n".

    #

    #   JPDA_OPTS       (Optional) Java runtime options used when the "jpda start"

    #                   command is executed. If used, JPDA_TRANSPORT, JPDA_ADDRESS,

    #                   and JPDA_SUSPEND are ignored. Thus, all required jpda

    #                   options MUST be specified. The default is:

    #

    #                   -agentlib:jdwp=transport=$JPDA_TRANSPORT,

    #                       address=$JPDA_ADDRESS,server=y,suspend=$JPDA_SUSPEND

    #

    #   CATALINA_PID    (Optional) Path of the file which should contains the pid

    #                   of catalina startup java process, when start (fork) is used

    #

    #   LOGGING_CONFIG  (Optional) Override Tomcat's logging config file

    #                   Example (all one line)

    #                   LOGGING_CONFIG="-Djava.util.logging.config.file=$CATALINA_BASE/conf/logging.properties"

    #

    #   LOGGING_MANAGER (Optional) Override Tomcat's logging manager

    #                   Example (all one line)

    #                   LOGGING_MANAGER="-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager"

    # -----------------------------------------------------------------------------

     

    # OS specific support.  $var _must_ be set to either true or false.

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

    cygwin=false

    os400=false

    darwin=false

    case "`uname`" in

    CYGWIN*) cygwin=true;;

    OS400*) os400=true;;

    Darwin*) darwin=true;;

    esac

  • 相关阅读:
    第二十课字符串
    数学归纳法:搞定循环与递归的钥匙
    11预处理命令下
    Xshell6无法连接上虚拟机的解决方法
    redis数据库常用命令
    redis使用get命令,中文乱码问题
    Ubuntu下redis的安装和简单操作
    启动hbase后,使用指令进入shell命令行模式时报错"wrong number of arguments (0 for 1)"
    启动hbase报错:“SLF4J: Class path contains multiple SLF4J bindings.”解决方法
    ./bin/hadoop 提示“没有那个文件或目录”解决方法
  • 原文地址:https://www.cnblogs.com/wchxj/p/10108729.html
Copyright © 2011-2022 走看看