Hi Shawn, Before I was running java 6 compiled code on java 8 when I was getting the exception. Now the code is compiled using java 8 and things are looking good. I will monitor if this happens again I can share the code.
thanks, Snehal > On Apr 9, 2015, at 8:59 PM, Shawn Heisey <apa...@elyograg.org> wrote: > > On 4/9/2015 9:51 PM, Summer Shire wrote: >> I was adding 1000 docs at a time but later I changed it to 10 and I am still >> getting the exception. >> >> The reason I added the integer.max_value code was because I googled for what >> could be causing the OOM >> and clearly the size of an array that worked with java6 doesn;t work with >> java 8. > > Can you use a paste website to share your code, after redacting > passwords, the first three octets of public IP addresses, etc? What is > the max heap given to Java when running your program? Is it a > standalone program dedicated to SolrJ, or part of something like a webapp? > > Thanks, > Shawn >