Agreed, that is a LOT of options. 

First, check the defaults and remove any flags that are setting something to 
the default. You can see all the flags and the default values with this command:

java -XX:+PrintFlagsFinal -version

For example, the default for ParallelGCThreads is 8, so you do not need to set 
that.

We set a fairly large new generation, about 1/4 of heap. 512 Meg is way too 
small. Solr will allocate a lot of objects that are only used to handle one 
HTTP request. You want all of those to fit in the new space, even when there 
are simultaneous requests. If new is not big enough, they will be allocated in 
tenured space and will cause more frequent major GCs. For an 8G heap, we use a 
2G new size.

wunder

On May 29, 2014, at 7:20 AM, Otis Gospodnetic <otis.gospodne...@gmail.com> 
wrote:

> Hi Bihan,
> 
> That's a lot of parameters and without trying one can't really give you
> very specific and good advice.  If I had to suggest something quickly I'd
> say:
> 
> * go back to the basics - remove most of those params and stick with the
> basic ones.  Look at GC and tune slowly by changing/adding params one at a
> time.
> * consider using G1 GC with the most recent Java7.
> 
> Otis
> --
> Performance Monitoring * Log Analytics * Search Analytics
> Solr & Elasticsearch Support * http://sematext.com/
> 
> 
> On Thu, May 29, 2014 at 1:36 AM, bihan.chandu <bihan.cha...@gmail.com>wrote:
> 
>> Hi All
>> 
>> I am Currently using solr 3.6.1 and my system handle lot of request .Now we
>> are facing High GC issue in system. Please find the memory parameters in my
>> solr system . Can some on help me to identify is there any relationship
>> between my memory parameters and GC issue.
>> 
>> MEM_ARGS="-Xms7936M -Xmx7936M -XX:NewSize=512M -XX:MaxNewSize=512M
>> -Xss1024k
>> -XX:ParallelGCThreads=8 -XX:+UseConcMarkSweepGC
>> -XX:CMSInitiatingOccupancyFraction=80 -XX:+UseCMSInitiatingOccupancyOnly
>> -XX:+CMSParallelRemarkEnabled -XX:+AggressiveOpts
>> -XX:LargePageSizeInBytes=2m -XX:+UseLargePages -XX:MaxTenuringThreshold=15
>> -XX:-UseAdaptiveSizePolicy -XX:PermSize=256M -XX:MaxPermSize=256M
>> -XX:SurvivorRatio=4 -XX:TargetSurvivorRatio=90 -XX:+PrintGCDetails
>> -XX:+PrintGCTimeStamps -XX:+PrintGCApplicationStoppedTime -XX:+PrintGC
>> -Xloggc:${GCLOG} -XX:-OmitStackTraceInFastThrow -XX:+DisableExplicitGC
>> -XX:-BindGCTaskThreadsToCPUs -verbose:gc -XX:StackShadowPages=20"
>> 
>> Thanks
>> Bihan
>> 



Reply via email to