目标applet或JVM进程突然退出 [英] Target applet or JVM process exited abruptly

查看:772
本文介绍了目标applet或JVM进程突然退出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到的消息目标applet或JVM进程退出突然有时和它不是连续来了,所以我不能跟踪日志Java控制台关闭之前。我试着使用,以增加堆大小

I'm getting message Target applet or JVM process exited abruptly sometimes and its not coming continuously so I can't trace the log before Java Console closes. I tried to increase heap size using

< PARAM NAME =java_argumentsVALUE = - Xmx128m>

< PARAM NAME =java_argumentsVALUE = - Xmx300m>

< PARAM NAME =java_argumentsVALUE = - Xmx512m>

但它不工作。同样的问题已经问。我也尝试使用加载小程序在不同的JVM

but its not working. Same question already asked. I also tried to load Applet in separate JVM using

< PARAM NAME =separate_jvmVALUE =真>

<一个href=\"http://www.techques.com/question/1-11284843/uncaught-exception:-Target-applet-or-JVM-process-exited-abruptly---from-a-firefox-extension\">http://www.techques.com/question/1-11284843/uncaught-exception:-Target-applet-or-JVM-process-exited-abruptly---from-a-firefox-extension

<一个href=\"http://stackoverflow.com/questions/11284843/uncaught-exception-target-applet-or-jvm-process-exited-abruptly-from-a-firefo\">uncaught例外:目标applet或JVM进程退出突然 - 从Firefox扩展

目标JVM似乎已经退出

推荐答案

如果你能得到你的客户端运行小程序的完全信任,有几件事情可以做:

If you can get your client to run the applet as fully trusted, there's several things you can do:


  1. 安装<一href=\"http://docs.oracle.com/javase/7/docs/api/java/lang/Thread.html#setDefaultUncaughtExceptionHandler(java.lang.Thread.UncaughtExceptionHandler)\"相对=nofollow>默认的异常处理程序,并将其异常信息发送给你。

  2. System.setOut()并的 System.setErr(),然后将结果发送给您。

  3. Install关闭挂钩和安全管理得到告诉当JVM正在关闭

  1. Install a default exception handler, and have it send the exception information to you.
  2. Call System.setOut() and System.setErr() and send the results to you.
  3. Install shutdown hooks and a security manager to get told when the JVM is shutting down

否则,你可以尝试:


  1. 创建一个非守护线程并让它永远沉睡,要尽量prevent小程序由具有至少一个线程活跃成交。 (有几乎不与任何小程序的经验,我不知道这是否会工作)。

  2. 使用 Java日志系统和他们将这些信息发送给您,同时希望在导致崩溃日志的东西在飞机坠毁前权的问题。

  1. Creating a non-daemon thread and have it sleep forever, to try to prevent the applet from closing by having at least one thread active. (Having hardly any experience with applets, I'm not sure if this would work).
  2. Use the Java logging system and have the information be sent to you, in the hopes that the problem that causes the crash logs something right before the crash.

这篇关于目标applet或JVM进程突然退出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