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

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

2012-02-21 Thread Christopher Schultz
the max memory they were requesting while also ensuring that the instance did not use more memory than it really needed. It seemed like a win-win. However, they were not happy. They insisted that we set the minimum to 512M as well. That sounds a little foolish. The only reason to set Xms=Xmx

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, then your most-recent peak

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 reading about the JVM returning memory

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, etc.) then using Xms

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-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 512M? An

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 has inadequate RAM

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

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 also have some

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

2012-02-18 Thread markt
Robinson, Eric eric.robin...@psmnv.com 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

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 eric.robin...@psmnv.com 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

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?

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 much

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, so we might

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 Disclaimer

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 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,

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

2012-02-17 Thread Robinson, Eric
happy, so I set it to -Xms16M -Xmx512M because I felt that this would give them the max memory they were requesting while also ensuring that the instance did not use more memory than it really needed. It seemed like a win-win. However, they were not happy. They insisted that we set the minimum to 512M

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-150

Free Memory vs. Total Memory vs. Max Memory

2012-02-16 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 512M? -- Eric

Adjust max memory usage in Tomcat

2008-04-18 Thread Alexander Diedler
Hello, How Can I adjust the maximum memory usage for Tomcat process? Greetings Alexander Diedler

RE: Adjust max memory usage in Tomcat

2008-04-18 Thread Caldarale, Charles R
From: Alexander Diedler [mailto:[EMAIL PROTECTED] Subject: Adjust max memory usage in Tomcat How Can I adjust the maximum memory usage for Tomcat process? 1) Learn how to use Java. 2) Read the Tomcat FAQ. http://wiki.apache.org/tomcat/FAQ/Memory 3) Search the archives. http://marc.info/?l

How to set max memory for Tomcat 4.1.37 when running as windows services?

2008-04-15 Thread Joe Chitrady
Hi all, I was using Tomcat 4.1.24 as windows services. To set the max heap memory for the JVM we can modify the registry setting using 'regedit. In the registry we can add JVM Option to add something like -Xmx512m to set the JVM max memory to 512MB. In Tomcat 4.1.37 registry I couldn't find

Increasing Max Memory in Tomcat resulting in failed startup of Tomcat

2007-01-23 Thread Indu Devanath
the Max memory setting of 2GB. I did find an entry from the archives (see below), if I am understanding Chuck's reply (from entry below) there should be a 2GB limit not a 1GB limit correct? On my test box, which has 2GB of memory, I was able to enter 1500 under the max memory pool and Tomcat

RE: Increasing Max Memory in Tomcat resulting in failed startup of Tomcat

2007-01-23 Thread Caldarale, Charles R
From: Indu Devanath [mailto:[EMAIL PROTECTED] Subject: Increasing Max Memory in Tomcat resulting in failed startup of Tomcat if I am understanding Chuck's reply (from entry below) there should be a 2GB limit not a 1GB limit correct? There's a 2GB virtual space limit for the entire

Max Memory Reading

2006-10-13 Thread Alan Flisch
status page shows the following... Free memory: 158.53 MB Total memory: 373.75 MB Max memory: 913.37 MB That max memory figure in particular looks like a pretty strange default! I thought the default was 64m. The installation details are as follows... Apache Tomcat/5.5.16 1.5.0_06-b05 Sun

Re: Max Memory Reading

2006-10-13 Thread Lintang JP
the perm gen size and review the JAVA_OPTS settings in general when I noticed something curious. No settings are currently made so its just running with default values, but the manager status page shows the following... Free memory: 158.53 MB Total memory: 373.75 MB Max memory: 913.37 MB That max

Re: Max Memory Reading

2006-10-13 Thread Alan Flisch
so its just running with default values, but the manager status page shows the following... Free memory: 158.53 MB Total memory: 373.75 MB Max memory: 913.37 MB That max memory figure in particular looks like a pretty strange default! I thought the default was 64m. The installation

Re: Max Memory Reading

2006-10-13 Thread Pascal Alberty
the JAVA_OPTS settings in general when I noticed something curious. No settings are currently made so its just running with default values, but the manager status page shows the following... Free memory: 158.53 MB Total memory: 373.75 MB Max memory: 913.37 MB That max memory figure

Re: Max Memory Reading

2006-10-13 Thread Alan Flisch
are currently made so its just running with default values, but the manager status page shows the following... Free memory: 158.53 MB Total memory: 373.75 MB Max memory: 913.37 MB That max memory figure in particular looks like a pretty strange default! I thought the default was 64m

Re: Max Memory Reading

2006-10-13 Thread Alan Flisch
application start. Times of 64Mb max memory are long over now. regards Leon On 10/13/06, Alan Flisch [EMAIL PROTECTED] wrote: Hi, I was having some problems with perm gen space on one of our tomcat instances and decided to increase the perm gen size and review the JAVA_OPTS

Re: Max Memory Reading

2006-10-13 Thread Leon Rosenberg
of memory) and are guessed by the vm (if not explicitely specified) upon application start. Times of 64Mb max memory are long over now. regards Leon On 10/13/06, Alan Flisch [EMAIL PROTECTED] wrote: Hi, I was having some problems with perm gen space on one of our tomcat instances

