agent

TeamCity agent error “failed to perform checkout on agent”

纵然是瞬间 提交于 2020-01-22 11:19:06
问题 I am running my TeamCity 7 server and agent on MacOS. My repo is on github. I use ssh and I know that the authentication is correctly configured, because the test is successful. The build works fine when I use VCS Checkout Mode "Automatically on server", however when I use VCS Checkout mode "Automatically on agent" I get this error. [13:40:35][Updating sources] Failed to perform checkout on agent: '/usr/bin/git fetch --progress origin +refs/heads/master:refs/remotes/origin/master' command

Breakpoint set with IntelliJ not working in premain of remote custom java agent

三世轮回 提交于 2020-01-14 12:19:47
问题 I've started to implement a simple Java agent that does some instrumentation before a class is loaded by JVM. The thing is I need to do some debugging on this agent, but what I tried so far had failed( I tried to remote debug the agent but it's not working) I use IntelliJ and Maven( to generate the .jar agent). So my question:Is there any trick to remote debug a simple java agent? 回答1: As it turns out I have a project that demos Java instrumentation, which I have tested out debugging in

Breakpoint set with IntelliJ not working in premain of remote custom java agent

。_饼干妹妹 提交于 2020-01-14 12:19:25
问题 I've started to implement a simple Java agent that does some instrumentation before a class is loaded by JVM. The thing is I need to do some debugging on this agent, but what I tried so far had failed( I tried to remote debug the agent but it's not working) I use IntelliJ and Maven( to generate the .jar agent). So my question:Is there any trick to remote debug a simple java agent? 回答1: As it turns out I have a project that demos Java instrumentation, which I have tested out debugging in

flume配置文件

北城以北 提交于 2020-01-11 04:55:56
读文件log传入kafka中 agent.sources = s1 agent.channels = c1 agent.sinks = k1 agent.sources.s1.type=exec agent.sources.s1.command=tail -F /tmp/logs/kafka.log agent.sources.s1.channels=c1 agent.channels.c1.type=memory agent.channels.c1.capacity=10000 agent.channels.c1.transactionCapacity=100 #设置Kafka接收器 agent.sinks.k1.type= org.apache.flume.sink.kafka.KafkaSink #设置Kafka的broker地址和端口号 agent.sinks.k1.brokerList=master:9092 #设置Kafka的Topic agent.sinks.k1.topic=kafkatest #设置序列化方式 agent.sinks.k1.serializer.class=kafka.serializer.StringEncoder agent.sinks.k1.channel=c1 来源: https://www.cnblogs.com/zxf330301/p

Generic reply from agent/mailboxprocessor?

喜夏-厌秋 提交于 2020-01-04 14:09:17
问题 I currently have an agent that does heavy data processing by constantly posting "work" messages to itself. Sometimes clients to this agent wants to interrupt this processing to access the data in a safe manner. For this I thought that posting an async to the agent that the agent can run whenever it's in a safe state would be nice. This works fine and the message looks like this: type Message = |Sync of Async<unit>*AsyncReplyChannel<unit> And the agent processing simply becomes: match mailbox

jvmti agent deadlock

半腔热情 提交于 2020-01-04 02:42:41
问题 When I run my jvmti agent with a java program, it seems that jvm encounters a deadlock. In my jvmti agent, I create a single raw monitor in Agent_OnLoad() and enter that lock at the beginning of every callback function and exit that lock at the end of every callback functions. I don't know the reason of this deadlock. Is there any other possibilities of deadlocks in jvmti agents? thanks. 回答1: Yes, there is a possibility of deadlocks in JVMTI Agent. The JVMTI Reference states: The same thread

SSH Jump Host WITHOUT Agent Forwarding

蓝咒 提交于 2020-01-01 16:59:48
问题 Although a simple question, I have searched for days without success. M = My machine J = Jump Host S = Server Jump Host has my public key on authorized_keys. Server has J's public key on authorized_keys. Allowed connections (due to key authentication): M -> J J -> S How is it possible for me to ssh into S from my machine? My current configuration is: host jump user root HostName x.x.x.x host server user root HostName x.x.x.x port 22 ForwardAgent no ProxyCommand ssh jump -W %h:%p It does not

Automated Exception Handling

瘦欲@ 提交于 2019-12-31 10:46:26
问题 I was wondering if something exists (in Java world) able to take an snapshot of the JVM current state with the following features: Do it while an exception is being thrown. Capture local variables, method's arguments, etc. Put it in a handy file which can be used to extract or reproduce in a IDE the situation in your source code. The two first features are required (third would be awesome). And it must be suitable for production use (so, there is no way about debuggers). Before asking this I

WSO2 MDM Android Agent issue

孤人 提交于 2019-12-24 13:37:30
问题 I was able to succesfully build and export the Android app in Eclipse after entering the server IP address in the CommonUtilities.java file. This apk is downloaded, installed and run on the mobile android device with success. But now when I enter all necessary data for first registration of the app and choose 'Register', I get a message saying : 'Authentication failed due to a conenction failure do you want to try again?' Any idea what I might be doing wrong? 回答1: Can you replace your

JADE action() not working

让人想犯罪 __ 提交于 2019-12-24 08:29:07
问题 I think I am missing something in my project. I need agents to perform specific task that I assign. I am using JADE. Inside the action() I wrote a for loop to display numbers 1 to 10. While running no error is showing and also the loop is not getting executed. When I run: java -cp jade.jar jade.Boot -gui agent:TestAgent I get a classNotFound Exception and also shows agent can't be created. When I run: java -cp jade.jar jade.Boot -gui -agent agent:TestAgent I get info as agent ready, but the