摘要: Linux磁盘满了,清理 命令 df -lh sudo find / -type f -size +100M -exec ls -lh {} \; sudo du -sh /var/log sudo rm /var/log/large_log_file.log 阅读全文
posted @ 2024-01-29 21:41 DaleyZou 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 背景 根据指定的数据, 批量修改线上各种关联数据 思路 定义变量, 批量 sql 处理 对应的SQL SET collation_connection = 'utf8mb4_general_ci'; SET collation_database = 'utf8mb4_general_ci'; SET 阅读全文
posted @ 2024-01-29 21:41 DaleyZou 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 问题 线上长时间 fullGc 项目输出了对应的gc日志 , 启动参数里增加了对应启动参数 -verbose:gc -Xloggc:/logs/java_gc.log -XX:+PrintGCDateStamps -XX:+PrintGCApplicationStoppedTime -XX:+Pri 阅读全文
posted @ 2024-01-29 21:39 DaleyZou 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 判断时间 private boolean canTheTimeExecute() { try { if (StringUtils.isEmpty(containerStockSyncTime)) { log.info("[handleContainerStockSyncTask]-execute t 阅读全文
posted @ 2024-01-29 21:38 DaleyZou 阅读(1) 评论(0) 推荐(0) 编辑
摘要: show variables like 'slow_query_log%'; show variables like 'long_query_time%'; set global long_query_time=5; set global slow_query_log=1; select sleep 阅读全文
posted @ 2024-01-29 21:37 DaleyZou 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 步骤 进入mysql的binlog目录, 我的在 /var/lib/mysql 解析数据 基于错误数据,在解析出的 SQL 文件中搜索匹配 mysql mysqlbinlog 的解析命令 sudo mysqlbinlog --no-defaults --base64-output=decode-ro 阅读全文
posted @ 2024-01-29 21:36 DaleyZou 阅读(1) 评论(0) 推荐(0) 编辑
摘要: maven <dependency> <groupId>org.java-websocket</groupId> <artifactId>Java-WebSocket</artifactId> <version>1.3.5</version> </dependency> 代码 @Slf4j @Com 阅读全文
posted @ 2024-01-29 21:35 DaleyZou 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 代码 public List<OutboundStationStatis> queryStationStatisticsByTime(Long startTime, Long endTime, List<String> stationCodes) { // 当前任务不支持 count sum 等查询 阅读全文
posted @ 2023-04-11 20:32 DaleyZou 阅读(17) 评论(0) 推荐(0) 编辑
摘要: JRebel for IntelliJ .ignore Alibaba Java Coding Guidelines Free Mybatis plugin mybatis plus maven helper mybatisx idea-mybatis-generator Alibaba Cloud 阅读全文
posted @ 2023-04-11 20:32 DaleyZou 阅读(16) 评论(0) 推荐(0) 编辑
摘要: maven <dependency> <groupId>org.java-websocket</groupId> <artifactId>Java-WebSocket</artifactId> <version>1.3.5</version> </dependency> 代码 @Slf4j @Com 阅读全文
posted @ 2023-04-11 20:31 DaleyZou 阅读(25) 评论(0) 推荐(0) 编辑