Logstash rake boostrap fails on raspberry pi

# env | grep ES
ES_JAVA_OPTS=-Xms512m -Xmx512m
root@raspberry:/home/pi/logstash# rake bootstrap
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 805306368 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /home/pi/logstash/hs_err_pid13373.log
OpenJDK Client VM warning: INFO: os::commit_memory(0x42400000, 805306368, 0) failed; error='Cannot allocate memory' (errno=12)
Installing clamp ~> 0.6.5 because the build process needs it.
[bootstrap] Fetching and installing gem: clamp (~> 0.6.5)
ERROR:  Error installing clamp:
	invalid gem: package metadata is missing in /home/pi/logstash/vendor/bundle/jruby/2.3.0/cache/clamp-0.6.5.gem
Installation of clamp failed

Note: ES_JAVA_OPTS is not an environment variable that Logstash will pay attention to

Logstash is a pretty robust framework for pipeline transformation, and is probably a bit heavier than what you need to run on a Rasperry Pi device; you may be better off using one or more Beats to get logs and metrics off the device with as little overhead as possible, and either ship directly to Elasticsearch or to a Logstash instance on a separate, more robust host.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.