[
https://issues.apache.org/jira/browse/SOLR-7309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14385990#comment-14385990
]
Martijn Koster commented on SOLR-7309:
--------------------------------------
I tried the {{bin/solr}} from [rev
1669697|https://svn.apache.org/viewvc?view=revision&revision=1669697] with a
[nightly|https://builds.apache.org/job/Solr-Artifacts-5.0/70/]; solr started.
Thanks Ramkumar!
I think there is a minor issue with the patch though.
If I run with Verbose, GC_TUNE and GC_LOG_OPTS report a single argument:
{noformat}
mak@crab 553 solr-5.0.0-2015-03-28_18-55-36-with space $ ./bin/solr -V -f
Using Solr root directory:
/Users/mak/Downloads/solr-5.0.0-2015-03-28_18-55-36-with space
Using Java:
/Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/bin/java
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)
Backing up /Users/mak/Downloads/solr-5.0.0-2015-03-28_18-55-36-with
space/server/logs/solr.log
Backing up /Users/mak/Downloads/solr-5.0.0-2015-03-28_18-55-36-with
space/server/logs/solr_gc.log
Starting Solr using the following settings:
JAVA =
/Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/bin/java
SOLR_SERVER_DIR = /Users/mak/Downloads/solr-5.0.0-2015-03-28_18-55-36-with
space/server
SOLR_HOME = /Users/mak/Downloads/solr-5.0.0-2015-03-28_18-55-36-with
space/server/solr
SOLR_HOST =
SOLR_PORT = 8983
STOP_PORT = 7983
SOLR_JAVA_MEM = -Xms512m
GC_TUNE = -XX:NewRatio=3
GC_LOG_OPTS = -verbose:gc
SOLR_TIMEZONE = UTC
{noformat}
whereas it is running with more:
{noformat}
mak@crab 501 ~ $ ps auxwww | grep XX:NewRatio | grep -v grep
mak 45844 0.1 0.9 3304748 154920 s001 S+ 11:19pm 0:03.62
/Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/bin/java
-server -Xss256k -Xms512m -Xmx512m -XX:NewRatio=3 -XX:SurvivorRatio=4
-XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=8 -XX:+UseConcMarkSweepGC
-XX:+UseParNewGC -XX:ConcGCThreads=4 -XX:ParallelGCThreads=4
-XX:+CMSScavengeBeforeRemark -XX:PretenureSizeThreshold=64m
-XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=50
-XX:CMSMaxAbortablePrecleanTime=6000 -XX:+CMSParallelRemarkEnabled
-XX:+ParallelRefProcEnabled -XX:CMSFullGCsBeforeCompaction=1
-XX:CMSTriggerPermRatio=80 -verbose:gc -XX:+PrintHeapAtGC -XX:+PrintGCDetails
-XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+PrintTenuringDistribution
-XX:+PrintGCApplicationStoppedTime
-Xloggc:/Users/mak/Downloads/solr-5.0.0-2015-03-28_18-55-36-with
space/server/logs/solr_gc.log -Djetty.port=8983 -DSTOP.PORT=7983
-DSTOP.KEY=solrrocks -Duser.timezone=UTC
-Dsolr.solr.home=/Users/mak/Downloads/solr-5.0.0-2015-03-28_18-55-36-with
space/server/solr
-Dsolr.install.dir=/Users/mak/Downloads/solr-5.0.0-2015-03-28_18-55-36-with
space -jar start.jar OPTIONS=default,rewrite
{noformat}
> bin/solr will not run when the solr home path contains a space
> --------------------------------------------------------------
>
> Key: SOLR-7309
> URL: https://issues.apache.org/jira/browse/SOLR-7309
> Project: Solr
> Issue Type: Bug
> Components: scripts and tools, Server
> Affects Versions: 5.0
> Reporter: Martijn Koster
> Assignee: Ramkumar Aiyengar
> Priority: Minor
> Fix For: Trunk, 5.1
>
> Attachments: SOLR-7309.patch, SOLR-7309.patch, SOLR-7309.patch
>
>
> I thought I spotted some unquoted {{$SOLR_TIP}} references in {{bin/solr}}
> with 5.0.0, prompting me to test:
> {noformat}
> $ mv solr-5.0.0 solr-5.0.0-with' space'
> $ cd solr-5.0.0-with' space'
> $ ./bin/solr -f
> ./bin/solr: line 1161: [: too many arguments
> ./bin/solr: line 1187: [: /Users/mak/Downloads/solr-5.0.0-with: binary
> operator expected
> ./bin/solr: line 1194: [: /Users/mak/Downloads/solr-5.0.0-with: binary
> operator expected
> ./bin/solr: line 1327: cd: /Users/mak/Downloads/solr-5.0.0-with: No such file
> or directory
> Starting Solr on port 8983 from /Users/mak/Downloads/solr-5.0.0-with
> space/server
> Error: Could not find or load main class space.server.logs.solr_gc.log
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]