Jrebel and Xrebel teaching

Introduction

JRebel and XRebel are two very useful tools that can significantly improve Java developer productivity and application performance.

JRebel is a powerful Java development tool that allows developers to make code modifications and debug without restarting the application. Traditionally, every modification to Java code requires recompiling and restarting the application, which wastes a lot of time. However, with JRebel, you can instantly see the effects of your code changes without restarting the application. This ability of instant feedback greatly improves development efficiency and shortens the development cycle.

JRebel enables code modifications to take effect immediately by reloading modified class files at runtime. It supports various Java frameworks and servers, including Spring, Hibernate, Tomcat, etc. In addition, JRebel also provides integration with common IDEs (such as Eclipse, IntelliJ IDEA), making using JRebel more convenient.

XRebel is another powerful tool focused on performance monitoring and optimization of Java applications. It can monitor and analyze application performance bottlenecks in real time, helping developers quickly locate and solve performance problems. XRebel provides an intuitive user interface that displays key metrics such as application request and response times, database queries, HTTP sessions, and more. It is also able to detect potential performance issues, such as slow queries, memory leaks, etc., and provide corresponding recommendations and solutions.

XRebel supports a variety of Java applications, including web applications, enterprise applications, and more. It can be integrated with common Java development tools and servers, such as Eclipse, IntelliJ IDEA, Tomcat, etc.

To sum up, JRebel and XRebel are two very useful tools that can greatly improve Java developer productivity and application performance. JRebel allows instant viewing of the effects of code modifications, while XRebel helps developers monitor and optimize application performance in real time. The combination of these two tools will bring you a more efficient and optimized experience in Java development.

For activation, please refer to this article:

Jrebel and Xrebel activation

1. What functions does XRebel have?

Check the error message directly when calling the interface. There is no need to go to the server to read the log file, avoiding the tedious troubleshooting of log problems. Are you still switching windows again and again to read the log? ? ?

alt

查看接口内部处理时间,可以通过这个分析并优化程序性能

alt

查看所有的IO操作,详细SQL,SQL耗时都有哦,神奇啊!!!!

alt

查看日志。。

alt

二、下载JRebel

官方地址:https://jrebel.com/software/xrebel/download/thank-you/?file=xrebel/releases/xrebel-4.0.1.zip 私人提供:https://weiyun-1253652709.cos.ap-guangzhou.myqcloud.com/xrebel.jar

三、启动

启动项目时,指定javaagent即可 :-javaagent:xrebel.jar,后面jar包地址根据实际环境修改

TIP:idea中springboot项目启动

alt

四、查看

项目启动后,在项目根url后面输入/xrebel,并点击start即可

alt

点击之后是这样子滴

alt

这时候进swagger就能直接看到了哦!

alt

请关注某绿色软件【程序员朱永胜】回复1011获取

双击打开

image-20230806204843304

获取UUID

打开https://www.guidgen.com/ 生成一个UUID

image-20230806204943298
image-20230806204943298

JH

拷贝UUID到这里即可JH

image-20230806205133975
image-20230806205133975

alt com/202308062052295.png)

设置成开机自启

方法一启动后不久会自动挂掉,建议使用方法二

方法一

打开cmd执行以下命令

这里要注意,必须为管理员启动

alt

注册为服务

   sc create jrebelJH binPath= "C:\Users\17602\Documents\install\ReverseProxy_windows_386.exe"

设置开机自启

   sc config jrebelJH start= auto

启动

    sc start jrebelJH

方法二

关注【程序员朱永胜】回复【1022】获取安装包

打开cmd执行以下命令

这里要注意,必须为管理员启动

alt

将压缩包解压

执行命令

cd C:\Users\17602\Downloads\nssm-2.24-101-g897c7ad\win64\

注册

nssm install jrebelJH2 "C:\Users\17602\Documents\install\ReverseProxy_windows_386.exe"

启动

    sc start jrebelJH
alt

本文由 mdnice 多平台发布

Guess you like

Origin blog.csdn.net/njpkhuan/article/details/132693458