纪念第一次出现的GC

前言

原来对OOM只存在于书籍中,博客中.想着自己也碰不到.看过深入理解java虚拟机的前七章.懂了点概念.没想到真正出现问题.大脑一片空白.

业务场景

[1][segmentation]语言:zh-CN,lanIndex:12,断句后数量size:12,paragraph:目的探讨几种常见输卵管绝育手术后,进行显微输卵管复通术的效果及影响因素。方法回顾分析1982~2000年间我院对2001例妇女进行输卵管绝育后复通手术的效果,对不同绝育方法的复通效果及影响因素进行比较。结果2001例接受复通手术的妇女随访1798例,随访率89.85%。复通术后前3个月受孕率最高为37.43%(673/1798)。抽芯包埋法和夹绝育复通术后宫内妊娠率显著高于其他方法(P〈0.05);输卵管粘堵术复通效果最差。各种输卵管吻合方法中以峡-峡部和壶-壶部吻合后的宫内妊娠率较高,均显著高于输卵管峡-壶部吻合及输卵管植入术;峡-壶部吻合术后宫内妊娠率显著高于子宫输卵管植入术。吻合术后输卵管长度〈4cm时宫内妊娠率显著降低,长度〉5cm时宫内妊娠率即不受影响。吻合术后的早期通液不能提高手术成功率,反而可使宫内妊娠率下降和异位妊娠发生率升高。结论在输卵管绝育时应避开血管,减少系膜损伤,可提高术后复通的成功率,使绝育手术更具可逆性;粘堵绝育复通效果较差;术后没有必要短期避孕;输卵管吻合术后的早期通液有弊无益。
22:32:46.334 [main] INFO com.tmxbase.utils.segmentation.util.SRXUtil - [1][segmentation]语言:en-GB,lanIndex:2,断句后数量size:18,paragraph:Objective To study the effects of microsurgical tubal reversal in women with various common tubal sterilization techniques, and the factors influencing the reversal. Methods Two thousand and one women who underwent microsurgical tubal reversal after tubal sterilization in our hospital from 1982 to 2000 were followed up to observe the revernal results. The reversal results of different sterilizing techniques and the influencing factors were compared and analyzed. Results One thousand seven hundred and ninety-eight women (89.85%) with tubal reversal were successfully followed up. The pregnancy rate in the first 3 months after tubal reversal was the highest (37.43%, 673/1 798). The rates of intrauterine pregnancy after tubal reversal in Uchida sterilization technique and clips sterilization were significantly higher than those in other sterilizing techniques ( P 〈 0. 05). The reversal result of medicinal block of the tubal lumen was the poorest. The tubal anastomosis of isthmus-isthmus and ampulla-ampulla produced the excellent intrauterine pregnancy rates, either of which was significantly higher than the rates of isthmus-to-ampulla anastomosis and hyste than rosalpingostomy. While the intrauterine pregnancy rate of isthmus-ampulla anastomosis was significantly higher that of hysterosalpingostomy. When the tubal length after anastomosis was less than 4 cm, the intrauterine pregnancy rate was very low. When the tubal length was more than 5 cm, the reversal result will not be impaired. The early tubal fluid infusion after anastomosis can not improve the reversal result. On the contrary, it could decrease the chance of intrauterine pregnancy and lead to a higher ectopic pregnancy rate. Conclusion The tubal streilization, at isthmus of salpinx and with a little destruction of salpinx and its mesosalpinx, can be more reversible after microsurgical reanastomosis. The chemical occlusive sterilization is the least reversible of all the sterilizing techniques. The short-term contraception after tubal reversal is not necessary. The early tubal fluid infusion shortly after tubal anastomosis does more harm than good to the tubal reversal.
22:32:46.334 [main] INFO AlignmentProcess - [1][alignment]开始进行对齐,原文句子长度:12,译文句子长度为:18
22:32:46.334 [main] INFO AlignmentProcess - [1]行号386原文内容为:目的探讨几种常见输卵管绝育手术后,进行显微输卵管复通术的效果及影响因素。
22:32:46.334 [main] INFO AlignmentProcess - [1]行号386原文内容为:方法回顾分析1982~2000年间我院对2001例妇女进行输卵管绝育后复通手术的效果,对不同绝育方法的复通效果及影响因素进行比较。
22:32:46.334 [main] INFO AlignmentProcess - [1]行号386原文内容为:结果2001例接受复通手术的妇女随访1798例,随访率89.
22:32:46.334 [main] INFO AlignmentProcess - [1]行号386原文内容为:85%。
22:32:46.334 [main] INFO AlignmentProcess - [1]行号386原文内容为:复通术后前3个月受孕率最高为37.
22:32:46.334 [main] INFO AlignmentProcess - [1]行号386原文内容为:43%(673/1798)。
22:32:46.334 [main] INFO AlignmentProcess - [1]行号386原文内容为:抽芯包埋法和夹绝育复通术后宫内妊娠率显著高于其他方法(P〈0.
22:32:46.334 [main] INFO AlignmentProcess - [1]行号386原文内容为:05);输卵管粘堵术复通效果最差。
22:32:46.334 [main] INFO AlignmentProcess - [1]行号386原文内容为:各种输卵管吻合方法中以峡-峡部和壶-壶部吻合后的宫内妊娠率较高,均显著高于输卵管峡-壶部吻合及输卵管植入术;峡-壶部吻合术后宫内妊娠率显著高于子宫输卵管植入术。
22:32:46.334 [main] INFO AlignmentProcess - [1]行号386原文内容为:吻合术后输卵管长度〈4cm时宫内妊娠率显著降低,长度〉5cm时宫内妊娠率即不受影响。
22:32:46.334 [main] INFO AlignmentProcess - [1]行号386原文内容为:吻合术后的早期通液不能提高手术成功率,反而可使宫内妊娠率下降和异位妊娠发生率升高。
22:32:46.334 [main] INFO AlignmentProcess - [1]行号386原文内容为:结论在输卵管绝育时应避开血管,减少系膜损伤,可提高术后复通的成功率,使绝育手术更具可逆性;粘堵绝育复通效果较差;术后没有必要短期避孕;输卵管吻合术后的早期通液有弊无益。
22:32:46.334 [main] INFO AlignmentProcess - [1]行号386译文内容为:Objective To study the effects of microsurgical tubal reversal in women with various common tubal sterilization techniques, and the factors influencing the reversal.
22:32:46.334 [main] INFO AlignmentProcess - [1]行号386译文内容为:Methods Two thousand and one women who underwent microsurgical tubal reversal after tubal sterilization in our hospital from 1982 to 2000 were followed up to observe the revernal results.
22:32:46.334 [main] INFO AlignmentProcess - [1]行号386译文内容为:The reversal results of different sterilizing techniques and the influencing factors were compared and analyzed.
22:32:46.334 [main] INFO AlignmentProcess - [1]行号386译文内容为:Results One thousand seven hundred and ninety-eight women (89.85%) with tubal reversal were successfully followed up.
22:32:46.334 [main] INFO AlignmentProcess - [1]行号386译文内容为:The pregnancy rate in the first 3 months after tubal reversal was the highest (37.43%, 673/1 798).
22:32:46.334 [main] INFO AlignmentProcess - [1]行号386译文内容为:The rates of intrauterine pregnancy after tubal reversal in Uchida sterilization technique and clips sterilization were significantly higher than those in other sterilizing techniques ( P 〈 0.
22:32:46.334 [main] INFO AlignmentProcess - [1]行号386译文内容为:05).
22:32:46.334 [main] INFO AlignmentProcess - [1]行号386译文内容为:The reversal result of medicinal block of the tubal lumen was the poorest.
22:32:46.334 [main] INFO AlignmentProcess - [1]行号386译文内容为:The tubal anastomosis of isthmus-isthmus and ampulla-ampulla produced the excellent intrauterine pregnancy rates, either of which was significantly higher than the rates of isthmus-to-ampulla anastomosis and hyste than rosalpingostomy.
22:32:46.334 [main] INFO AlignmentProcess - [1]行号386译文内容为:While the intrauterine pregnancy rate of isthmus-ampulla anastomosis was significantly higher that of hysterosalpingostomy.
22:32:46.334 [main] INFO AlignmentProcess - [1]行号386译文内容为:When the tubal length after anastomosis was less than 4 cm, the intrauterine pregnancy rate was very low.
22:32:46.334 [main] INFO AlignmentProcess - [1]行号386译文内容为:When the tubal length was more than 5 cm, the reversal result will not be impaired.
22:32:46.334 [main] INFO AlignmentProcess - [1]行号386译文内容为:The early tubal fluid infusion after anastomosis can not improve the reversal result.
22:32:46.334 [main] INFO AlignmentProcess - [1]行号386译文内容为:On the contrary, it could decrease the chance of intrauterine pregnancy and lead to a higher ectopic pregnancy rate.
22:32:46.334 [main] INFO AlignmentProcess - [1]行号386译文内容为:Conclusion The tubal streilization, at isthmus of salpinx and with a little destruction of salpinx and its mesosalpinx, can be more reversible after microsurgical reanastomosis.
22:32:46.334 [main] INFO AlignmentProcess - [1]行号386译文内容为:The chemical occlusive sterilization is the least reversible of all the sterilizing techniques.
22:32:46.334 [main] INFO AlignmentProcess - [1]行号386译文内容为:The short-term contraception after tubal reversal is not necessary.
22:32:46.334 [main] INFO AlignmentProcess - [1]行号386译文内容为:The early tubal fluid infusion shortly after tubal anastomosis does more harm than good to the tubal reversal.
22:33:46.517 [main] INFO AlignmentProcess - [1]没有获取到翻译内容:
22:33:46.517 [main] INFO AlignmentProcess - [1]没有获取到翻译内容:
22:33:46.517 [main] INFO AlignmentProcess - [1]没有获取到翻译内容:
22:33:46.517 [main] INFO AlignmentProcess - [1]没有获取到翻译内容:
22:33:46.517 [main] INFO AlignmentProcess - [1]没有获取到翻译内容:
22:33:46.517 [main] INFO AlignmentProcess - [1]没有获取到翻译内容:
22:33:46.517 [main] INFO AlignmentProcess - [1]没有获取到翻译内容:
22:33:46.517 [main] INFO AlignmentProcess - [1]没有获取到翻译内容:
22:33:46.517 [main] INFO AlignmentProcess - [1]没有获取到翻译内容:
22:33:46.517 [main] INFO AlignmentProcess - [1]没有获取到翻译内容:
22:33:46.517 [main] INFO AlignmentProcess - [1]没有获取到翻译内容:
22:33:46.517 [main] INFO AlignmentProcess - [1]没有获取到翻译内容:

