The following modifications solved the issue:
Applied the changes described at http://stackoverflow.com/a/3035916/236007
Switched to Oracle Java runtime (it was IBM Java runtime).
Put the
ulimit -v unlimited
in/etc/init.d/tomcat7
.Modified the
/usr/share/tomcat7/bin/setenv.sh
file as the following (giving it about 4 GB memory):export JAVA_OPTS="$JAVA_OPTS -Xmx4000m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/mnt/data/tomcat_dump"
Read full article from java - How to solve the 'Lock obtain timed out' when using Solr plainly? - Stack Overflow
No comments:
Post a Comment