[
https://issues.apache.org/jira/browse/CASSANDRA-4401?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13407068#comment-13407068
]
Andy Cobley commented on CASSANDRA-4401:
----------------------------------------
Patch attached, hope I've done it right !
> If processor is missing from /proc/cpuinfo, cassandra will not start
> --------------------------------------------------------------------
>
> Key: CASSANDRA-4401
> URL: https://issues.apache.org/jira/browse/CASSANDRA-4401
> Project: Cassandra
> Issue Type: Bug
> Components: Packaging
> Affects Versions: 1.1.1
> Reporter: Andy Cobley
> Priority: Minor
> Attachments: 4401.txt
>
>
> cassandra.env.sh does an egrep on /proc/cpuinfo in order to find the number
> of processors on the system. If /proc/cpuinfo does not contain a processor
> :# line then the script will fail because of a divide by 0 error. Changing
> the Linux section of cassandra.env.sh to:
> Linux)
> system_memory_in_mb=`free -m | awk '/Mem:/ {print $2}'`
> system_cpu_cores=`egrep -c 'processor([[:space:]]+):.*'
> /proc/cpuinfo`
> if [ "$system_cpu_cores" -lt "1" ]
> then
> system_cpu_cores="1"
> fi
> is a possible fix
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira