piyushroshan / multipass-for-coreference

Implementation of paper Lee, Heeyoung, et al. "Stanford's multi-pass sieve coreference resolution system at the CoNLL-2011 shared task." Proceedings of the Fifteenth Conference on Computational Natural Language Learning: Shared Task. Association for Computational Linguistics, 2011.
4 stars 1 forks source link

Java heap space Error #1

Open DivakarDass opened 10 years ago

DivakarDass commented 10 years ago

If I pass more text content(approximately 20 lines) to this service, I keep getting this error "jpype._jexception.VirtualMachineErrorPyRaisable: java.lang.OutOfMemoryError: Java heap space" (In startJvm method). Though it works fine with lesser text content.

vishalbhalla commented 9 years ago

Hi Divakar,

Increase the heap size explicitly by passing the size as a parameter to the startJvm() method when Jpype initializes a JVM. Check the below links. I am also facing a similar problem.

http://stackoverflow.com/questions/37335/how-to-deal-with-java-lang-outofmemoryerror-java-heap-space-error-64mb-heap

https://docs.oracle.com/cd/E26576_01/doc.312/e24936/tuning-java.htm#GSPTG00205

Hope this helps. Thanks, Vishal.