<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[augsm的专栏]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/augsm</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; augsm]]></copyright><item><title><![CDATA[Session跨域共享解决方案]]></title><link>https://blog.csdn.net/augsm/article/details/122168145</link><guid>https://blog.csdn.net/augsm/article/details/122168145</guid><author>augsm</author><pubDate>Mon, 27 Dec 2021 11:26:38 +0800</pubDate><description><![CDATA[一、Session跨域
所谓session跨域就是摒弃了系统（tomcat）提供的session,而使用自定义的类似Session的机制来保存客户端数据的一种解决方案。如：通过设置cookie的domain来实现cookie的跨域传递。在cookie中传递一个自定义的session_id。这个session_id是客户端的唯一标记。将这个标记作为key,将客户端需要保存的数据作为value，在服务端进行保存(数据库保存或NOSQL)。这种机制是Session的跨域解决。
    什么是域，在应用模型中一个完]]></description><category></category></item><item><title><![CDATA[Java类的加载机制（类加载和初始化顺序）]]></title><link>https://blog.csdn.net/augsm/article/details/122168020</link><guid>https://blog.csdn.net/augsm/article/details/122168020</guid><author>augsm</author><pubDate>Mon, 27 Dec 2021 11:19:54 +0800</pubDate><description><![CDATA[Java类加载机制中最重要的就是程序初始化过程，其中包含了静态资源，非静态资源，父类子类，构造方法之间的执行顺序。这类知识经常会出现在面试题中，如果没有搞清楚其原理，在复杂的开源设计中可能无法梳理其业务流程，是java程序员进阶的阻碍。
首先通过一个例子来分析java代码的执行顺序：
    public class CodeBlockForJava extends BaseCodeBlock {
        {
	        System.out.println("这里是子类的普通代码块");
 ]]></description><category></category></item><item><title><![CDATA[解读Hystrix系列（二）：Hystrix详细工作原理]]></title><link>https://blog.csdn.net/augsm/article/details/122167669</link><guid>https://blog.csdn.net/augsm/article/details/122167669</guid><author>augsm</author><pubDate>Mon, 27 Dec 2021 11:10:18 +0800</pubDate><description><![CDATA[承接上篇内容本节具体聊聊Hystrix详细的工作原理以及内部实现流程。
Hystrix向服务依赖项发出请求时会发生什么？

1. 构造一个HystrixCommand或HystrixObservableCommand对象
第一步是构造一个HystrixCommand或HystrixObservableCommand对象来表示对依赖项的请求。将请求发出时需要的任何参数传递给构造函数。
构造一个  HystrixCommand 对象 如果依赖期望返回一个单个响应. 例如:
HystrixCommand comm]]></description><category></category></item><item><title><![CDATA[解读Hystrix系列（一）：初探Hystrix]]></title><link>https://blog.csdn.net/augsm/article/details/122167462</link><guid>https://blog.csdn.net/augsm/article/details/122167462</guid><author>augsm</author><pubDate>Mon, 27 Dec 2021 11:06:46 +0800</pubDate><description><![CDATA[什么是Hystrix?
Hystrix是一个库，它通过添加延迟容忍和容错逻辑来帮助您控制这些分布式服务之间的交互。
Hystrix的设计目的如下:

为通过第三方客户端库访问的依赖项(通常通过网络)提供保护和控制延迟 和故障。
停止复杂分布式系统中的级联故障。
故障快速恢复。
在可能的情况下，后退并优雅地降级。
启用近实时监视、警报和操作控制。
####Hystrix解决了什么问题?
复杂分布式体系结构中的应用程序有几十个依赖项，每个依赖项在某个时候都不可避免地会失败。如果主机应用程序没有从这些外部故障中隔]]></description><category></category></item><item><title><![CDATA[G1垃圾收集器调优-精简版]]></title><link>https://blog.csdn.net/augsm/article/details/122144043</link><guid>https://blog.csdn.net/augsm/article/details/122144043</guid><author>augsm</author><pubDate>Sat, 25 Dec 2021 17:54:35 +0800</pubDate><description><![CDATA[本篇是对Java官网G1收集器调优的精简版。针对G1垃圾的收集阶段可能出现的问题，非合理内存分配，大对象占用，Full GC等问题作出解决方式和操作参数。]]></description><category></category></item><item><title><![CDATA[G1收集器调优]]></title><link>https://blog.csdn.net/augsm/article/details/122118879</link><guid>https://blog.csdn.net/augsm/article/details/122118879</guid><author>augsm</author><pubDate>Fri, 24 Dec 2021 00:16:24 +0800</pubDate><description><![CDATA[本篇针对官网G1性能调优进行翻译，以此为调优理论依据。本文可作参考模板，在完全理解G1收集器的情况下后续会有更加详细的内容讲解。]]></description><category></category></item><item><title><![CDATA[HttpServletRequest为什么没有setParameter()?]]></title><link>https://blog.csdn.net/augsm/article/details/109340500</link><guid>https://blog.csdn.net/augsm/article/details/109340500</guid><author>augsm</author><pubDate>Wed, 28 Oct 2020 20:53:05 +0800</pubDate><description><![CDATA[当我们在编写java web服务端代码时,经常使用HttpServletRequest.getParameter(value)来获取http的参数，但你有没有发现只有getParameter而没有setParameter方法？

