解决:

下面两种方式都要添加上,速度会很快,启动妙级的

1)在Tomcat环境中解决

可以通过配置JRE使用非阻塞的Entropy Source。

在catalina.sh中加入这么一行:

JAVA_OPTS="-Djava.security.egd=file:/dev/./urandom"

即可。

加入后再启动Tomcat,整个启动耗时迅速下降。

2)在JVM环境中解决

find / -name java.security

打开$JAVA_PATH/jre/lib/security/java.security这个文件,找到下面的内容:

securerandom.source=file:/dev/urandom
替换成
securerandom.source=file:/dev/./urandom

实例:

[root@host-10-1-1-103 tomcat]# find / -name java.security
[root@host-10-1-1-103 bin]# find / -name java.security
/usr/local/jdk/jre/lib/security/java.security
/usr/local/jdk/jdk1.8.0_171/jre/lib/security/java.security

3、mysql数据看的max_connection 连接数调大即可解决调到1000

最新文章

  1. VB常用字符串操作函数
  2. Web API--自定义异常结果的处理
  3. oracle RAC切换归档
  4. Oracle Error - "OCIEnvCreate failed with return code -1 but error message text was not available".
  5. Unity3D 的摄像机
  6. max texture size of ios device
  7. 修改idea的运行内存
  8. js prototype之诡异
  9. Excel导入到DataTable
  10. MyEclipse2015上传项目到GitHub(很详细)
  11. python操作mongodb
  12. Dynamics 365-OnPremise V9 安装系统要求
  13. Web前端开发推荐书籍
  14. DMA及cache一致性的学习心得 --dma_alloc_writecombine【转】
  15. vue-i18n
  16. UE 不生成.bak文件
  17. 【mock】后端不来过夜半,闲敲mock落灯花 (mockjs+Vuex+Vue实战)
  18. Linux Windows平台添加pip源
  19. python包/模块路径
  20. ANSI、GBK、GB2312、UTF-8、GB18030和 UNICODE

热门文章

  1. C#readonly和const对比
  2. 浅谈linux用户与用户组的概念
  3. JDK源码那些事儿之常用的ArrayList
  4. vue 有条件加载组件 执行某方法后再渲染组件
  5. linux实操_硬盘
  6. linux如何查看所有的用户和组信息
  7. 二分法:从一个只包含数字的list中查找某个数
  8. python 获取运行脚本和模块的绝对路径
  9. 内网端口映射+dnslog
  10. python 函数中,os.linesep是干什么的