摘要: html代码: js代码: java代码: 阅读全文
posted @ 2019-01-31 16:43 HushAsy 阅读(1007) 评论(0) 推荐(0) 编辑
摘要: Nginx原生限流模块: ngx_http_limit_conn_module模块 根据前端请求域名或ip生成一个key,对于每个key对应的网络连接数进行限制。 配置如下: http模块 server模块 #http模块内 http { include mime.types; default_ty 阅读全文
posted @ 2019-01-22 10:15 HushAsy 阅读(1296) 评论(0) 推荐(0) 编辑
摘要: 问题描述:线上进程异常退出,查看服务器端日志,有jvm crash文件生成 一般jvm crash日志头部:问题帧 当前执行触发jvm crash的线程栈,此处可以看出为http请求线程,依旧看不出啥原因。 继续往下看,线程栈信息 此处可以看到 查看资料发现,为jdkbug: https://bug 阅读全文
posted @ 2018-11-05 15:24 HushAsy 阅读(2102) 评论(0) 推荐(1) 编辑
摘要: Spring Cloud Gateway features: Built on Spring Framework 5, Project Reactor and Spring Boot 2.0 Able to match routes on any request attribute. Predica 阅读全文
posted @ 2018-11-05 11:11 HushAsy 阅读(8426) 评论(1) 推荐(0) 编辑
摘要: 该demo主要作为一个dubbo项目通过maven自动化docker打包插件发布到镜像仓库样例工程。该wiki后面同时会提供k8s部署zk,mysql,应用包的整个过程。该项目大体功能:zk作为注册中心,服务端发布服务,消费端订阅服务,在调用过程中访问mysql数据库。 环境准备:k8s集群,以及配 阅读全文
posted @ 2018-11-02 16:50 HushAsy 阅读(1643) 评论(0) 推荐(0) 编辑
摘要: 环境准备:win10+docker 1.打开hyper-v 2.下载最新版本docker:https://store.docker.com/editions/community/docker-ce-desktop-windows 3.切换到docker的linux环境:右键桌面右下角小船图标 4.暴 阅读全文
posted @ 2018-11-02 14:45 HushAsy 阅读(8893) 评论(0) 推荐(0) 编辑
摘要: 准备一台安装有docker服务的机器 1.编辑Dockerfile vim Dockerfile FROM centos:latest ADD ./jdk-8u141-linux-x64.tar.gz /usr/local ENV JAVA_HOME /usr/local/jdk1.8.0_141 阅读全文
posted @ 2018-11-02 12:54 HushAsy 阅读(970) 评论(0) 推荐(0) 编辑