title: Intellij diagnosing crash problem
body: <p>Sometimes <code>Intellij IDEA</code> crashes for no obvious reason.</p>
  
  <p>First, it becomes quite slow, <code>CTRL + N</code> (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..</p>
  
  <p>What is the usual route to diagnose <code>Intellij</code> 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?</p>
  
  <p>[UPDATE] 3 crashes in total.</p>
  
  <p>1 instance:</p>
  
  <blockquote>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]
  </blockquote>
  
  <p>2 instances:</p>
  
  <blockquote>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</blockquote>
  
  <p>Memory configuration:
  -Xss2m<br>
  -Xms32m<br>
  -Xmx512m </p>
  
  <p>Increased the memory to <code>-Xmx768</code>, hopefully that will delay the out of memory error by a bit. Increasing the memory to <code>-Xmx1024</code> caused weird address mapping problems after running IDEA for a while (integer overflow?). The machine has 3GB of RAM.</p>