Re: Max Memory Reading

2006-10-13 Thread Alan Flisch
(if not explicitely specified) upon application start. Times of 64Mb max memory are long over now. regards Leon On 10/13/06, Alan Flisch [EMAIL PROTECTED] wrote: Hi, I was having some problems with perm gen space on one of our tomcat instances and decided

Re: Max Memory Reading

2006-10-13 Thread Leon Rosenberg
On Fri, 2006-10-13 at 12:28 +0200, Leon Rosenberg wrote: The default memory values depends on your machine (processor speed and count, total amount of memory) and are guessed by the vm (if not explicitely specified) upon application start. Times of 64Mb max memory are long over now

Re: Max Memory Reading

2006-10-13 Thread Alan Flisch
: The default memory values depends on your machine (processor speed and count, total amount of memory) and are guessed by the vm (if not explicitely specified) upon application start. Times of 64Mb max memory are long over now. regards Leon On 10/13/06, Alan Flisch

Re: Max Memory Reading

2006-10-13 Thread Andrew Miehs
Nope - the 32Bit JVM can only deal with about 1.5GB Ram Andrew On 13/10/2006, at 2:51 PM, Alan Flisch wrote: I thought you were safe up to 4000m (in practice a little lower) for the 32 bit VM. Regards, Alan - To start

Re: Max Memory Reading

2006-10-13 Thread Christopher Schultz
Leon, The default memory values depends on your machine (processor speed and count, total amount of memory) and are guessed by the vm (if not explicitely specified) upon application start. Times of 64Mb max memory are long over now. Really? Seems like 32-bit Sun JVM on Sparc has exactly 64MB

Re: Max Memory Reading

2006-10-13 Thread Leon Rosenberg
Rosenberg wrote: The default memory values depends on your machine (processor speed and count, total amount of memory) and are guessed by the vm (if not explicitely specified) upon application start. Times of 64Mb max memory are long over now. regards Leon

Re: Max Memory Reading

2006-10-13 Thread Leon Rosenberg
(if not explicitely specified) upon application start. Times of 64Mb max memory are long over now. Really? Seems like 32-bit Sun JVM on Sparc has exactly 64MB max value by default: http://java.sun.com/docs/hotspot/gc5.0/gc_tuning_5.html#0.0.0.%20Total%20Heap%7Coutline ...or are we on a higher version

Re: Max Memory Reading

2006-10-13 Thread Alan Flisch
Rosenberg wrote: The default memory values depends on your machine (processor speed and count, total amount of memory) and are guessed by the vm (if not explicitely specified) upon application start. Times of 64Mb max memory are long over now. regards

RE: Max Memory Reading

