首页
AI Coding
NEW
沸点
课程
直播
活动
AI刷题
APP
插件
搜索历史
清空
创作者中心
写文章
发沸点
写笔记
写代码
草稿箱
创作灵感
查看更多
会员
登录
注册
OnebyWang
掘友等级
获得徽章 0
动态
文章
专栏
沸点
收藏集
关注
作品
赞
0
文章 0
沸点 0
赞
0
返回
|
搜索文章
OnebyWang
1年前
关注
Spring AOP Proxy 原理
工程依赖 我们需要使用 @Async 注解来说明 Spring AOP 的原理,@Async 注解在 spring-context 工程下,引入其依赖。 Spring Be...
0
评论
分享
OnebyWang
1年前
关注
CGLib Proxy 原理
工程依赖 第一种方式:引入 cglib 依赖。 第二种方式:引入 spring-core 依赖。 方便起见,Spring 将 CGLIB 的代码拷贝到了 spring-co...
0
评论
分享
OnebyWang
1年前
关注
JDK Proxy 原理
JDK Proxy 使用步骤 Proxy#newProxyInstance() 方法用于创建 JDK Proxy,JDK Proxy 只能基于接口创建代理。 ClassLo...
0
评论
分享
OnebyWang
1年前
关注
prometheus irate(counter) 问题
问题描述 SpringBoot Actuator Prometheus 暴露了中一个 http 访问计数的指标:http_server_requests_seconds_c...
0
评论
分享
OnebyWang
1年前
关注
Http Client Tcp Connect Failed Retry
为什么需要 Tcp Connect Failed Retry ? K8S 多副本环境下,如果服务消费方使用 http client 访问不健康的 pod(服务提供方),ht...
0
评论
分享
OnebyWang
1年前
关注
java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11F
报错原因 更换基础镜像后,使用 easy excel 报错:Could not initialize class sun.awt.X11FontManager。 如何解决 ...
0
1
分享
OnebyWang
1年前
关注
SpringBoot Tomcat 基础配置
ServerProperties 配置类 SpringBoot Tomcat 配置封装在 ServerProperties 类中,yml 配置文件中的前缀为 server。...
1
评论
分享
OnebyWang
1年前
关注
AOP + SpEL 实现简易 Redis 分布式锁
公司平台 Redis 规范不允许使用 lua 脚本,所以项目中无法使用 redisson 框架实现 Redis 分布式锁,因为 redisson 使用了大量的 lua 脚本...
0
评论
分享
OnebyWang
1年前
关注
SpringBoot Web 优雅停机源码分析
承接上一篇文章:SpringBoot 优雅停机,我们大概能够反推出 SpringBoot 停机两个重要的生命周期节点: WebServerGracefulShutdownL...
0
评论
分享
OnebyWang
1年前
关注
SpringBoot 优雅停机
SpringBoot 优雅停机的方式 K8S 停止 Pod 时,默认会先发送 SIGTERM 信号,尝试让应用进程优雅停机,如果应用进程无法在 K8S 规定的优雅停止超时时...
16
1
分享
OnebyWang
1年前
关注
K8S SpringBoot 微服务启动脚本
SpringBoot 应用启动参数 设置 JVM 垃圾收集器相关参数:年轻代使用 ParNew,老年代使用 CMS;新生代占堆空间的 1/3,老年代占堆空间的 2/3;在老...
0
评论
分享
OnebyWang
1年前
关注
Aviator 重复编译表达式致使 Metaspace 飙升,最终导致 OOM killed
问题 线上频繁收到 Pod 重启告警,通过 grafana 查看容器监控,发现程序在一瞬间加载大量的类,metaspace(no-heap) 空间飙升。 Pod 容器使用的...
1
评论
分享
OnebyWang
1年前
关注
分布式链路追踪:TraceIdFilter + MDC + Skywalking
痛点 查线上日志时,同一个 Pod 内多线程日志交错,很难追踪每个请求对应的日志信息。 日志收集工具将多个 Pod 的日志收集到同一个数据库中后,情况就更加混乱不堪了。 解...
43
5
分享
OnebyWang
1年前
关注
SpringBoot Actuator Prometheus 常用告警指标
JVM 堆内存告警 告警指标:jvm-memory-heap-usage 告警等级:P2 >= 0.85, P1 >= 0.95 对应措施:JVM GC 无法回收堆内存,d...
1
评论
分享
OnebyWang
1年前
关注
K8S Pod 常用告警指标
Pod CPU 利用率告警 告警指标:container-cpu-usage 告警等级:P2 >= 0.85, P1 >= 0.95 对应措施:通知开发同学查看 cpu l...
0
评论
分享
OnebyWang
1年前
关注
MethodValidationInterceptor、MethodSecurityInterceptor 切面顺序
问题描述 SpringBoot 项目引入了两个组件:Spring Web 和 Spring Security。 Spring Web:前端传入名为 viewId 的参数,使...
0
评论
分享
OnebyWang
1年前
关注
No appropriate protocol(protocol is disabled or cipher suites are inappropriate)
问题描述 Java 应用程序尝试与 MySQL Server 进行 SSL 握手,抛出异常:Caused by: javax.net.ssl.SSLHandshakeExc...
0
评论
分享
OnebyWang
1年前
关注
Reached the maximum number of URI tags for http.client.requests
问题描述 线上收到 warn 级别的日志:Reached the maximum number of URI tags for http.client.requests。 ...
0
评论
分享
OnebyWang
1年前
关注
AbstractRequestLoggingFilter:记录请求日志的 Filter
Spring Web 中自带记录请求参数的轮子:AbstractRequestLoggingFilter,并提供了一个默认实现类:CommonsRequestLogging...
1
评论
分享
OnebyWang
1年前
关注
线上问题排查:SkyWalking 无法追踪 OkHttp 调用
问题描述 线上接口慢,查询 skywalking trace ,尝试定位响应时间慢的环节,却发现大部分时间都在 self duration 上,百思不得其解。最终,对比之前...
0
评论
分享
下一页
个人成就
文章被点赞
63
文章被阅读
19,186
掘力值
625
关注了
0
关注者
20
收藏集
0
关注标签
15
加入于
2020-08-11