You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by gi...@git.apache.org on 2017/06/15 21:05:34 UTC

[GitHub] rabbah opened a new issue #2389: JVM heap size is not set correctly for Java actions

rabbah opened a new issue #2389: JVM heap size is not set correctly for Java actions
URL: https://github.com/apache/incubator-openwhisk/issues/2389
 
 
   Java actions run with no heap settings, regardless of the container's memory limit: https://github.com/apache/incubator-openwhisk/blob/master/core/javaAction/Dockerfile#L38
   
   This will cause a reused Java action to eventually be killed because the GC may not get a chance to run.
   
   ```bash
   >  docker run -m 64M -it javaaction bash
   # java -XX:+PrintFlagsFinal -version 2>&1 | grep MaxHeapSize
       uintx MaxHeapSize                              := 1035993088                          {product}
   ```
   
   That's 1GB even though memory limit for container is 64M.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services