开发Java Web项目中发现服务之间的调用存在超时情况,由于涉及的处理逻辑全部是异步,引入定时重试的机制,重试工具选择了JDK自带的Scheduled Thread Pool Executor。当A服务依赖B服务,B服务由于在业务高峰期处理能力降低,导致大量A服务...开发Java Web项目中发现服务之间的调用存在超时情况,由于涉及的处理逻辑全部是异步,引入定时重试的机制,重试工具选择了JDK自带的Scheduled Thread Pool Executor。当A服务依赖B服务,B服务由于在业务高峰期处理能力降低,导致大量A服务过来的请求超时,A加入了超时重试机制,间隔时间根据重试次数的多少来决定,次数越多,两次重试之间间隔的时间越多,此时的业务高峰也会给A带来大量请求,大量的超时会导致重试队列迅速堆积,直到内存溢出。该文从线程池工作机制、Scheduled Thread Pool Executor实例的创建,获取重试任务的过程以及提交任务的过程角度分析,并通过源代码的剖析和测试工具My Eclipse进行演示测试内存泄露的情况,得出避免内存泄露的解决方案。展开更多
The majority of plant disease resistance (R) genes encode proteins that share common structural features. However, the transcription activator-like effector (TALE)-associated executor type R genes show no consider...The majority of plant disease resistance (R) genes encode proteins that share common structural features. However, the transcription activator-like effector (TALE)-associated executor type R genes show no considerable sequence homology to any known R genes. We adopted a map-based cloning approach and TALE-based technology to isolate and characterize Xa23, a new executor R gene derived from wild rice (Oryza rufipogon) that confers an extremely broad spectrum of resistance to bacterial blight caused by Xanthomonas oryzae pv. oryzae (Xoo). Xa23 encodes a 113 amino acid protein that shares 50% identity with the known executor R protein XA10. The predicted transmembrane helices in XA23 also overlap with those of XA10. Unlike XalO, however, Xa23 transcription is specifically activated by AvrXa23, a TALE present in all examined Xoo field isolates. Moreover, the susceptible xa23 allele has an identical open reading frame of Xa23 but differs in promoter region by lacking the TALE binding element (EBE) for AvrXa23. XA23 can trigger a strong hypersensitive response in rice, tobacco, and tomato. Our results provide the first evidence that plant genomes have an executor R gene family of which members execute their function and spectrum of disease resistance by recognizing the cognate TALEs in the pathogen.展开更多
After analyzing the reasons for coal mine accidents and the current management methods, effective actions for the implementation of safety management were put forward by carrying out the whole process confirmation man...After analyzing the reasons for coal mine accidents and the current management methods, effective actions for the implementation of safety management were put forward by carrying out the whole process confirmation management. The ba- sic content and the five implementation steps were described, and the implementation method and the program of every step were introduced. Some rules for the implementation of the whole process confirmation management in coal mine safety pro- duction were explained, such as during the process of preproduction, before descent, descent, after descent, walking in the roadway, post-operation, shift, and hoisting after work. The results show that the guardians and the executors should both con- firm the implementation, which can improve the workers' attention and self-awareness to avoid errors in detail and reduce the "three violations" phenomenon. To ensure the effect of the whole process confirmation management, relevant departments should designate a person-in-charge in the specific work in all stages, make a work plan, and strengthen the internal evaluation.展开更多
Validity of service in the service system is significantly affected by reliability of providers and availability of service contents. Most service inspiring schemes in pecr-to-pecr (P2P) networks associate each prov...Validity of service in the service system is significantly affected by reliability of providers and availability of service contents. Most service inspiring schemes in pecr-to-pecr (P2P) networks associate each provider with reputation or money to ensure provider's reliability so as to improve the availability of service contents. However, these schemes bring considerable risk to consumers when a provider with high reputation or money publishes a malicious service content. Moreover, the number of providers decreases as some providers are rejected while they have unconsciously published one or several polluted content., ever. The risk may spread to more users and cause the collapse of the service system. Recently, some researches have shown that the unconscious polluted contents are over twice as many as the intentional polluted contents. In order to distinguish the unconscious polluled contents from the intentional polluted contents and rescue those correlative users, we propose an audit model based on each service content to improve the validity of services. In our model, each node is associated with money, and each service content is associated with reputation. The unconscious polluted contents are prevented via consumers' evaluation, and the intentional polluted cantents and malicious providers are rejected via audit executors' evaluation. Simulatinn results show that the model improves the ratio of available service contents and reliable providers.展开更多
文摘开发Java Web项目中发现服务之间的调用存在超时情况,由于涉及的处理逻辑全部是异步,引入定时重试的机制,重试工具选择了JDK自带的Scheduled Thread Pool Executor。当A服务依赖B服务,B服务由于在业务高峰期处理能力降低,导致大量A服务过来的请求超时,A加入了超时重试机制,间隔时间根据重试次数的多少来决定,次数越多,两次重试之间间隔的时间越多,此时的业务高峰也会给A带来大量请求,大量的超时会导致重试队列迅速堆积,直到内存溢出。该文从线程池工作机制、Scheduled Thread Pool Executor实例的创建,获取重试任务的过程以及提交任务的过程角度分析,并通过源代码的剖析和测试工具My Eclipse进行演示测试内存泄露的情况,得出避免内存泄露的解决方案。
文摘The majority of plant disease resistance (R) genes encode proteins that share common structural features. However, the transcription activator-like effector (TALE)-associated executor type R genes show no considerable sequence homology to any known R genes. We adopted a map-based cloning approach and TALE-based technology to isolate and characterize Xa23, a new executor R gene derived from wild rice (Oryza rufipogon) that confers an extremely broad spectrum of resistance to bacterial blight caused by Xanthomonas oryzae pv. oryzae (Xoo). Xa23 encodes a 113 amino acid protein that shares 50% identity with the known executor R protein XA10. The predicted transmembrane helices in XA23 also overlap with those of XA10. Unlike XalO, however, Xa23 transcription is specifically activated by AvrXa23, a TALE present in all examined Xoo field isolates. Moreover, the susceptible xa23 allele has an identical open reading frame of Xa23 but differs in promoter region by lacking the TALE binding element (EBE) for AvrXa23. XA23 can trigger a strong hypersensitive response in rice, tobacco, and tomato. Our results provide the first evidence that plant genomes have an executor R gene family of which members execute their function and spectrum of disease resistance by recognizing the cognate TALEs in the pathogen.
基金Supported by the Coal Union Fund of the National Nature Science Foundation of China (51174272) the Technology Innovation Fund of China Coal Science and Engineering Group (2012MS001)
文摘After analyzing the reasons for coal mine accidents and the current management methods, effective actions for the implementation of safety management were put forward by carrying out the whole process confirmation management. The ba- sic content and the five implementation steps were described, and the implementation method and the program of every step were introduced. Some rules for the implementation of the whole process confirmation management in coal mine safety pro- duction were explained, such as during the process of preproduction, before descent, descent, after descent, walking in the roadway, post-operation, shift, and hoisting after work. The results show that the guardians and the executors should both con- firm the implementation, which can improve the workers' attention and self-awareness to avoid errors in detail and reduce the "three violations" phenomenon. To ensure the effect of the whole process confirmation management, relevant departments should designate a person-in-charge in the specific work in all stages, make a work plan, and strengthen the internal evaluation.
基金National Natural Science Foundation of China(No.60903160)
文摘Validity of service in the service system is significantly affected by reliability of providers and availability of service contents. Most service inspiring schemes in pecr-to-pecr (P2P) networks associate each provider with reputation or money to ensure provider's reliability so as to improve the availability of service contents. However, these schemes bring considerable risk to consumers when a provider with high reputation or money publishes a malicious service content. Moreover, the number of providers decreases as some providers are rejected while they have unconsciously published one or several polluted content., ever. The risk may spread to more users and cause the collapse of the service system. Recently, some researches have shown that the unconscious polluted contents are over twice as many as the intentional polluted contents. In order to distinguish the unconscious polluled contents from the intentional polluted contents and rescue those correlative users, we propose an audit model based on each service content to improve the validity of services. In our model, each node is associated with money, and each service content is associated with reputation. The unconscious polluted contents are prevented via consumers' evaluation, and the intentional polluted cantents and malicious providers are rejected via audit executors' evaluation. Simulatinn results show that the model improves the ratio of available service contents and reliable providers.