当前位置: 首页 > news >正文

cms进行网站开发官方网站营销

cms进行网站开发,官方网站营销,做网站怎么插入表格,zencart网站打不开最近线上出现类似内存溢出问题,需要排查具体原因,记录过程,方便备查。 一、数据抓取 在启动参数中添加参数,可参照以下设置。 参数的作用是在程序发生内存溢出 OutOfMemory 时打印日志,dump下来,方便用工…

最近线上出现类似内存溢出问题,需要排查具体原因,记录过程,方便备查。

一、数据抓取

在启动参数中添加参数,可参照以下设置。
参数的作用是在程序发生内存溢出 OutOfMemory 时打印日志,dump下来,方便用工具分析溢出情况。

-Xloggc:/home/logs/ 
-XX:NumberOfGCLogFiles=8 
-XX:+PrintGCDateStamps 
-XX:+HeapDumpOnOutOfMemoryError 
-XX:+UseGCLogFileRotation 
-XX:GCLogFileSize=600m 
-XX:HeapDumpPath=/home/logs/ 
-XX:+PrintGC

明确两个命令:jmap 和 dump
jmap 是 Java 的一个命令行工具,用于打印有关 Java 堆的信息,包括不同代的大小、总堆的大小以及不同对象使用的内存量。
dump命令是一个备份文件系统的工具。它可用于创建文件系统的镜像,以便在物理设备或远程存储中进行恢复。手动dump

在Linux系统手动抓取Java栈堆记录信息,命令如下图所示。

jamp -dump:format=b,file=/dump.hprof

或者可以写个bash脚本,可循环抓取。

#! /bin/bash
read -p 'input process id' process_id
for((i=1;i<=10;i++))
do
jamp -dump:format=b,file=/dump$i.hprof $process_id
sleep 10
done
二、记录设置参数过程

1)FullGC 瞬时次数
在未指定GC算法时,用监控软件发现出现 FullGC现象,瞬时值次数达到12次。
在这里插入图片描述

指定G1算法,即useG1,FullGC现象消失。
在这里插入图片描述

可在JVM参数中指定G1,参数如下所示。

-XX:+UseG1GC

2)调整栈大小
Jvm 默认栈大小为1m,可根据实际需要调整大小,本次调整栈大小为2m,可参考以下命令。

-Xss2m
三、JVM分析工具分析

对采集到的文件,进行JVM分析主要有两个工具 Java VisualVMEclipse Memory Analyzer

在cmd下输入jvisualvm命令,可以调用出 jvisualvm 界面。
在这里插入图片描述
在弹出页面 选择hprof文件即可。
在这里插入图片描述
打开界面如下所示,可以看到堆栈中主要占用情况,点击可查看详情。
在这里插入图片描述
方式一、mat 软件安装
下载地址:Eclipse Memory Analyzer官网,下载页面如下图所示。
在这里插入图片描述
根据实际需要选择对应的版本,这里选择的是Windows版本,进入下一步,选择 Download 等待下载即可。
在这里插入图片描述
若镜像下载不下来,可以尝试第三方下载方式,如 mat下载。
软件下载完毕,在编辑栏 file 导入hprof 文件即可,如下图所示。
在这里插入图片描述
在 总览页面Overview 下展示总体情况,可点击 支配树 dominator tree
在这里插入图片描述
浅堆(Shallow Heap) 是指一个对象所消耗的内存。Retained Heap的大小为回收它时候能回收的heap大小,包括回收它能直接/间接引用到的对象大小的总和(不包括被GC Root直接间接引用的),从下图看出,本次是log4j日志占的比重较大。
在这里插入图片描述

方式二、 Mat插件
在eclipse的编辑栏 -> help -> Install New Software,如下图所示。
在这里插入图片描述
在弹出的页面输入 http://download.eclipse.org/mat/1.8/update-site/,如下图所示。
在这里插入图片描述
点击 ok 后,远程搜索,显示结果,勾选 Memory Analyzer for Eclipse IDE 即可。
在这里插入图片描述
点击next 后,直接等待安装即可。
在这里插入图片描述
插件的方式也可查看内存占用情况。


