摘要:
转自:http://www.itokit.com/2013/0308/74883.html linux系统中,利用grep打印匹配的上下几行 如果在只是想匹配模式的上下几行,grep可以实现。 $grep -5 'parttern' inputfile //打印匹配行的前后5行 $grep -C 5 阅读全文
摘要:
该文章主要包括以下内容: 1.skywalking的简介: Overview: Why use SkyWalking? Architecture: 2.skywalking的使用: 第一步:从skywalking的官网http://skywalking.apache.org/downloads/下载 阅读全文
摘要:
通常我们启动一个springboot项目会在启动方法中增加@SpringBootApplicatoin注解,该注解中包含了@EnableAutoConfiguration 那么@EnableAutoConfiguration是如何自动起作用的呢。我们先来看看@EnableAutoConfigurat 阅读全文
摘要:
springboot一般通过以下main方法来启动项目 查看源码发现加载的主要逻辑写在了 ConfigurableApplicationContext org.springframework.boot.SpringApplication.run(String... args)这个方法里面 具体逻辑如 阅读全文
摘要:
1 消费端如何通过注册中心获取远程服务的invoker? RegistryDirectory.subscribe从注册中心中获取provider的url,通过DubboProtocol的refer方法生成Invoker。 以下代码为RegistryDirectory在收到zookeeper服务变更p 阅读全文
摘要:
HashMap实现了Serizeble接口,说明能够被序列化 ,但是发现HashMap的成员变量 transient Node<K,V>[] table;transient Set<Map.Entry<K,V>> entrySet;transient int size;transient int m 阅读全文
摘要:
https://blog.csdn.net/liyantianmin/article/details/54862186 阅读全文
摘要:
基本原则 只应将热数据放到缓存中 所有缓存信息都应设置过期时间 缓存过期时间应当分散以避免集中过期 缓存key应具备可读性 应避免不同业务出现同名缓存key >解决方法: 保证键名不冲突,也夹杂了一般在一个项目中怎样使用缓存,有几个供参考的方式: 1. 当前参数,可以有几个拼接几个,这里只举了个ui 阅读全文
摘要:
1. 查询redis里面的大key? 2.查询redis的慢查询记录? slowlog get 10 3.如何获取所有与Redis服务相关的信息。 info命令输出的数据可分为10个类别,分别是: server clients memory persistence stats replication 阅读全文