摘要:
阅读全文
摘要:
1.Kafka中的ISR(InSyncRepli)、OSR(OutSyncRepli)、AR(AllRepli)代表什么?ISR : 速率和leader相差低于10秒的follower的集合OSR : 速率和leader相差大于10秒的followerAR : 所有分区的follower 2.Kaf 阅读全文
摘要:
@Scheduled(cron="0 */1 * * * ?") public void closeOrderTaskV3(){ log.info("关闭订单定时任务启动"); //分布式锁超时时间 long lockTimeout = Long.parseLong(PropertiesUtil.g 阅读全文
摘要:
com.google.common.base.Throwables.getRootCause(e).getStackTrace()[0] 阅读全文
摘要:
https://www.bilibili.com/video/BV1Ev411t7jh/?spm_id_from=333.788.recommend_more_video.1 阅读全文
摘要:
nohup java -jar /xxx/xxx/xxx.jar >/dev/null 2>&1 & 在Linux/Unix中,一般在屏幕上面看到的信息是从stdout (standard output) 或者 stderr (standard error output) 来的。许多人会问,outp 阅读全文
摘要:
netty 监控 阅读全文
摘要:
public class NettyServer implements ServletContextListener { private static Logger log = Logger.getLogger(NettyServer.class); /*线程数量不宜设置过高,线程切换非常耗时*/ 阅读全文
摘要:
设置mysql允许远程访问1.登陆mysql数据库,修改表。use mysql;update user set host='%' where user='root';select host,user from user;flush privileges; 注意:最后一句很重要,目的是使修改生效,如果 阅读全文