RE: Free Memory vs. Total Memory vs. Max Memory

2012-02-22 Thread Robinson, Eric
> You have to balance that against the minimal cost of today's > memory (even ECC RAM is under $10 per GiB). > True, RAM is relatively cheap, but servers are not. We like to stack as many instances of tomcat on a server as possible while maintaining good performance. Some of our 8-core 32GB serv

RE: Free Memory vs. Total Memory vs. Max Memory

2012-02-21 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: Free Memory vs. Total Memory vs. Max Memory > Okay, so it sounds like if the environment is such that reducing the > heap at intervals is important (many JVMs, peak-memory-load events are > rare, e

Re: Free Memory vs. Total Memory vs. Max Memory

2012-02-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 2/21/12 1:06 PM, Caldarale, Charles R wrote: >> From: Christopher Schultz [mailto:ch...@christopherschultz.net] >> Subject: Re: Free Memory vs. Total Memory vs. Max Memory > >> I'll have to do some more readi

RE: Free Memory vs. Total Memory vs. Max Memory

2012-02-21 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: Free Memory vs. Total Memory vs. Max Memory > I'll have to do some more reading about the JVM returning memory > to the OS after the heap shrinks: if the JVM does not return the > memory, t

Re: Free Memory vs. Total Memory vs. Max Memory

2012-02-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Eric, (Late reply. Sorry.) On 2/17/12 11:41 PM, Robinson, Eric wrote: > Recently, we had someone tell us that a particular thread of one > particular Windows tomcat instance was freezing up due to lack of > memory. They insisted that we set that i

RE: Free Memory vs. Total Memory vs. Max Memory

2012-02-20 Thread Caldarale, Charles R
> From: Robinson, Eric [mailto:eric.robin...@psmnv.com] > Subject: RE: Free Memory vs. Total Memory vs. Max Memory > If what you described occurs, we would see OOMs in the > logs, correct? Only rarely. More typical is slow response and annoyed end users. > Also, if the machine

RE: Free Memory vs. Total Memory vs. Max Memory

2012-02-20 Thread Robinson, Eric
> > What are the possible downsides of setting a low initial > memory pool > > and a high max pool? If a tomcat app usually needs > approximately 64MB > > of heap space, but sometimes as much as 300-400MB, would it > cause any > > problems to set the initial pool to 16M and the max pool to 51

Re: Free Memory vs. Total Memory vs. Max Memory

2012-02-20 Thread Pid
On 17/02/2012 04:58, Robinson, Eric wrote: > What are the possible downsides of setting a low initial memory pool and > a high max pool? If a tomcat app usually needs approximately 64MB of > heap space, but sometimes as much as 300-400MB, would it cause any > problems to set the initial pool to 16M

Re: Free Memory vs. Total Memory vs. Max Memory

2012-02-18 Thread Mark Thomas
On 18/02/2012 14:44, Mark Thomas wrote: > "Robinson, Eric" wrote: > >> Agreed. Anyway, in this case the thread is on a tomcat server that >> is only used for scheduled java tasks. Users do not access it >> directly. Very puzzling. What's I'd really like is for some >> well-known tomcat guru to sa

RE: Free Memory vs. Total Memory vs. Max Memory

2012-02-18 Thread markt
"Robinson, Eric" wrote: >Agreed. Anyway, in this case the thread is on a tomcat server that is >only used for scheduled java tasks. Users do not access it directly. >Very puzzling. What's I'd really like is for some well-known tomcat >guru >to say that in our environment, -Xms16M is fine and that

RE: Free Memory vs. Total Memory vs. Max Memory

2012-02-18 Thread Robinson, Eric
> Robinson, Eric wrote: > >> We have many servers that have been running 100-200 instances of > >> tomcat each for years without any performance problems. > >> Most of our servers are Linux 8-core machines with 32GB > RAM, with the > >> tomcat instances configured with -Xms16M -Xmx192M. > >> We

Re: Free Memory vs. Total Memory vs. Max Memory

2012-02-18 Thread André Warnier
Robinson, Eric wrote: We have many servers that have been running 100-200 instances of tomcat each for years without any performance problems. Most of our servers are Linux 8-core machines with 32GB RAM, with the tomcat instances configured with -Xms16M -Xmx192M. We also have some Windows serv

RE: Free Memory vs. Total Memory vs. Max Memory

2012-02-17 Thread Robinson, Eric
> We have many servers that have been running 100-200 instances > of tomcat each for years without any performance problems. > Most of our servers are Linux 8-core machines with 32GB RAM, > with the tomcat instances configured with -Xms16M -Xmx192M. > We also have some Windows servers with 100-

RE: Free Memory vs. Total Memory vs. Max Memory

2012-02-17 Thread Robinson, Eric
> >> I can see the lure of "only taking what you need" and allowing the > >> JVM to automatically re-size the memory space: > >> that way, you only take up a huge chunk of memory during peak load > >> and not all the time. > >> > >> But why? > >> > >> If you are going to need, say, 512MiB at peak

Re: Free Memory vs. Total Memory vs. Max Memory

2012-02-17 Thread André Warnier
Robinson, Eric wrote: If your application needs 64MB of Heap space and you allocate only -Xms16M, then right at the start the JVM will have to increase the Heap to 64MB (minimum); so why would you do that ? 64MB was just a number I threw out. The app actually uses about 20MB at startup, s

Re: Free Memory vs. Total Memory vs. Max Memory

2012-02-17 Thread André Warnier
Robinson, Eric wrote: Note that you are talking of "memory pool", which is a bit vague. The -Xms and -Xmx parameters relate to how big the Heap is, which is only one part of the memory space needed by the JVM. I am just using the terms that I see on the screen when I pull up tomcat6w.exe.

RE: Free Memory vs. Total Memory vs. Max Memory

2012-02-17 Thread Robinson, Eric
> Note that you are talking of "memory pool", which is a bit > vague. The -Xms and -Xmx parameters relate to how big the > Heap is, which is only one part of the memory space needed by the JVM. > I am just using the terms that I see on the screen when I pull up tomcat6w.exe. --Eric Discl

RE: Free Memory vs. Total Memory vs. Max Memory

2012-02-17 Thread Robinson, Eric
> > If your application > needs 64MB of > > Heap space and you allocate only -Xms16M, then right at the > start the > > JVM will have to increase the Heap to 64MB (minimum); so > why would you > > do that ? > 64MB was just a number I threw out. The app actually uses about 20MB at startup, s

Re: Free Memory vs. Total Memory vs. Max Memory

2012-02-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Eric, On 2/17/12 3:28 AM, André Warnier wrote: > Robinson, Eric wrote: >> What are the possible downsides of setting a low initial memory >> pool and a high max pool? If a tomcat app usually needs >> approximately 64MB of heap space, but sometimes as

Re: Free Memory vs. Total Memory vs. Max Memory

2012-02-17 Thread André Warnier
Robinson, Eric wrote: What are the possible downsides of setting a low initial memory pool and a high max pool? If a tomcat app usually needs approximately 64MB of heap space, but sometimes as much as 300-400MB, would it cause any problems to set the initial pool to 16M and the max pool to 512M?