随笔分类 -  SRE

摘要:Java性能优化方向:代码运算性能、内存回收、应用配置。 注:影响Java程序主要原因是垃圾回收,下面会重点介绍这方面 代码层优化:避免过多循环嵌套、调用和复杂逻辑。Tomcat调优主要内容如下:1、增加最大连接数2、调整工作模式3、启用gzip压缩4、调整JVM内存大小5、作为Web时,动静分离6 阅读全文
posted @ 2022-03-31 11:32 gg888666 阅读(275) 评论(0) 推荐(0)
摘要:1、什么是堆内存? Java 中的堆是 JVM 所管理的最大的一块内存空间,主要用于存放各种类的实例对象。在 Java 中,堆被划分成两个不同的区域: 新生代 ( Young )、老年代 ( Old )。新生代 ( Young ) 又被划分为三个区域: Eden、From Survivor、To S 阅读全文
posted @ 2022-03-31 09:04 gg888666 阅读(158) 评论(0) 推荐(0)
摘要:[root@localhost ~]# cat install_docker.sh #!/bin/bash # #******************************************************************** #Author: Gexuchuan #**** 阅读全文
posted @ 2022-03-29 21:01 gg888666 阅读(43) 评论(0) 推荐(0)
摘要:取ip [root@localhost ~]# hostname -I| cut -d " " -f1 192.168.80.171 [root@localhost ~]# ifconfig ens33 |head -n2|grep -v ens33 |tr -s " " |cut -d " " - 阅读全文
posted @ 2022-03-29 17:11 gg888666 阅读(73) 评论(0) 推荐(0)
摘要:[root@localhost data]# useradd -G bin,root -s /bin/csh -c "Gentoo Distribution" gentoo [root@localhost data]# id gentoo uid=1008(gentoo) gid=1008(gent 阅读全文
posted @ 2022-03-29 17:11 gg888666 阅读(120) 评论(0) 推荐(0)
摘要:[root@localhost data]# rm -rf /data /* #有空格删根 1,find | xargs 文件相关信息:metadata, data 每个文件有三个时间戳: access time 访问时间,atime,读取文件内容 modify time 修改时间,mtime,改变 阅读全文
posted @ 2022-03-26 22:37 gg888666 阅读(268) 评论(0) 推荐(0)
摘要:date -d @1584689051 +%F_%T 关机: poweroff init 0 shutdown -h now 重启: reboot -f: 强制,不调用shutdown -p: 切断电源 ctrl+alt+delete 三个键 init 6 shutdown -r now 关机或重启 阅读全文
posted @ 2022-03-26 21:02 gg888666 阅读(64) 评论(0) 推荐(0)
摘要:https://developer.aliyun.com/mirror/ 阿里云镜像 https://mirrors.aliyun.com/rockylinux/8.5/isos/x86_64/Rocky-8.5-x86_64-dvd1.iso https://mirrors.aliyun.com/ 阅读全文
posted @ 2022-03-25 23:23 gg888666 阅读(73) 评论(0) 推荐(0)