[
https://issues.apache.org/jira/browse/FLUME-2569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14234065#comment-14234065
]
Jean-Philippe Caruana edited comment on FLUME-2569 at 12/4/14 9:45 AM:
-----------------------------------------------------------------------
diff --git i/bin/flume-ng w/bin/flume-ng
index 4b323a6..5f512b7 100755
--- i/bin/flume-ng
+++ w/bin/flume-ng
@@ -238,7 +238,7 @@ run_flume() {
# set default params
FLUME_CLASSPATH=""
FLUME_JAVA_LIBRARY_PATH=""
-JAVA_OPTS="-Xmx20m"
+JAVA_OPTS="-Xmx512m"
LD_LIBRARY_PATH=""
opt_conf=""
was (Author: jpcaruana):
diff --git i/bin/flume-ng w/bin/flume-ng
index 4b323a6..5f512b7 100755
--- i/bin/flume-ng
+++ w/bin/flume-ng
@@ -238,7 +238,7 @@ run_flume() {
# set default params
FLUME_CLASSPATH=""
FLUME_JAVA_LIBRARY_PATH=""
-JAVA_OPTS="-Xmx20m"
+JAVA_OPTS="-Xmx512"
LD_LIBRARY_PATH=""
opt_conf=""
> increase default heap space
> ---------------------------
>
> Key: FLUME-2569
> URL: https://issues.apache.org/jira/browse/FLUME-2569
> Project: Flume
> Issue Type: Improvement
> Components: Configuration
> Affects Versions: v1.5.1
> Reporter: Jean-Philippe Caruana
> Priority: Trivial
> Labels: newbie, patch
> Fix For: v1.6.0, v1.5.2
>
> Attachments: bumpHeapSpace.patch
>
>
> flume-env.sh starts the JVM with 20 Mb heap space
> Google GCS connector opens a 64 Mo buffer resulting in an
> java.lang.OutOfMemoryError: Java heap space
> As discussed on the ML
> (http://mail-archives.apache.org/mod_mbox/flume-user/201412.mbox/%3C1417683457752.81d164d5@Nodemailer%3E),
> we should increase default heap space.
> - what would be a good value for heap space ? for people using GCS connector,
> we need more than 64Mb, but others have different needs
> - maybe passing a value to flume-ng as an option would be a good idea
> - or we could detect if a JAVA_OPTS var already exists
> I can submit easyly a pach that bumps the heap space up to 512 Mb for
> instance, but I think we should discuss some options.
> What do you think ?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)