On 17/05/2010 09:56, Ozgur Ozdemircili wrote:
> Hi,
> 
> -Rhel 5.3 x64
> 
> -java version "1.6.0_16"
> Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
> Java HotSpot(TM) 64-Bit Server VM (build 14.2-b01, mixed mode)
> 
> -Apache tomcat 6.0.26
> 
> -Dual core Intel(R) Xeon(R) CPU E3110  @ 3.00GHz  and 4 GB memory each.

Each or 8Gb total?

> On Mon, May 17, 2010 at 10:31 AM, Pid <p...@pidster.com
> 
>     On 17/05/2010 09:25, Ozgur Ozdemircili wrote:
>     > Hi,
>     >
>     > I am having a lot of Java Heap OutOfMemory issues. The first
>     change I did
>     > was to add more memory to JVM:
>     >
>     > export CATALINA_OPTS="-XX:MaxPermSize=512m -Xms512m -Xmx2048m -server"

Seems OK.  We usually recommend -Xms and -Xmx being set to the same size
so that the JVM doesn't have to keep resizing itself.

>     > Yet I have 2 questions
>     >
>     > - What are you real life configurations? In a very busy prod
>     environment
>     > what parameters do you use?

The answer is entirely subjective.  Unless we're running exactly the
same application, our settings are meaningless to you.

>     > - Checking the Current and Busy threads I have Current at 145 and
>     Busy at 6,
>     > is this normal? Shouldn`t Tomcat close unused threads?

Depends what the Threads are doing.  If they are not Tomcat connector
threads, then no.  Do you have an Executor configured in server.xml?

>     > - After updating the server with "-XX:MaxPermSize=512m -Xms512m
>     -Xmx2048m
>     > -server" parameter although the Max mem should show 2048+512M it shows
>     > 1820.50 MB. Any ideas why?

Because you specified a range between min and max that the heap can
occupy, so the memory used is 512+(some resource stuff)+(a number
between 512 and 2048).


p

>     > Thank you for all the help.
> 
>     Please provide the exact OS, JVM and Tomcat versions you are using.
> 
>     Some clues about the server(s) architecture, memory available would also
>     be useful.
> 
> 
>     p
> 
> 


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to