上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 33 下一页
1 http请求头referrer含义:通知服务器这个请求的来源url是什么,不过在ie7中发现过丢失的问题,使用window.location.href=url进行页面跳转会丢失,window.open一个新窗口也会出问题。 Read More
posted @ 2019-12-11 10:53 soft.push("zzq") Views(136) Comments(0) Diggs(0)
8核32G 3台 ELS机器,当时只给es配置了8G内存,es的总体数据量大小将近30G(查看GET /_cat/shards?v) Read More
posted @ 2019-12-10 21:10 soft.push("zzq") Views(312) Comments(0) Diggs(0)
资源调度: (1)executor默认在集群中分散启动,可通过参数配置集中在某个work启动,不过分散启动有利于数据本地化。 (2)如果spark-submit提交任务时,如果不指定--executor-cores,则spark会在每个work中启动一个executor并消耗掉work中的所有cor Read More
posted @ 2019-12-10 21:02 soft.push("zzq") Views(289) Comments(0) Diggs(0)
(1)maxConnections能接收的最大请求数(nio下默认1W,基本不用调整,足够了); (2)acceptCount在操作系统层面的请求堆积,linux操作系统下除了acceptCount参数队列以外还有其它的队列堆积请求(有需要的情况下可以增加)。 (3)还有就是我们处理请求的maxTh Read More
posted @ 2019-12-10 11:43 soft.push("zzq") Views(163) Comments(0) Diggs(0)
1:mybatis首先构建SqlSessionFactory,这个工厂主要就是初始化与数据库操作有关的上下文信息。会收集xml中的配置,如environment,datasource,transactionManager,setting配置等等,而默认构建出来的是DefaultSqlSessionF Read More
posted @ 2019-12-09 22:16 soft.push("zzq") Views(295) Comments(0) Diggs(0)
哨兵模式下有两种宕机状态,sdown和odown: (1)如果一个哨兵ping主节点,时间超过is-master-down-after-milliseconds配置的时间参数,该哨兵认为master已经sdown(主观宕机)。 (2)如果quorum数量的哨兵节点都认为主节点sdown,则哨兵的状态 Read More
posted @ 2019-12-07 10:13 soft.push("zzq") Views(323) Comments(0) Diggs(0)
(1)top 命令 -》查询出CPU使用率最高的 PID编号。 (2)top -H p PID编号 -》能查询出所有线程的CPU使用率的列表(线程编号也在PID列)。 (3)jstack xxxx(进程编号) -》列出当前进程所有线程的堆栈情况。 (4)将之前的线程编号转成16进制准确查找到指定线程 Read More
posted @ 2019-12-07 09:24 soft.push("zzq") Views(355) Comments(0) Diggs(0)
重入锁关键地带: 1:使用unsafe的cas方式对AQS中的state成员变量进行“原子加一”操作。 2:如果当前线程多次lock,相当于对state在原有值基础上继续加一操作;释放锁的条件为“原子减一”到0为止。 3:ReentrantLock在非公平锁问题: 严格上讲并不是完全的非公平,当线程 Read More
posted @ 2019-12-06 15:20 soft.push("zzq") Views(552) Comments(0) Diggs(0)
说起spring bean的初始化自然而然就离不开初始化阶段的循环引用;1 首先spring容器在启动后会创建一个beanFactory,new DefaultListableBeanFactory。 2 然后在spring容器启动过程中会调用核心的refresh方法,在这个方法中共调用了9个方法, Read More
posted @ 2019-12-05 11:39 soft.push("zzq") Views(311) Comments(0) Diggs(0)
循环引用属性操作: 1)AbstractAutowireCapableBeanFactory类中的allowCircularReferences被设置为了false。 2)代码: AnnotationConfigApplicationContext a = new AnnotationConfigA Read More
posted @ 2019-12-03 20:03 soft.push("zzq") Views(860) Comments(0) Diggs(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 33 下一页