[ 
https://issues.apache.org/jira/browse/SOLR-6705?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14205547#comment-14205547
 ] 

Timothy Potter commented on SOLR-6705:
--------------------------------------

Thanks [~janhoy] for helping out with the 32-bit windows script issues!

For this, here's what I'm thinking of adding to the *nix script

{code}
JAVA_VERSION=`echo "$(java -version 2>&1)" | grep "java version" | awk '{ print 
substr($3, 2, length($3)-2); }'`
if [ "${JAVA_VERSION:0:3}" == "1.7" ]; then
  # Specific Java version hacking
  GC_TUNE="$GC_TUNE -XX:CMSFullGCsBeforeCompaction=1 -XX:CMSTriggerPermRatio=80"
  JAVA_MINOR_VERSION=${JAVA_VERSION:(-2)}
  if [[ $JAVA_MINOR_VERSION -ge 40 && $JAVA_MINOR_VERSION -le 51 ]]; then
    GC_TUNE="$GC_TUNE -XX:-UseSuperWord"
    echo -e "\nWARNING: Java version $JAVA_VERSION has known bugs with Lucene 
and requires the -XX:-UseSuperWord flag. Please consider upgrading your JVM.\n"
  fi
fi
{code}

Obviously the problematic flags will be removed from the default GC_TUNE 
settings in solr.in.sh and then just enabled for specific versions.

> SOLR Start script generates warnings on java 8 due ot experimental options
> --------------------------------------------------------------------------
>
>                 Key: SOLR-6705
>                 URL: https://issues.apache.org/jira/browse/SOLR-6705
>             Project: Solr
>          Issue Type: Bug
>          Components: scripts and tools
>    Affects Versions: 4.10.2
>         Environment: Mac Yosemite 10.10
> java -version
> java version "1.8.0_25"
> Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
> Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)
>            Reporter: Carsten Grønbjerg Lützen
>            Assignee: Timothy Potter
>            Priority: Trivial
>
> When using the start script in bin: ./solr start in java 8...
> {noformat}
> Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; 
> support was removed in 8.0
> Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=256m; 
> support was removed in 8.0
> Java HotSpot(TM) 64-Bit Server VM warning: ignoring option 
> CMSTriggerPermRatio=80; support was removed in 8.0
> Java HotSpot(TM) 64-Bit Server VM warning: CMSFullGCsBeforeCompaction is 
> deprecated and will likely be removed in a future release.
> {noformat}
> ...we should reconsider having these options hardcoded into the start script 
> -- either auto-detect if/when they make sense, or remove them



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to