keith-turner opened a new issue, #2744:
URL: https://github.com/apache/accumulo/issues/2744

   **Describe the bug**
   
   With the defaults in accumulo-env.sh, cannot set memory in 
ACCUMULO_JAVA_OPTS.  
   
   If the following is set 
   
   ```
    ACCUMULO_JAVA_OPTS="-Xmx1g"
   ```
   
   then in the following default code
   
   
https://github.com/apache/accumulo/blob/e12fcbefb6f2979c3aeabd5597f3799c107df1ba/assemble/conf/accumulo-env.sh#L94
   
   the `-Xmx1g` from ACCUMULO_JAVA_OPTS will be inlined before the `-Xmx768m` 
from accumulo-env.sh.   It seems java takes the last one, so it will take the 
768m option.  
   
   **Expected behavior**
   It would be nice if the memory could be set in ACCUMULO_JAVA_OPTS.  I was 
trying to do this in a Kubernetes deployment descriptor and ran into this 
issue.   If the line in accumulo-env.sh where changed to
   
   ```bash
    tserver) JAVA_OPTS=('-Xmx768m' '-Xms768m' "${JAVA_OPTS[@]}" ) ;;
   ```
   
   then it seems like it would support this. Not sure if there are any problems 
with that change though.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to