java -javaagent:cubic-agent.jar -Dcubic.agent.service_name=cubic-proxy -jar -Xms2048m -Xmx2048m code_generator2-2.3.jar
客户端接入时报错,对客户端有什么要求么
30magent client start error will restart 10s...
mstart cubic netty client
AgentNettyClient init process size:6
mwill connection server:localhost:9999...
30mChannel not connection.
mcubic netty client start fail
magent client start error will restart 10s...
mstart cubic netty client
其实这个不是报错信息,这是代表你的agent 没有连接到proxy,它会不停地重试。你看下agent 配置文件的端口 和ip是不是正确。还有 -javaagent:这后边必须是绝对路径
"你看下agent 配置文件的端口 和ip是不是正确",客户端接入的时候并没有提及这一块的配置,是否能说明下,
另外"-javaagent:这后边必须是绝对路径",我也改成了绝对路径,但是依旧报同样的错,windows下路径也是能用的吧
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
09:55:42.920 [main] ERROR com.cubic.agent.conf.CubicConfInitalizer - Failed to read the config file, agent will is going to run in default config.
com.cubic.agent.conf.CubicConfigNotFoundException: Failed to load agent.config
at com.cubic.agent.conf.CubicConfInitalizer.loadConfig(CubicConfInitalizer.java:75)
at com.cubic.agent.conf.CubicConfInitalizer.initConfig(CubicConfInitalizer.java:37)
at com.cubic.agent.MatrixAgent.premain(MatrixAgent.java:19)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(Unknown Source)
at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(Unknown Source)
09:55:43.256 [main] DEBUG com.cubic.agent.cmd.jvm.threadpool.ThreadPoolAgent - load cubic thread pool agent.
可以用cubic_config systemproperty指定配置文件路径
java -javaagent:cubic-agent.jar -Dcubic.agent.service_name=cubic-proxy -Dcubic_config=/home/cubic/config/agent.config -jar -Xms2048m -Xmx2048m code_generator2-2.3.jar
有一个agent-dist目录,你在部署时,这个目录要作为一个整体的。你只需要把cubic-agent.jar的绝对路径拷贝加到启动参数中就行了
用上了,谢谢你们的支持
有什么问题或者更好的建议及时喊我们
登录 后才可以发表评论