1. 程式人生 > >CentOS6下Tomcat 部署速度很慢的問題

CentOS6下Tomcat 部署速度很慢的問題

使用的伺服器是騰訊雲的伺服器。

最近使用Jenkins部署的時候發現速度特別慢,後來發現是Tomcat的問題。。。

詳細可以參考這個帖子https://www.jianshu.com/p/576d356dc163

補充:

如果出現:Unable to open file: /dev/tpm0 

可以參考下面的帖子

https://blog.csdn.net/tiantao2012/article/details/78792046

解決方案:增大/dev/random的熵池

步驟如下: 
1、安裝熵服務

Linux CentOS 安裝命令如下:
yum install rng-tools  

Linux Ubuntu 安裝命令如下:
apt-get install rng-tools  

2、啟動熵服務
 

Linux CentOS rngd 命令如下:

CentOS:6

service rngd start

service rngd stop

 

CentOS:7
systemctl start rngd  
systemctl stop rngd  

Linux Ubuntu rngd 命令如下:
service rng-tools start
service rng-tools status
service rng-tools stop