java.lang.OutOfMemoryError: GC overhead limit exceeded

	at java.util.Arrays.copyOfRange(Arrays.java:3664)
	at java.lang.StringBuffer.toString(StringBuffer.java:669)
	at AlignmentProcess.calcTgtPossibleAssemble(AlignmentProcess.java:1546)
	at AlignmentProcess.calcTgtPossibleAssemble(AlignmentProcess.java:1534)
	at AlignmentProcess.calcTgtPossibleAssemble(AlignmentProcess.java:1534)
	at AlignmentProcess.calcTgtPossibleAssemble(AlignmentProcess.java:1534)
	at AlignmentProcess.calcTgtPossibleAssemble(AlignmentProcess.java:1534)
	at AlignmentProcess.calcTgtPossibleAssemble(AlignmentProcess.java:1534)
	at AlignmentProcess.calcTgtPossibleAssemble(AlignmentProcess.java:1534)
	at AlignmentProcess.calcTgtPossibleAssemble(AlignmentProcess.java:1534)
	at AlignmentProcess.calcTgtPossibleAssemble(AlignmentProcess.java:1534)
	at AlignmentProcess.getTgtAssemblebleMap(AlignmentProcess.java:1515)
	at AlignmentProcess.alignment(AlignmentProcess.java:1404)
	at AlignmentProcess.segmentParagraphs(AlignmentProcess.java:1312)
