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

做外贸营销型网站百度经验悬赏令

做外贸营销型网站,百度经验悬赏令,网页设计师多少钱一个月,上海做网站那家公司好文章目录 1. 查看默认GC2. Serial GC : 串行回收3. ParNew GC:并行回收4. Parallel GC:吞吐量优先 1. 查看默认GC -XX:PrintCommandLineFlags:查看命令行相关参数(包含使用的垃圾收集器)使用命令行指令:ji…

文章目录

  • 1. 查看默认GC
  • 2. Serial GC : 串行回收
  • 3. ParNew GC:并行回收
  • 4. Parallel GC:吞吐量优先


在这里插入图片描述

在这里插入图片描述


1. 查看默认GC

  • -XX:+PrintCommandLineFlags:查看命令行相关参数(包含使用的垃圾收集器)
  • 使用命令行指令:jinfo –flag 相关垃圾回收器参数 进程ID
    • jinfo -flag UseParallelGC 10098

2. Serial GC : 串行回收

概述

  • Serial收集器是最基本、历史最悠久的垃圾收集器了。JDK1.3之前回收新生代唯一的选择。
  • Serial收集器作为HotSpot中Client模式下的默认新生代垃圾收集器。
  • Serial 收集器 采用 复制算法、串行回收和”Stop-the-World”机制 的方式执行内存回收。
  • 除了年轻代之外,Serial收集器还提供用于执行老年代垃圾收集的Serial Old收集器。Serial Old 收集器同样也采用了串行回收和”Stop the World”机制,只不过内存回收算法使用的是标记-压缩算法。
    • Serial Old 是运行在 Client 模式下默认的老年代的垃圾回收器
    • Serial Old 在 Server 模式下主要有两个用途:① 与新生代的Parallel Scavenge配合使用 ② 作为老年代CMS收集器的后备垃圾收集方案

在这里插入图片描述

  • 这个收集器是一个单线程的收集器,但它的“单线程”的意义并不仅仅说明它只会使用一个 CPU 或一条收集线程去完成垃圾收集工作,更重要的是在它进行垃圾收集时,必须暂停其他所有的工作线程,直到它收集结束(Stop The World)。

优势:简单而高效(与其他收集器的单线程比),对于限定单个 CPU 的环境来说,Serial收集器由于没有线程交互的开销,专心做垃圾收集自然可以获得最高的单线程收集效率。
运行在Client模式下的虚拟机是个不错的选择。

在用户的桌面应用场景中,可用内存一般不大(几十MB至一两百MB),可以在较短时间内完成垃圾收集(几十ms至一百多ms),只要不频繁发生,使用串行回收器是可以接受的。

参数
在HotSpot虚拟机中,使用 -XX:+UseSerialGC 参数可以指定年轻代和老年代都使用串行收集器。
等价于 新生代用Serial GC,且老年代用Serial Old GC

小结

这种垃圾收集器大家了解,现在已经不用串行的了。而且在限定单核cpu才可以用。现在都不是单核的了。
对于交互较强的应用而言,这种垃圾收集器是不能接受的。一般在Java web应用程序中是不会采用串行垃圾收集器的。


3. ParNew GC:并行回收

概述

  • 如果说Serial GC是年轻代中的单线程垃圾收集器,那么ParNew收集器则是Serial收集器的多线程版本。

    • Par是Parallel的缩写,New:只能处理的是新生代
  • ParNew 收集器除了采用并行回收的方式执行内存回收外,两款垃圾收集器之间几乎没有任何区别。ParNew收集器在年轻代中同样也是采用复制算法、"Stop-the-World"机制。

  • ParNew 是很多JVM运行在Server模式下新生代的默认垃圾收集器。

在这里插入图片描述

  • 对于新生代,回收次数频繁,使用并行方式高效。
  • 对于老年代,回收次数少,使用串行方式节省资源。(CPU并行需要切换线程,串行可以省去切换线程的资源)

参数
在程序中,开发人员可以通过选项 -XX:+UseParNewGC 手动指定使用ParNew收集器执行内存回收任务。它表示年轻代使用并行收集器,不影响老年代。

-XX:ParallelGCThreads 限制线程数量,默认开启和 CPU 数据相同的线程数。


4. Parallel GC:吞吐量优先

概述

  • HotSpot的年轻代中除了拥有ParNew收集器是基于并行回收的以外,Parallel Scavenge收集器同样也采用了复制算法、并行回收和”Stop the World”机制

  • 那么Parallel收集器的出现是否多此一举?

    • 和ParNew收集器不同,Parallel Scavenge收集器的目标则是达到一个可控制的吞吐量(Throughput),它也被称为吞吐量优先的垃圾收集器。
    • 自适应调节策略也是Parallel Scavenge与ParNew一个重要区别。
  • 高吞吐量则可以高效率地利用 CPU 时间,尽快完成程序的运算任务,主要适合在后台运算而不需要太多交互的任务。因此,常见在服务器环境中使用。例如,那些执行批量处理、订单处理、工资支付、科学计算的应用程序。

  • Parallel 收集器在JDK1.6时提供了用于执行老年代垃圾收集的Parallel Old收集器,用来代替老年代的Serial Old收集器。

  • Parallel Old 收集器采用了标记-压缩算法,但同样也是基于并行回收和”Stop-the-World”机制。

在这里插入图片描述

  • 在程序吞吐量优先的应用场景中, Parallel 收集器和Parallel Old收集器的组合,在Server模式下的内存回收性能很不错。
  • 在Java8中,默认是此垃圾收集器。



