> 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
> 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
-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
> 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
> 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
> 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
> > 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
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
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
"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
> 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
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
> 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-
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
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
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.
> 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
> > 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
-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
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?
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
> 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
Hello,
How Can I adjust the maximum memory usage for Tomcat process?
Greetings
Alexander Diedler
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
> 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
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
> 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
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
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.
>
-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
> 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
>
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
>
&
> 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
> 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
> 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
> 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
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
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
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
> > > >
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
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
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
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
> > >
> > &
> >
> > > 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
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
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
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]>
; > > 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
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
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
>
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
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
--
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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?? 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
68 matches
Mail list logo