Bombo
Bombo

Reputation: 147

OutOfMemory Solr 3.4

hi guys sometimes on my website solar goes down, generating an exception.

java.lang.OutOfMemoryError: Java heap space

java.lang.reflect.InvocationTargetException

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:344)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:435)

Caused by: java.lang.OutOfMemoryError: Java heap space

how could I solve it?

Upvotes: 0

Views: 77

Answers (1)

hnbanh
hnbanh

Reputation: 149

  1. Try to apply newer version of Solr, it may handle memory better than older versions.
  2. Try to change GC algorithms (such as CMS, G1..) and monitor it.
  3. Start with flag -XX:+HeapDumpOnOutOfMemoryError. Analyze the heapdump with visualvm, jmap ... to detect any memory leak issues.
  4. Incr -Xmx as much as you can

Upvotes: 3

Related Questions