# JVMByteSwapTool **Repository Path**: dantefung/JVMByteSwapTool ## Basic Information - **Project Name**: JVMByteSwapTool - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2024-09-30 - **Last Updated**: 2025-08-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # JVM ByteSwap Tool ![logo](sw-ico.png) ![actions](https://github.com/sunwu51/JVMByteSwapTool/actions/workflows/main.yml/badge.svg) A tool that can hot swap the class byte code while jvm is running. Very suitable for `SpringBoot framework`. Based on the jvm instrumentation tech, ASM, javassist and JVMTI. # Usage Download the zip file from the [release](https://github.com/sunwu51/JVMByteSwapTool/releases) page. Make sure you have a JDK >= 1.8. ```bash $ java -jar swapper.jar // All of the java processes will be listed in following // Choose the pid you want to attach // Then a web ui will be served at http://localhost:8000 ``` Visit this url `http://localhost:8000` then you will get the following Web UI. If you want to change the http server port or web socket port: ```bash $ java -jar -Dw_http_port=9999 -Dw_ws_port_19999 swapper.jar ``` ![image](https://i.imgur.com/WSKkrxX.png) Now you can enjoy the functionalities of swapper tool. For example, `Watch` some methods. Trigger this method, and then the params and return value and execution time cost will be printed. ![image](https://i.imgur.com/RaEZ1w5.png) It's `Watch` one of the functions provided by swapper tool. Get more functions and details from the [wiki](https://github.com/sunwu51/JVMByteSwapTool/wiki).