ArthasHotSwap icon indicating copy to clipboard operation
ArthasHotSwap copied to clipboard

This repo is a plugin of Intellij IDEA that can help you achieve hot swap without any configuration and debugging.(一种简单快捷的实现Java热部署方式,使用该IntelliJ IDEA插件进行远程服务器热部署无需任何...

Results 22 ArthasHotSwap issues
Sort by recently updated
recently updated
newest added

右键点击”swap this class“时 报错如下: >> java.io.IOException: /scripts/template/HotSwapScript4OneClass.sh can not be found at com.xxxtai.arthas.utils.IoUtil.getResourceFile(IoUtil.java:18) at com.xxxtai.arthas.action.SwapClassAction.renderHotSwapScriptWithTemplate(SwapClassAction.java:234) at com.xxxtai.arthas.action.SwapClassAction.actionPerformed(SwapClassAction.java:90) at com.intellij.openapi.actionSystem.ex.ActionUtil.lambda$performActionDumbAwareWithCallbacks$4(ActionUtil.java:235) at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareWithCallbacks(ActionUtil.java:256) at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAwareWithCallbacks(ActionUtil.java:235) at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.lambda$performAction$0(ActionMenuItem.java:289) at com.intellij.openapi.wm.impl.FocusManagerImpl.runOnOwnContext(FocusManagerImpl.java:233) at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.performAction(ActionMenuItem.java:281) at...

您好,我们的服务器没有外网的访问权限,hub主是否考虑添加个离线版本,比如使用base64进行class文件和shell的转移。

Jar包部署腾讯云支持进行热更新吗?

目前还不影响使用,但是会一直有这个报错。 Do not request resource from classloader using path with leading slash com.intellij.diagnostic.PluginException: /scripts/template/HotSwapScript4OneClass.sh [Plugin: ArthasHotSwap] at com.intellij.ide.plugins.cl.PluginClassLoader.findResource(PluginClassLoader.java:472) at com.intellij.ide.plugins.cl.PluginClassLoader.getResourceAsStream(PluginClassLoader.java:462) at com.xxxtai.arthas.utils.IoUtil.getResourceFile(IoUtil.java:16) at com.xxxtai.arthas.action.SwapClassAction.renderHotSwapScriptWithTemplate(SwapClassAction.java:234) at com.xxxtai.arthas.action.SwapClassAction.actionPerformed(SwapClassAction.java:90) at com.intellij.openapi.actionSystem.ex.ActionUtil.lambda$performActionDumbAwareWithCallbacks$4(ActionUtil.java:240) at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareWithCallbacks(ActionUtil.java:261)...

arthas版本号:3.5.0 系统版本:Linux version 3.10.0-957.21.3.el7.x86_64 ([email protected]) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) ) #1 SMP Tue Jun 18 16:35:19 UTC 2019 执行到第7部的时候,脚本列出了多个java进程, 但是在还未输入第几个情况下,脚本直接向后执行, 貌似自动选择了一个错误的进程,导致最终热部署失败。

当服务器存在多个java进程的时候会默认选择第1个进行热部署,有些情况下第一个进程并不是我想要部署的进程,导致我必须要kill 掉无用的java进程,这种情况下是否可以在 sh 后支持手动输入参数指定要部署的进程号

![image](https://user-images.githubusercontent.com/9362922/116646027-a81d6d00-a9a9-11eb-84b1-ef1b1220e13f.png) 我是按照步骤,生成热部署命令然后直接在服务器上执行的,但是失败了,我不知道我哪里操作出问题了?

Now, we must choose one class, and then swap this class. However, we often modify more than one file, it would be nice if you could hot swap all modified...

enhancement

插件非常实用,可以考虑一下通过pgm命令来进行批量的热部署么?示例代码如下 ```shell pgm -f host-name -b -A 'sudo su admin -c "cd ~ ; sudo curl -L http://xxxtai-arthas-hot-swap.oss-cn-beijing.aliyuncs.com/public/********************=x > HotSwapScript4OneClass.sh ; chmod +x HotSwapScript4OneClass.sh; yes | ./HotSwapScript4OneClass.sh xxx xxx "'...