例如：https://www.pornhub.com/v?mode=mila&amp;type=teen

假如pornhub服务端的逻辑是你提供，你只需对应的servlet方法中写上一句request.getParameter("mode")就能获取url传递的参数，但你并没有看]]></description><category></category></item><item><title><![CDATA[Eureka服务fetch registries(一) client端分析]]></title><link>https://blog.csdn.net/augsm/article/details/109275146</link><guid>https://blog.csdn.net/augsm/article/details/109275146</guid><author>augsm</author><pubDate>Sun, 25 Oct 2020 16:40:26 +0800</pubDate><description><![CDATA[根据前两章节的分析，我们知道eureka客户端通过创建DiscoveryClient对象调用构造方法来实现了register，renew, heartbeat, registries fetch的功能。
本章节主要分析registries fetch在源码中的实现。
Clinet端的处理逻辑
DiscoveryClient在构造方法中创建了一个cacheRefreshExecutor的守护线程池，核心线程数为1，默认cacheRefreshExecutorThreadPoolSize为2。
顺着源码往下看，]]></description><category></category></item><item><title><![CDATA[JVM性能调优实战——UseParallelGC]]></title><link>https://blog.csdn.net/augsm/article/details/109272205</link><guid>https://blog.csdn.net/augsm/article/details/109272205</guid><author>augsm</author><pubDate>Sun, 25 Oct 2020 12:33:40 +0800</pubDate><description><![CDATA[前言
在生产环境中，你是否遇到过这样的问题？
1）系统运行一段时间后old区空间正逐渐减少？
2）遇到秒杀促销活动等场景old区存储突然暴增，导致JVM Full GC。fgc time持续过长导致cpu 100%？
3）jvm eden区分配的内存实际并没有按照配置的指定？survivor区对象晋升到old区并没有达到默认的15次？
4）如何避免Full GC，JVM产生FGC后如何解决？
……
接下来的内容，我将从实际场景出发，分别使用三种垃圾收集器：ParallelGC,Concurrent Mar.]]></description><category></category></item><item><title><![CDATA[Eureka源码解析(二) renew源码分析]]></title><link>https://blog.csdn.net/augsm/article/details/109271846</link><guid>https://blog.csdn.net/augsm/article/details/109271846</guid><author>augsm</author><pubDate>Sun, 25 Oct 2020 11:50:50 +0800</pubDate><description><![CDATA[承接上篇，本章节主要讲服务续租以及心跳过实现过程。]]></description><category></category></item><item><title><![CDATA[Eureka源码解析(一) register源码分析]]></title><link>https://blog.csdn.net/augsm/article/details/109271668</link><guid>https://blog.csdn.net/augsm/article/details/109271668</guid><author>augsm</author><pubDate>Sun, 25 Oct 2020 11:36:55 +0800</pubDate><description><![CDATA[#阅读前的思考
使用netflix eureka做服务管理时，若你只停留在对eureka的概念理解和使用层面，那么你面试时会得到面试官的灵魂拷问，例如：
1）eureka将服务注册信息存放在哪里？服务注册信息都有哪些内容？
2）eureka如何做到高可用？底层的通信机制是什么？
3）心跳机制到底发送些什么内容,有了解吗？
4）服务注册列表是存在客户端还是服务端？如果多复本数据不一致怎么处理？
5）若网络故障服务注册失败了，eureka是如何保证注册成功的？
6）注册，同步，下线，剔除分别是怎么实现的？
7.]]></description><category></category></item></channel></rss>