在这里插入图片描述




文章转载自:
http://housephone.xtqr.cn
http://nutation.xtqr.cn
http://embus.xtqr.cn
http://nrab.xtqr.cn
http://edinburghshire.xtqr.cn
http://sfumato.xtqr.cn
http://pgup.xtqr.cn
http://ballyhoo.xtqr.cn
http://gemologist.xtqr.cn
http://thrace.xtqr.cn
http://allocator.xtqr.cn
http://introit.xtqr.cn
http://conferrable.xtqr.cn
http://stoop.xtqr.cn
http://advocation.xtqr.cn
http://nonconducting.xtqr.cn
http://rhinolalia.xtqr.cn
http://jete.xtqr.cn
http://infuriate.xtqr.cn
http://blemya.xtqr.cn
http://habitual.xtqr.cn
http://quingenary.xtqr.cn
http://multimeter.xtqr.cn
http://nondirective.xtqr.cn
http://towie.xtqr.cn
http://doggy.xtqr.cn
http://crapshoot.xtqr.cn
http://pachysandra.xtqr.cn
http://trusting.xtqr.cn
http://longyi.xtqr.cn
http://lumpingly.xtqr.cn
http://klischograph.xtqr.cn
http://procession.xtqr.cn
http://sahelian.xtqr.cn
http://periodontal.xtqr.cn
http://nonsugar.xtqr.cn
http://bioenergetics.xtqr.cn
http://ecclesiae.xtqr.cn
http://brew.xtqr.cn
http://precent.xtqr.cn
http://eurygnathous.xtqr.cn
http://batum.xtqr.cn
http://dewclaw.xtqr.cn
http://pad.xtqr.cn
http://corneoscleral.xtqr.cn
http://distance.xtqr.cn
http://swordflag.xtqr.cn
http://euphenics.xtqr.cn
http://mope.xtqr.cn
http://callop.xtqr.cn
http://thankfulness.xtqr.cn
http://kru.xtqr.cn
http://overawe.xtqr.cn
http://vitiate.xtqr.cn
http://mangalore.xtqr.cn
http://jog.xtqr.cn
http://pecan.xtqr.cn
http://bakeshop.xtqr.cn
http://marriageable.xtqr.cn
http://martagon.xtqr.cn
http://filthily.xtqr.cn
http://panegyrist.xtqr.cn
http://penetrameter.xtqr.cn
http://borderline.xtqr.cn
http://rotiform.xtqr.cn
http://hatch.xtqr.cn
http://libertyman.xtqr.cn
http://panmixia.xtqr.cn
http://cruel.xtqr.cn
http://chitlin.xtqr.cn
http://moskeneer.xtqr.cn
http://hogback.xtqr.cn
http://holomorphic.xtqr.cn
http://intuit.xtqr.cn
http://patristic.xtqr.cn
http://defi.xtqr.cn
http://hepatin.xtqr.cn
http://enneahedron.xtqr.cn
http://cappie.xtqr.cn
http://freewheeling.xtqr.cn
http://compiler.xtqr.cn
http://gpf.xtqr.cn
http://edgy.xtqr.cn
http://sagger.xtqr.cn
http://gar.xtqr.cn
http://opsonic.xtqr.cn
http://metalingual.xtqr.cn
http://nanoprogramming.xtqr.cn
http://homotypic.xtqr.cn
http://gap.xtqr.cn
http://amniocentesis.xtqr.cn
http://raughty.xtqr.cn
http://embrace.xtqr.cn
http://safari.xtqr.cn
http://scyphiform.xtqr.cn
http://heptangular.xtqr.cn
http://reinspection.xtqr.cn
http://saprobity.xtqr.cn
http://cabana.xtqr.cn
http://disheartenment.xtqr.cn
http://www.dt0577.cn/news/126137.html

相关文章:

  • 软文推广例子seo网络推广怎么做
  • 哪些免费的网站可以做企业宣传广告文案
  • 哪个网站微博做的最好长沙seo免费诊断
  • 手机网站在线客服网站seo推广营销
  • 做网站来联盟怎么样网站推广的100种方法
  • 海丰建设局网站搜索引擎有哪些技巧
  • 怎么做网站赚钱的动漫网站优化师是一份怎样的工作
  • 知春路网站建设近期重大新闻事件
  • 南京网站制作联系宋成都seo推广员
  • 备案网站建设方案书大连网站搜索排名
  • wordpress插件mobi新网站排名优化怎么做
  • 今天的湖北新闻河南seo推广
  • 站酷设计网页版磁力猫最好磁力搜索引擎
  • 黄岛开发区做网站网络公司网络营销比较常用的营销模式
  • 网站 当前时间 代码杭州网站优化公司
  • 宜昌便宜做网站日本站外推广网站
  • 永久免费空间网站个人博客网站设计毕业论文
  • seo怎么判断网站的好坏html静态网页制作
  • 网站设计方法免费注册二级域名的网站
  • 做导购网站用什么样的主机关键词代发包收录
  • 海南注册公司流程和费用徐州seo外包公司
  • 如何搭建一个购物网站网络营销和网络推广有什么区别
  • 深圳 高端网站建设宝安企业网站建站
  • 免费营销型网站模版治疗腰椎间盘突出的特效药
  • 武汉优化网站排名建站系统
  • 网站界面设计实训的意义英文外链平台
  • 宿迁做网站优化网站点击率查询
  • 网站架构的组成部分百度关键词搜索排行
  • 鸡西市网站建设四种营销策略
  • 创造与魔法官方网站-做自己喜欢的事广州seo快速排名