title: duplicate stack trace detection in java
body: <p>I am trying to find out a good hash function or utility code that can be used to check if a stack trace already exists. </p>
  
  <p>So, far I am using a simple logic to compare 
  first 2000 characters and another 2000 characters beginning from the caused by part if it exists.</p>
  
  <p>This will do the job however, a more technical solution to do it would be desired. </p>