首页 > 解决方案 > 使用 jsoup 时 Java 运行时环境检测到致命错误

问题描述

我已经在 foo 循环中运行下面的命令来获取 myurl 的 html 数据

doc = Jsoup.connect("myurl").get();

当我使用上面的代码时,我得到了以下错误

 A fatal error has been detected by the Java Runtime Environment:

 SIGSEGV (0xb) at pc=0x00007f2bd695c76c, pid=12495, tid=0x00007f2bd4863700

JRE version: Java(TM) SE Runtime Environment (8.0_181-b13) (build 1.8.0_181-b13)
 Java VM: Java HotSpot(TM) 64-Bit Server VM (25.181-b13 mixed mode linux-amd64 compressed oops)
 Problematic frame:
 V  [libjvm.so+0x99876c]  oopDesc* PSPromotionManager::copy_to_survivor_space<false>(oopDesc*)+0x7c

Core dump written. Default location: /home/cardekho/tomcat/apache-tomcat-9.0.21/bin/core or core.12495

An error report file with more information is saved as:
 /home/cardekho/tomcat/apache-tomcat-9.0.21/bin/hs_err_pid12495.log

 If you would like to submit a bug report, please visit:
   http://bugreport.java.com/bugreport/crash.jsp

标签: javajsoup

解决方案


推荐阅读