复制代码

对中英翻译段落进行,分句对齐.(没有获取到翻译内容)这个是调用自己公司的机器翻译进行辅助对齐可能同时开几个他不行了....

解决方式

我首先用了jconsole(特别直观)., GC overhead limit exceeded(谷歌有很详细的解释). 老年代突然在一分钟600MB,上升到接近1.5G.并且持续.然后就GC.很符合错误的情形.这个对判断哪里出错帮助不大.然后我再次google.终于找到了极为强大的工具MAT.一个eclipse的插件.及其厉害.我想要的它都有(对我来说).下载地址.

mat使用
  1. 这里讲了怎么dump.不会的可以看看.
    不过里面的第二种方法我用的出现了问题. 当我的程序正在运行的时候.使用是可行的.
    但是当我的程序出现GC的时候,再次生成会出现拒绝访问(用管理员也没用),
    现在也没找到是什么原因导致的,如果有人能知道希望能告诉我一下.使用jvm配置的方式得到dump文件之后
  2. 进行导入 点击File->Open HeapDump选择要导入的文件.导入的时候可能会出错,把对应的删除再重新生成就好了.(如果还出错,那我还没碰到过).首先要注意的是Histogram,

这里告诉了你占内存的主要是什么东西,

我这里是这个(其实用处不是很大我个人感觉),接下来这个就厉害了.Dominator Tree
我的问题就在这里解决了.让我们看一下里面长什么样子.

在这里面可以根据百分比进行查看.保留了强引用.可以看到我占内存的原因是这里有个巨无霸的map. 里面包含了60Node.
从key中我看到了代码出错的位置,定位到是算法中的问题(Windows->Inspector可以出现左边的东西)
在分离开你就能看到里面的list了,有20000多个..这里我就知道因为在对齐的时候会匹配所有的可能,会有多层循环嵌套,导致内容过多.
工具其实还有很多功能,但是问题找到了也没有再鼓捣了,毕竟英文阅读是硬伤.时间也不允许.
至此,希望能够对阅读的你们有一点点的帮助.我就很满足了.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值