2006-10-13 Thread Caldarale, Charles R
From: Andrew Miehs [mailto:[EMAIL PROTECTED] Subject: Re: Max Memory Reading Nope - the 32Bit JVM can only deal with about 1.5GB Ram That's a Windows, not JVM, limitation. The virtual memory setup is different on Solaris, so higher values are possible. - Chuck THIS COMMUNICATION MAY

RE: Max Memory Reading

2006-10-13 Thread Caldarale, Charles R
From: Alan Flisch [mailto:[EMAIL PROTECTED] Subject: Re: Max Memory Reading I thought you were safe up to 4000m (in practice a little lower) for the 32 bit VM. Depends on the OS. For Windows, the limit is around 1.5 - 1.6 GB, since the JVM code, heap, several ancilliary DLLs, and other

RE: Max Memory Reading

2006-10-13 Thread Caldarale, Charles R
From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Subject: Re: Max Memory Reading On the other side, if you are on 64bit OS (and you probably are, or how could you adress 16GB otherwise), why not using 64bit jdk? Did Solaris 5.9 have a 64-bit version? It's a bit on the old side, so I doubt

RE: Max Memory Reading

2006-10-13 Thread Caldarale, Charles R
From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Subject: Re: Max Memory Reading unfortunately google is not your friend in this case and the document seems outdated :-) http://java.sun.com/docs/hotspot/gc5.0/ergo5.html Why do you think it's outdated? What's described is what the current

RE: Max Memory Reading

2006-10-13 Thread Alan Flisch
: From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Subject: Re: Max Memory Reading unfortunately google is not your friend in this case and the document seems outdated :-) http://java.sun.com/docs/hotspot/gc5.0/ergo5.html Why do you think it's outdated? What's described is what

RE: Max Memory Reading

