title: Heap space error while executing logstash with a large dictionary (translate filter)
body: <p>I get an error java.lang.OutOfMemoryError: Java heap space while executing logstash with a large dictionary of 353 mega bytes in translate filter. </p>
  
  <p>I use it to do a lookup on my input data.</p>
  
  <p>I tried to allow the JVM to use more memory (with java -Xmx2048m). suppose i do it wrong because it has no effect.</p>
  
  <p>I tested my config file with "smaller" dictionary and it worked fine. Any help please ? how to give logstash enough RAM to not die ?</p>
  
  <p>My config file looks like that :</p>
  
  <pre><code>input {  
  file {
    type =&gt; "MERGED DATA"
    path =&gt; "C:\logstash-1.4.1\bin\..."
    start_position =&gt; "beginning"
      sincedb_path =&gt; "/dev/null"}} 
  
   filter {
  grok {
      match =&gt; [ "message", "..." ]} 
  
  if (...") {
  translate {dictionary_path =&gt; "C:\logstash-1.4.1\bin\DICTIONARY.yaml"  field =&gt; "Contact_ID"  destination =&gt; "DATA" fallback =&gt; "no match" refresh_interval =&gt; 60  }
  
  grok {match =&gt; [ "DATA", "..." ]}
  
  mutate {remove_field =&gt; ...}
  
  else if ...
  
  else if ...
  
  mutate {   ... }
  }
  output { if [rabbit] == "INFO" {
    elasticsearch {
      host =&gt; "localhost"
              }
    stdout {}
  }}
  </code></pre>
  
  <p>Thanks a lot.</p>