惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

The GitHub Blog
The GitHub Blog
Martin Fowler
Martin Fowler
Vercel News
Vercel News
U
Unit 42
Engineering at Meta
Engineering at Meta
aimingoo的专栏
aimingoo的专栏
MyScale Blog
MyScale Blog
Y
Y Combinator Blog
阮一峰的网络日志
阮一峰的网络日志
爱范儿
爱范儿
Apple Machine Learning Research
Apple Machine Learning Research
博客园_首页
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
B
Blog RSS Feed
N
Netflix TechBlog - Medium
GbyAI
GbyAI
F
Fortinet All Blogs
MongoDB | Blog
MongoDB | Blog
大猫的无限游戏
大猫的无限游戏
C
Check Point Blog
M
MIT News - Artificial intelligence
D
Docker
IT之家
IT之家
Stack Overflow Blog
Stack Overflow Blog

博客园 - 一望无际的南

wps转PDF-解决IPAD中PDF乱码问题 thinkserver TS250 虚拟化主机部署 小微企业的数据备份方案 mac idea 修改git账号 coder,不要做计算机,好吗? mac 同一应用多实例的切换 沙雕的git Plugin 一行命令完成linux对文件的授权 NODEJS npm build 中哪些乱码是什么? DT 还是IT 混乱的docker swarm 版本在运维的重要性 nginx 在linux下端口被禁用问题 bitbucket灾难恢复或者服务迁移指南 2020年服务器迁移 当,规范什么都不是 记阿里云SLB后配置Nginx反向代理百度地图API的坑 gradle介绍 Centos7 改名问题
jira 8.x 性能调优
一望无际的南 · 2020-03-09 · via 博客园 - 一望无际的南

https://confluence.atlassian.com/adminjiraserver/performance-and-scale-testing-965568707.html 

Performance and scale testing

我看了一下, 我好流口水:

image

我一台1.4万的Dell R730XD 二手,留了8G内存给jira,又不是SSD硬盘。咋办呢,不是土豪还想用土豪的速度。

调优呗,上手段,别问,问了就是。。。。

setenv.sh 改动: 增加内存,增加性能监视代理 

## The following 2 settings control the minimum and maximum given to the JIRA Java virtual machine.??In larger JIRA instances, the maximum amount will need to be increased. # #JVM_MINIMUM_MEMORY="384m" #JVM_MAXIMUM_MEMORY=“2048m" 
?#modified by Rock on 2020.03.09? 
JVM_MINIMUM_MEMORY="768m" JVM_MAXIMUM_MEMORY=“3072m” 

## The following setting configures the size of JVM code cache.??A high value of reserved size allows Jira to work with more installed apps. #? 
#JVM_CODE_CACHE_ARGS='-XX:InitialCodeCacheSize=32m -XX:ReservedCodeCacheSize=512m’? 
#modified by Rock on 2020.03.09? 
JVM_CODE_CACHE_ARGS='-XX:InitialCodeCacheSize=96m -XX:ReservedCodeCacheSize=1280m' 


#----------------------------------------- 
# Prevents the JVM from suppressing stack traces if a given type of exception # occurs frequently, which could make it harder for support to diagnose a problem.? 
#-----------------------------------------? 
JVM_EXTRA_ARGS="-XX:-OmitStackTraceInFastThrow -Djava.locale.providers=COMPAT -javaagent:/root/tingyun/tingyun/tingyun-agent-java.jar” 

用了听云的APM

接着升级java 8 到java 11

安装openjdk 11 

yum search openjdk 
yum install java-11-openjdk.x86_64 

查找jdk路径 
[root@CEN07_JIRA bin]# echo $JAVA_HOME 
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.232.b09-0.el7_7.x86_64 


[root@CEN07_JIRA jvm]# ll 
total 0 
lrwxrwxrwx. 1 root root 26 Jan 23 00:22 java -> /etc/alternatives/java_sdk 
drwxr-xr-x. 6 root root 68 Mar??9 18:11 java-11-openjdk-11.0.6.10-1.el7_7.x86_64 
lrwxrwxrwx. 1 root root 32 Jan 23 00:22 java-1.8.0 -> /etc/alternatives/java_sdk_1.8.0 
lrwxrwxrwx. 1 root root 40 Jan 23 00:22 java-1.8.0-openjdk -> /etc/alternatives/java_sdk_1.8.0_openjdk 
drwxr-xr-x. 7 root root 68 Jan 23 00:22 java-1.8.0-openjdk-1.8.0.232.b09-0.el7_7.x86_64 
lrwxrwxrwx. 1 root root 34 Jan 23 00:22 java-openjdk -> /etc/alternatives/java_sdk_openjdk 
lrwxrwxrwx. 1 root root 21 Mar??9 18:11 jre -> /etc/alternatives/jre 
lrwxrwxrwx. 1 root root 24 Mar??9 18:11 jre-11 -> /etc/alternatives/jre_11
lrwxrwxrwx. 1 root root 32 Mar??9 18:11 jre-11-openjdk -> /etc/alternatives/jre_11_openjdk 
lrwxrwxrwx. 1 root root 40 Mar??9 18:11 jre-11-openjdk-11.0.6.10-1.el7_7.x86_64 -> java-11-openjdk-11.0.6.10-1.el7_7.x86_64 
lrwxrwxrwx. 1 root root 27 Jan 23 00:22 jre-1.8.0 -> /etc/alternatives/jre_1.8.0 
lrwxrwxrwx. 1 root root 35 Jan 23 00:22 jre-1.8.0-openjdk -> /etc/alternatives/jre_1.8.0_openjdk 
lrwxrwxrwx. 1 root root 51 Jan 23 00:22 jre-1.8.0-openjdk-1.8.0.232.b09-0.el7_7.x86_64 -> java-1.8.0-openjdk-1.8.0.232.b09-0.el7_7.x86_64/jre 
lrwxrwxrwx. 1 root root 29 Mar??9 18:11 jre-openjdk -> /etc/alternatives/jre_openjdk 

替换jre-8 成为jre-11 
setenv.sh 

# DO NOT remove the following line 
#JAVA_HOME="/opt/atlassian/jira/jre/"; export JAVA_HOME 
#Modified by Rock on 2020.03.09 - change jre to jre 11 :) 
JAVA_HOME="/usr/lib/jvm/jre-11"; export JAVA_HOME 

重启,试试。

对了忘记说了结果如何?

结果是感人的,其实,我发现了如果把虚拟机的CPU调到8

image

你会发现jira飞起来了,

image

太晚了,就做对比了。

总结一个就苟了,

  • - 增加内存,似乎影响不大
  • - 增加CPU,提升很大
  • - 增加磁盘速度,貌似提升很大 - 注意到磁盘使用很高情况,

image

更新一下: 2020.05.02, 貌似升级jdk11反而影响性能,我重新退回到jdk8,速度提升很多。