2006-10-13 Thread Caldarale, Charles R
From: Alan Flisch [mailto:[EMAIL PROTECTED] Subject: RE: Max Memory Reading It seems to be contradicted by this document http://java.sun.com/j2se/1.5.0/docs/guide/vm/gc-ergonomics.html and by my experience of seeing a near 1GB heap with no -Xmx option set anywhere. Maybe I'm confused

RE: Max Memory Reading

2006-10-13 Thread Alan Flisch
, Caldarale, Charles R wrote: From: Alan Flisch [mailto:[EMAIL PROTECTED] Subject: RE: Max Memory Reading It seems to be contradicted by this document http://java.sun.com/j2se/1.5.0/docs/guide/vm/gc-ergonomics.html and by my experience of seeing a near 1GB heap with no -Xmx option set

Re: Max Memory Reading

2006-10-13 Thread Leon Rosenberg
thats the one. Maybe wrong is a too hard word, but thedefault 64 MB it talks about seem to be a special case not applicable as default :-) regards Leon Regards, Alan On Fri, 2006-10-13 at 09:41 -0500, Caldarale, Charles R wrote: From: Alan Flisch [mailto:[EMAIL PROTECTED] Subject: RE: Max

Re: Max Memory Reading

2006-10-13 Thread joon yoo
: Max Memory Reading Nope - the 32Bit JVM can only deal with about 1.5GB Ram That's a Windows, not JVM, limitation. The virtual memory setup is different on Solaris, so higher values are possible. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL

RE: Max Memory Reading

2006-10-13 Thread Caldarale, Charles R
From: joon yoo [mailto:[EMAIL PROTECTED] Subject: Re: Max Memory Reading is it a windows limitation or an intel x86 limitation? Windows, due to limiting an individual process' virtual space to 2 GB. (Some versions of Windows Server allow configuration of a 3 GB process space

RE: max memory..

2006-09-06 Thread Asensio, Rodrigo
Im here again. It's a 32 bits OS Definely GC gonna take longer if has more to collect. -Original Message- From: anjan bacchu [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 05, 2006 6:20 PM To: Tomcat Users List Subject: Re: max memory.. can I move to 2048mb without any problem

Re: max memory..

2006-09-06 Thread Leon Rosenberg
[mailto:[EMAIL PROTECTED] Sent: Tuesday, September 05, 2006 6:20 PM To: Tomcat Users List Subject: Re: max memory.. can I move to 2048mb without any problem ? SURE, YES 4 GB RAM -- did you tune the BOOT.INI setting to use the /3GB setting so that the user process address space goes to 3 GB(from 2 GB

RE: max memory..

2006-09-06 Thread Asensio, Rodrigo
I don't agree Our tomcat was working with 1440 mb as initial and max memory without problem. -Original Message- From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 06, 2006 9:06 AM To: Tomcat Users List Subject: Re: max memory.. On a 32bit OS you will have

Re: max memory..

2006-09-06 Thread Leon Rosenberg
Runtime.getTotalMemory actually returns 2Gb? On 9/6/06, Asensio, Rodrigo [EMAIL PROTECTED] wrote: I don't agree Our tomcat was working with 1440 mb as initial and max memory without problem. -Original Message- From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 06

RE: max memory..

2006-09-06 Thread Asensio, Rodrigo
No, right now I have set the memory to 1024 mb. getTotalMemory is returning that same value -Original Message- From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 06, 2006 9:27 AM To: Tomcat Users List Subject: Re: max memory.. Runtime.getTotalMemory actually

RE: max memory..

2006-09-06 Thread Asensio, Rodrigo
] Sent: Wednesday, September 06, 2006 10:26 AM To: Tomcat Users List Subject: RE: max memory.. No, right now I have set the memory to 1024 mb. getTotalMemory is returning that same value -Original Message- From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 06, 2006 9:27

max memory..

2006-09-05 Thread Asensio, Rodrigo
Hello guys tomcat 5517 java 1508 win 2003 server I have available 4 gb of ram memory into the server. My tomcat is running with 1024 mb right now. Before start to optimize my functions :D , can I move to 2048mb without any problem ? memory settings has always to be pow of 2 ? thanks Rodrigo

Re: max memory..

2006-09-05 Thread Leon Rosenberg
are you using a 64bit version? If yes than the answer is yes. Otherwise its probably no :-) regards Leon On 9/5/06, Asensio, Rodrigo [EMAIL PROTECTED] wrote: Hello guys tomcat 5517 java 1508 win 2003 server I have available 4 gb of ram memory into the server. My tomcat is running with 1024

Re: max memory..

2006-09-05 Thread Nikita Tovstoles
There would be no adverse effect on garbage collection (i.e. longer GC times) when moving from max heap of 1gb to 4gb? -nikita Leon Rosenberg wrote: are you using a 64bit version? If yes than the answer is yes. Otherwise its probably no :-) regards Leon On 9/5/06, Asensio, Rodrigo [EMAIL

Re: max memory..

2006-09-05 Thread Boris Unckel
Hello, can I move to 2048mb without any problem ? Leon Rosenberg wrote: are you using a 64bit version? If yes than the answer is yes. Otherwise its probably no :-) Is this really just a 32 vs 64bit decision? What about garbage collection cycles? What about more than one instance of tomcat for

Re: max memory..

2006-09-05 Thread Andrew Miehs
I discovered no difference in performance between running 1 tomcat, or 4 tomcats on the one machine - same performance. The machine was a 4x Opteron 870 with 8GB RAM, running Java 1.5.6 32bit. Andrew Boris Unckel wrote: Hello, can I move to 2048mb without any problem ? Leon Rosenberg

Re: max memory..

2006-09-05 Thread Leon Rosenberg
Boris, search the archives, Chrales once gava a detailed answer on this topic. Short version: until you have 8 processors you shouldn't worry about the garbage collector. If you have 8 you should set the number of garbage collection threads accordingly. leon On 9/5/06, Boris Unckel [EMAIL

Re: max memory..

2006-09-05 Thread anjan bacchu
can I move to 2048mb without any problem ? SURE, YES 4 GB RAM -- did you tune the BOOT.INI setting to use the /3GB setting so that the user process address space goes to 3 GB(from 2 GB default) ? related things for performance : are you using the APR extension ? how about tweaking the

how to increment the max memory of Tomcat´s JVM??

2006-05-27 Thread Iosev Perez Rivero
how to increment the max memory of Tomcat´s JVM?? Because this is for default 63 Mb, I need increment this count. Thanks!!! Iósev Pérez Rivero Estudiantes de 4to Año Universidad de las Ciencias Informáticas - To start a new

Re: how to increment the max memory of Tomcat´s JVM??

2006-05-27 Thread Mladen Adamovic
Iosev Perez Rivero wrote: how to increment the max memory of Tomcat´s JVM?? Because this is for default 63 Mb, I need increment this count. Tomcat use -server parametar and on new Java VM it means 256MB of memory by default. Anyway, if you need more memory change $CATALINA_HOME/bin