码迷,mamicode.com
首页 > 系统相关 > 详细

linux 远程调试

时间:2018-06-27 11:28:41      阅读:198      评论:0      收藏:0      [点我收藏+]

标签:export   prot   instance   dsp   agent   .com   log4j   ESS   tap   

#!/bin/bash
#:代表多个
export LD_LIBRARY_PATH=~/demoProduce/dsp/lib:~/demoProduce/dsp/IMIXProtocol/lib:~/demoProduce/dsp/imixObject/lib:$LD_LIBRARY_PATH
export REMOTE_DEBUG="-Xms1024m -Xmx1024m -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=10020"

cd ~/demoProduce/produce/

libcp=""; for i in `ls ../lib/`; do libcp=$libcp"../lib/$i:"; done;
democp=""; for i in `ls ../produce/`; do democp=$democp"../produce/$i:"; done;

java -DSERVICE_INSTANCE_ID=CMDS-0008 ${REMOTE_DEBUG} -cp $libcp$democp cn.com.cfets.produce.DemoProducer ../cfg/log4j.properties ../cfg/converter.properties ../cfg/dspimtapi.cfg                                                                                                                                                                   

 

linux 远程调试

标签:export   prot   instance   dsp   agent   .com   log4j   ESS   tap   

原文地址:https://www.cnblogs.com/xiaolei2017/p/9232850.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!