All posts by 龙生

jsp、freemarker、velocity、thymeleaf页面方案分析

在java领域,表现层技术主要有三种,
(1)jsp;
(2)freemarker;
(3)velocity;
(4)thymeleaf;

龙生   12 Sep 2025
View Details

English Learning Diary 2025-09-12

If you buy a dress, you’ll get a pair of earrings for free! Look, this shop sells the best swimsuits! If you buy two swimsuits, you can get a pair of earings for free! Do you want to get anything? Do you sell the earrings that this movie star is wearing? That shop has many things that I want to buy. I like the movie star who is wearing the yellow swimsuit! She gave this to me for free, so I didn’t have to pay for it. This […]

龙生   12 Sep 2025
View Details

English Learning Diary 2025-09-11

He paid with Alipay. I paid ten dollars for this scarf. You paid too much for those shoes. Yeah, I want to return them. I paid for these books with Alipay. The scarf you like is sold. The swimsuit that Emma wants is sold. The dress that you like is sold. Emma got her sister a beautiful swimsuit. I had so much fun shopping today! I got the most beautiful skirt! My mom got me an amazing dress. I’m waiting in line now. They waited in line for […]

龙生   11 Sep 2025
View Details

Kafka 内存池MemoryPool 设计

GarbageCollectedMemoryPool 是一个非常巧妙的调试工具。它通过继承 SimpleMemoryPool 复用了内存额度控制的逻辑,然后通过重写钩子方法和结合Java的引用机制,增加了一层“内存泄漏”的监控。

正常流程:tryAllocate() -> bufferToBeReturned (登记) -> 使用 -> release() -> bufferToBeReleased (注销) -> ByteBuffer 失去引用 -> 被GC。
泄漏流程:tryAllocate() -> bufferToBeReturned (登记) -> 使用 -> 忘记调用 release() -> ByteBuffer 失去引用 -> 被GC -> BufferReference 进入队列 -> 后台线程检测到,并从 buffersInFlight 中找到了登记信息 -> 报告错误。

龙生   09 Sep 2025
View Details

Java中Redis的ValueOperations.set后,Key乱码的解决方法

 

龙生   03 Sep 2025
View Details

Java进阶(JVM调优)——JVM调优参数 & JDK自带工具使用 & 内存溢出和死锁问题案例 & GC垃圾回收

1.JVM调优的相关知识,给出了一个demo案例;
2.JVM调优的主要参数;
3.jdk自带的jvm分析工具的使用;
3.内存溢出的调优场景,逐步分析定位问题;
4.发生死锁的分析案例

龙生   23 Aug 2025
View Details

JVM参数设置

-Xms设置堆的最小空间大小。
-Xmx设置堆的最大空间大小。
-XX:NewSize设置新生代最小空间大小。
-XX:MaxNewSize设置新生代最大空间大小。
-XX:PermSize设置永久代最小空间大小。
-XX:MaxPermSize设置永久代最大空间大小。
-Xss设置每个线程的堆栈大小。

龙生   23 Aug 2025
View Details

java -XX参数主要有3种:行为参数,调优参数,调试参数

 

龙生   23 Aug 2025
View Details

一文搞懂高并发性能指标:QPS、TPS、RT、并发数、吞吐量

QPS,每秒查询
TPS,每秒事务
RT,响应时间
Concurrency,并发数

龙生   22 Aug 2025
View Details

RocketChat:开源聊天软件部署

RocketChat是一款优秀的开源聊天软件。支持各种平台,IOS、Android、Web、Mac、Windows以及Linux,安装部署简单,功能简单易用,目前部分功能还在完善当中,特别适合小公司自建聊天平台。项目开源地址 https://github.com/RocketChat,项目官方站点https://rocket.chat,这里将安装部署服务端的一些步骤分享给大家,希望对需要的小伙伴有所帮助。

龙生   11 Aug 2025
View Details
1 2 412