I guess it could be many things.

Typically an easy one to spot is if you have insufficient heap (i.e. your 16Gb) and the jvm is full gc'ing constantly and not freeing up any memory and using lots of cpu. This would make solr slow and "hangs up" as well during potentially long gc pauses.

add: -XX:+PrintGCDetails -verbose:gc -Xloggc:/var/log/solr-verbose-gc.log

I configure this on all my java apps just in case. You will easily spot any gc problems by looking at the verbose log file.

I you are filling the heap and need to find out what is using up all the space the you can take a heap dump with jmap -dump:format=b,file=heap.bin <pid>. I usually use eclipse memory analyser (mat) to inspect the heap. I have found a lucene field cache to be a big memory hog.

good luck
andre


On 10/28/2011 02:09 PM, Rohit wrote:
Hi,



My Solr becomes very slow or hangs up at times, we have done almost
everything possible like

.         Giving 16GB memory to JVM

.         Sharding



But these help only for X time, i want to profile the server and see whats
going wrong? How can I profile solr remotely?



Regards,

Rohit




Reply via email to