title: Is memory out of bound exception or error?
body: <p>Is memory out of bound exception or error? We usually get this during project deployment on the server. It might be a basic question. I googled it but I could not find relevant answer so posting here.</p>
  
  <p><em>Error I got:</em></p>
  
  <blockquote>
    <p>Invocation of init method failed; nested exception is <code>java.lang.OutOfMemoryError: allocLargeObjectOrArray</code> - Object size: 8216, Num elements: 2049</p>
  </blockquote>
  
  <p>And how can we handle this?</p>