blockquote, div.yahoo_quoted { margin-left: 0 !important; border-left:1px #715FFA solid !important; padding-left:1ex !important; background-color:white !important; } You could also have something in your program that allocates memory off java's heap. Here is a simplified program you can use to test: https://github.com/areese/JavaOOM/blob/master/README.md And slightly off topic, newer Jaca's have suppprt for recognizing the memory limits of the container it is running in:http://www.oracle.com/technetwork/java/javaseproducts/documentation/8u121-revision-builds-relnotes-3450732.html EJ Sent from Yahoo Mail for iPhone
On Tuesday, March 28, 2017, 9:56 AM, 'Tim Hockin' via Kubernetes user discussion and Q&A <kubernetes-users@googlegroups.com> wrote: Wild guess - something is looking at underlying OS or hardware info (e.g. number of processors) and scalng memory or threads based on that. On Mar 28, 2017 9:39 AM, "bg" <griffin...@gmail.com> wrote: I have an image that is basic Java application. I'm trying to minimize the amount of memory I submit the Job with in Kubernetes. Using Java's -Xmx flag I limit the program to using 25MB of memory (-Xmx25m) and using docker I run the container with 30M of memory: docker run -m 30m <image_id> That works fine so I go and deploy my image (including the -Xmx25m flag) to Kubernetes as a Job with resource request of 30MB of memory and the pods keep terminating with Reason: OOMKilled and Exit Code: 137. So I start doubling the amount of memory requested: 64M, 128, 256, 512 until finally the pods are successful at 512MB of memory! So my question is why would a program that can run in docker with 30MB of memory require 512MB of memory when submitted to a kubernetes cluster? -- You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q&A" group. To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-users+unsubscribe@ googlegroups.com. To post to this group, send email to kubernetes-users@googlegroups. com. Visit this group at https://groups.google.com/ group/kubernetes-users. For more options, visit https://groups.google.com/d/ optout. -- You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q&A" group. To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-users+unsubscr...@googlegroups.com. To post to this group, send email to kubernetes-users@googlegroups.com. Visit this group at https://groups.google.com/group/kubernetes-users. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q&A" group. To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-users+unsubscr...@googlegroups.com. To post to this group, send email to kubernetes-users@googlegroups.com. Visit this group at https://groups.google.com/group/kubernetes-users. For more options, visit https://groups.google.com/d/optout.