Intellij诊断崩溃问题 [英] Intellij diagnosing crash problem

查看:235
本文介绍了Intellij诊断崩溃问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有时候 Intellij IDEA 因没有明显原因而崩溃。



首先, $ c> CTRL + N (类搜索)通常需要比平时更长的时间来响应,当你键入的东西,它在文件之间跳转需要更多的时间。然后它崩溃..



诊断 Intellij 崩溃的通常路线是什么?我一直在监控状态栏上的内存,当它崩溃,它有大约100MB(512MB)剩下的时间。是否有任何有用的日志指向问题的方向?



[UPDATE]总共有3次崩溃。



1个实例:

Java运行环境检测到致命错误:

EXCEPTION_ACCESS_VIOLATION(0xc0000005)at pc = 0x6d93acab, pid = 3120,tid = 5588

JRE版本:6.0_24-b07
Java VM:Java HotSpot™客户端虚拟机(19.1-b02混合模式windows-x86)
有问题的框架:
V [jvm.dll + 0x9acab]

2个实例:



< blockquote> Java运行时环境检测到致命错误:
java.lang.OutOfMemoryError:请求32756字节的ChunkPool :: allocate。在交换空间?
内部错误(allocation.cpp:166),pid = 2484,tid = 5568
错误:ChunkPool :: allocate

内存配置:
-Xss2m

-Xms32m

-Xmx512m



将内存增加到 -Xmx768 ,希望会延迟内存出错错误一点。将内存增加到 -Xmx1024 导致奇怪的地址映射问题运行IDEA一段时间(整数溢出?)。该机器有3GB的RAM。

解决方案

请定义崩溃。如果窗口刚刚消失,通常意味着JVM错误,并且在IDEA工作目录(通常是IDEA_HOME / bin)中将有 hs_err_pidXXX.log 文件。在某些情况下,将JDK更新到新版本或更改Garbage Collector策略(通过vmoptions文件)可以解决此类问题。



如果IDE完全停止响应, a href =https://intellij-support.jetbrains.com/entries/23348667 =nofollow>提供线程转储。



如果它表现奇怪,那么你需要检查 idea.log 例外。在某些情况下,它可能是由OutOfMemory问题引起的。在idea.vmoptions中增加堆大小应该有所帮助。 查看常见问题,了解IDEA文件位置。



如果IDEA在某些操作上变得非常慢,您需要提供CPU快照


Sometimes Intellij IDEA crashes for no obvious reason.

First, it becomes quite slow, CTRL + N (class search) often takes a bit longer than usual time to respond when you type something into it, jumping between files takes more time. And then it crashes..

What is the usual route to diagnose Intellij crash? I've been monitoring memory on the status bar when it crashed and it had about 100MB (out of 512MB) left at that time. Are there any useful logs that would point in the direction of the problem?

[UPDATE] 3 crashes in total.

1 instance:

A fatal error has been detected by the Java Runtime Environment: EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d93acab, pid=3120, tid=5588 JRE version: 6.0_24-b07 Java VM: Java HotSpot(TM) Client VM (19.1-b02 mixed mode windows-x86 ) Problematic frame: V [jvm.dll+0x9acab]

2 instances:

A fatal error has been detected by the Java Runtime Environment: java.lang.OutOfMemoryError: requested 32756 bytes for ChunkPool::allocate. Out of swap space? Internal Error (allocation.cpp:166), pid=2484, tid=5568 Error: ChunkPool::allocate

Memory configuration: -Xss2m
-Xms32m
-Xmx512m

Increased the memory to -Xmx768, hopefully that will delay the out of memory error by a bit. Increasing the memory to -Xmx1024 caused weird address mapping problems after running IDEA for a while (integer overflow?). The machine has 3GB of RAM.

解决方案

Please define "crashes". If the window just disappears, it usually means the JVM bug and there will be hs_err_pidXXX.log files in the IDEA working directory (usually IDEA_HOME/bin). In some cases updating JDK to the new version or changing Garbage Collector strategy (via vmoptions file) can workaround such issues.

If the IDE stops responding completely, you need to provide thread dumps.

If it behaves weird, then you need to check idea.log for exceptions. In some cases it can be caused by OutOfMemory issues. Increasing heap size in idea.vmoptions should help. Check the FAQ for IDEA files locations.

If IDEA is becoming very slow on certain operations, you need to provide CPU snapshot.

这篇关于Intellij诊断崩溃问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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