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

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
particular thread of one particular Windows tomcat instance was freezing up due to lack of memory. They insisted that we set that instance to -Xms512M -Xmx512M. I felt that they were wrong because there were no OOM or GC messages in the logs, but I wanted to make them happy, so I set it to -Xms

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?

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 Disclai

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 ar

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

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 Tom

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

Increasing Max Memory in Tomcat resulting in failed startup of Tomcat

2007-01-23 Thread Indu Devanath
take 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

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 proces

Re: Max Memory Reading

2006-10-13 Thread joon yoo
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 CONTAIN CONFIDENTIAL AND/OR OTHERWISE P

Re: Max Memory Reading

2006-10-13 Thread Leon Rosenberg
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. >

RE: Max Memory Reading

2006-10-13 Thread Alan Flisch
-0500, 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 s

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 >

RE: Max Memory Reading

2006-10-13 Thread Alan Flisch
wrote: > > 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 > &

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? Wh

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 o

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 ancil

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 T

Re: Max Memory Reading

2006-10-13 Thread Alan Flisch
better understand > > > > > > what is going on? > > > > > > > > > > > > In order for me to set an appropriate larger perm gen size, I > > > > > > suppose > > > > > > I'd need to know what i

Re: Max Memory Reading

2006-10-13 Thread Leon Rosenberg
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 max value by default: http://java.sun.com/docs/hotspot/gc5.0/gc_tuning_5.html#0.0.0.%20Total%20Heap%7Coutline ...or are

Re: Max Memory Reading

2006-10-13 Thread Leon Rosenberg
t; > > > > > Regards, > > > > Alan > > > > > > > > > > > > On Fri, 2006-10-13 at 12:28 +0200, Leon Rosenberg wrote: > > > > > > > > > The default memory values depends on your machine (processor speed and > > > >

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

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 Alan Flisch
t; > Alan > > > > > > > > > > > > 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 ar

Re: Max Memory Reading

2006-10-13 Thread Leon Rosenberg
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 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 no

Re: Max Memory Reading

2006-10-13 Thread Leon Rosenberg
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 <[EMAIL PROTECTED]> wrote: > > > > Hi, > &g

Re: Max Memory Reading

2006-10-13 Thread Alan Flisch
ely 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

Re: Max Memory Reading

2006-10-13 Thread Leon Rosenberg
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 <[EMAIL PROTECTED]>

Re: Max Memory Reading

2006-10-13 Thread Alan Flisch
; > > 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 settings in general when I noticed something curious. No > > > > settings are currently ma

Re: Max Memory Reading

2006-10-13 Thread Pascal Alberty
ce on one of our tomcat > > instances and decided to increase 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 th

Re: Max Memory Reading

2006-10-13 Thread Alan Flisch
gt; 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 >

Re: Max Memory Reading

2006-10-13 Thread Lintang JP
crease 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

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

Re: max memory..

2006-09-06 Thread anjan bacchu
-- From: Asensio, Rodrigo [mailto:[EMAIL PROTECTED] 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

RE: max memory..

2006-09-06 Thread Asensio, Rodrigo
ECTED] 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

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

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 ha

Re: max memory..

2006-09-06 Thread Leon Rosenberg
njan 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 ? 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

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 pr

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 server.xm

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 PR

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 wro

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 fo

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 PR

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

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

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