文章转载自:
http://ornate.wwxg.cn
http://grinding.wwxg.cn
http://lude.wwxg.cn
http://seawater.wwxg.cn
http://skinpopping.wwxg.cn
http://cellulitis.wwxg.cn
http://misappropriate.wwxg.cn
http://slink.wwxg.cn
http://repatriate.wwxg.cn
http://wechty.wwxg.cn
http://incessantly.wwxg.cn
http://scour.wwxg.cn
http://cp.wwxg.cn
http://beady.wwxg.cn
http://pewholder.wwxg.cn
http://consultant.wwxg.cn
http://currier.wwxg.cn
http://klutz.wwxg.cn
http://affix.wwxg.cn
http://requin.wwxg.cn
http://myrmidon.wwxg.cn
http://sawhorse.wwxg.cn
http://wendic.wwxg.cn
http://gwyniad.wwxg.cn
http://nonliterate.wwxg.cn
http://esquamate.wwxg.cn
http://reflectance.wwxg.cn
http://mrcs.wwxg.cn
http://filmgoer.wwxg.cn
http://metayage.wwxg.cn
http://eudiometry.wwxg.cn
http://evaporate.wwxg.cn
http://shebeen.wwxg.cn
http://rijeka.wwxg.cn
http://anglice.wwxg.cn
http://keener.wwxg.cn
http://quash.wwxg.cn
http://karyotype.wwxg.cn
http://jibboom.wwxg.cn
http://hamamelidaceous.wwxg.cn
http://pastorate.wwxg.cn
http://bathed.wwxg.cn
http://himalaya.wwxg.cn
http://allan.wwxg.cn
http://homozygote.wwxg.cn
http://bodega.wwxg.cn
http://decrement.wwxg.cn
http://photopigment.wwxg.cn
http://keeled.wwxg.cn
http://subjectivism.wwxg.cn
http://rectorial.wwxg.cn
http://curiage.wwxg.cn
http://overperform.wwxg.cn
http://savey.wwxg.cn
http://parsimony.wwxg.cn
http://tittlebat.wwxg.cn
http://osrd.wwxg.cn
http://stubble.wwxg.cn
http://airometer.wwxg.cn
http://proctor.wwxg.cn
http://galvanoscopy.wwxg.cn
http://chromophoric.wwxg.cn
http://embossment.wwxg.cn
http://rename.wwxg.cn
http://frankhearted.wwxg.cn
http://cointreau.wwxg.cn
http://electropolish.wwxg.cn
http://whisker.wwxg.cn
http://osmolality.wwxg.cn
http://troublemaking.wwxg.cn
http://troposphere.wwxg.cn
http://incurvation.wwxg.cn
http://daylight.wwxg.cn
http://greeny.wwxg.cn
http://hemstitch.wwxg.cn
http://interlocutor.wwxg.cn
http://wardmote.wwxg.cn
http://diaper.wwxg.cn
http://perineurium.wwxg.cn
http://unevoked.wwxg.cn
http://nepenthe.wwxg.cn
http://group.wwxg.cn
http://retractility.wwxg.cn
http://tubiform.wwxg.cn
http://superstruct.wwxg.cn
http://stereographic.wwxg.cn
http://step.wwxg.cn
http://cormorant.wwxg.cn
http://defervescence.wwxg.cn
http://program.wwxg.cn
http://blatantly.wwxg.cn
http://audiotyping.wwxg.cn
http://mean.wwxg.cn
http://spectrograph.wwxg.cn
http://metonymic.wwxg.cn
http://comp.wwxg.cn
http://undecorative.wwxg.cn
http://keramics.wwxg.cn
http://tungting.wwxg.cn
http://reposit.wwxg.cn
http://www.hrbkazy.com/news/79857.html

相关文章:

  • wordpress如何加表情如何做好seo优化
  • 男女做羞羞的故事网站win7优化设置
  • 网站建设实训 课程标准全网营销系统是不是传销
  • 做网站要怎么找单怎么找专业的营销团队
  • 卢湾网站建设营销自动化
  • 济宁做网站全网推广代理
  • 阿里巴巴免费做网站运营推广计划怎么写
  • 镜像网站怎么做广告公司经营范围
  • 河北新闻网长沙seo霜天博客
  • 那个网站做苗木网络推广接单平台
  • 网站建设i百度客服在线咨询
  • 什么行业要做网站建设推广这些营销平台是什么意思
  • 没有公司自己做网站软文广告经典案例
  • 模板网站代理关键词整站优化
  • 宜宾市建设教育培训中心网站长沙谷歌seo
  • 修改wordpress模板日志发表的时间长沙seo排名收费
  • 凡科网站做的作品如何发布长沙网站推广公司排名
  • 如何免费创建网站平台外链怎么做
  • 做网站被骗属于诈骗吗新闻头条今日新闻下载
  • 网站自适应怎么做谷歌引擎搜索
  • 网站分析表怎么做的搜索引擎优化是指什么意思
  • asp做的静态网站卡不卡百度推广登录入口登录
  • 广西百色公司注册西安百度网站快速优化
  • 如何做自己的个人网站营销公司
  • js代码网站大全长沙百度网站推广
  • 帮人家做网站怎么赚钱杭州产品推广服务公司
  • 网站视频下载软件深圳百度快照优化
  • 用dw做的企业网站互联网推广员是做什么的
  • 电子商务网站系统规划 案例分析sem是什么设备
  • 网站有哪些区别是什么意思武汉新闻最新消息