RE: Re: heap size in tomcat 5.0

2005-09-25 Thread Caldarale, Charles R
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of matador
> Subject: Re: heap size in tomcat 5.0
> 
> i assume that if you run it as a windows service then the 
> JAVA_OPTS are still picked up from there?

No, they're in the registry.  Use the tomcat5w.exe program in the bin
directory to set parameters for the service.

> well i dont think that if you install tomcat 5.5.x on windows 
> there is no catalina.bat anymore

That's correct, the scripts were left out of the .exe installer (saving
space hardly seems to be a reasonable justification), but they are in
the .zip download.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: heap size in tomcat 5.0

2005-09-24 Thread matador
Leon Rosenberg <[EMAIL PROTECTED]> wrote in
news:[EMAIL PROTECTED]: 

> bin\catalina.bat
> 
> actually in all versions of tomcat :-)
> 
> regards
> Leon
> 

cool thanks.  i assume that if you run it as a windows service then the 
JAVA_OPTS are still picked up from there?

well i dont think that if you install tomcat 5.5.x on windows there is no 
catalina.bat anymore -- at least in the distro that i've used.  i set the 
heap size via the windows gui on 5.5.x.  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: heap size in tomcat 5.0

2005-09-24 Thread Leon Rosenberg
bin\catalina.bat

actually in all versions of tomcat :-)

regards
Leon

On 9/24/05, matador <[EMAIL PROTECTED]> wrote:
> win2k server
> tomcat 5.0.x
>
> how to set heap size (min & max)?
>
> i know how to do it in tomcat 5.5, but wasnt sure which script controlled
> the JAVA_OPTS in 5.0
>
> thx
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



heap size in tomcat 5.0

2005-09-23 Thread matador
win2k server
tomcat 5.0.x

how to set heap size (min & max)?  

i know how to do it in tomcat 5.5, but wasnt sure which script controlled 
the JAVA_OPTS in 5.0

thx


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to increase the heap size & no of threads

2005-07-13 Thread Anoop kumar V
You can use JAVA_OPTS in the catalina.bat file and specify the heap size as in:

set JAVA_OPTS=%JAVA_OPTS% -Xmn128m -Xmx512m

just make sure that the memory you specify for Xmx is lesser than the
ram that you have on the physical machine hosting tomcat or else the
swap memory will be used and you will experience a frustrating
slowness in everything you do on that machine.

HTH,
Anoop

On 7/13/05, Ayyanar Inbamohan <[EMAIL PROTECTED]> wrote:
> 
> Hi all,
> 
>  CAn anyone help me ?
>  How to increase the number of threads that tomcat can
> process ?
> 
>  Also how to increase the size of the heap?
> 
> thanks in advance,
> Ayyanar.
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
Thanks and best regards,
Anoop

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to increase the heap size & no of threads

2005-07-12 Thread Ayyanar Inbamohan

Hi all,

 CAn anyone help me ?
 How to increase the number of threads that tomcat can
process ?

 Also how to increase the size of the heap?

thanks in advance,
Ayyanar.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Heap size - java.lang.OutOfMemoryError

2005-02-27 Thread KwonNam Son
Check this out.
http://www.pauaware.co.nz/tomcatntservice.htm


On Sat, 26 Feb 2005 07:51:06 -0600, Caldarale, Charles R
<[EMAIL PROTECTED]> wrote:
> > From: Rasmus - Camp Online [mailto:[EMAIL PROTECTED]
> > Subject: Heap size - java.lang.OutOfMemoryError
> >
> > I have tried everything to increase the heap size, setting the
> > environment variables:
> 
> As has been explained on this list numerous times, environment variables are 
> not used when running Tomcat as a Windows service.  Only the .bat files look 
> at the variables.  There are registry setting you can set to have the service 
> change the JVM heap parameters.  Look in the archives, Google, read the doc, 
> ...
> 
>  - Chuck
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
> MATERIAL and is thus for use only by the intended recipient. If you received 
> this in error, please contact the sender and delete the e-mail and its 
> attachments from all computers.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Heap size - java.lang.OutOfMemoryError

2005-02-26 Thread Caldarale, Charles R
> From: Rasmus - Camp Online [mailto:[EMAIL PROTECTED]
> Subject: Heap size - java.lang.OutOfMemoryError
> 
> I have tried everything to increase the heap size, setting the
> environment variables:

As has been explained on this list numerous times, environment variables are 
not used when running Tomcat as a Windows service.  Only the .bat files look at 
the variables.  There are registry setting you can set to have the service 
change the JVM heap parameters.  Look in the archives, Google, read the doc, ...

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Heap size - java.lang.OutOfMemoryError

2005-02-26 Thread A Leg
Hi Rasmus
Switch to Linux 8-)
Unfortunatly, I have no idea but joke. I realy think that this problem 
is OS dependent.

Are you sure that your environment variables are taken in count ?
Suppose you run tomcat using some startup.bat ? in this case may be 
could you print some debug telling you the real args passed to the JVM.

I have done this on linux using set -x in startup.sh, I don't remember 
the equivalent for bat.
I think you can just change the first line echo off by echo on. May be 

At that time I had seen that for any reason my env was crashed somewhere.
Andre
Rasmus - Camp Online wrote:
Hi
I keep getting a  java.lang.OutOfMemoryError in my tomcat-log. I am
pretty sure it relates to the size of my heap - I keep getting the error
when the tomcat.exe process reaches approx. 118 MB of memory usage.
I am running Windows Server 2003, IIS 6, Tomcat 4.1 (running as a
windows service)
I have tried everything to increase the heap size, setting the
environment variables:
-CATALINA_OPTS -Xms256m -Xmx768m
-JAVA_OPTS -Xms256m -Xmx768m
-TOMCAT_OPTS -Xms256m -Xmx768m
But no matter what I do, it has ABSOLUTELY NO EFFECT
Please help, as I am going crazy over this
Best regards,
Rasmus

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Heap size - java.lang.OutOfMemoryError

2005-02-26 Thread Rasmus - Camp Online
Hi

I keep getting a  java.lang.OutOfMemoryError in my tomcat-log. I am
pretty sure it relates to the size of my heap - I keep getting the error
when the tomcat.exe process reaches approx. 118 MB of memory usage.

I am running Windows Server 2003, IIS 6, Tomcat 4.1 (running as a
windows service)

I have tried everything to increase the heap size, setting the
environment variables:

-CATALINA_OPTS -Xms256m -Xmx768m
-JAVA_OPTS -Xms256m -Xmx768m
-TOMCAT_OPTS -Xms256m -Xmx768m

But no matter what I do, it has ABSOLUTELY NO EFFECT

Please help, as I am going crazy over this

Best regards,

Rasmus



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: heap size params on linux

2005-01-03 Thread QM
On Mon, Jan 03, 2005 at 01:38:04PM -0600, Stephen Charles Huey wrote:
: Our script for installing Tomcat as a service on Windows is down below. 
: We're moving to Linux, so I'm wondering where we specify the heap size
: parameters (-Xmx and -Xms) for the Tomcat on Linux.  Would the correct
: place be in the startup.sh file?  Thanks!

Adding to the excellent answers you've already received[1]:

spare yourself upgrade headaches and avoid modifying Tomcat-bundled
files directly.  It's quite easy to write a wrapper script that sets
needed environment variables in such a way that catalina.sh will find
them.  For example:

[excerpt of wrapper script]


. ${CATALINA_BASE}/conf/container.rc

...
case $1 in
'start')
${CATALINA_HOME}/bin/startup.sh
;;
...

[excerpt from container.rc]

export JAVA_HOME=.
export JAVA_OPTS=

-QM


[1] = for the archives: "set JAVA_OPTS in catalina.sh"

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: heap size params on linux

2005-01-03 Thread Ben Souther
You don't want to use the 'set' statement in catalina.sh.


Here's an exerpt from mine:

 #
 # $Id: catalina.sh,v 1.13.2.2 2004/11/17 20:06:34 yoavs Exp $

#-

 JAVA_OPTS="-Xms128m -Xmx128m"




Then just go to the HTML Manger and click "Server Status" to verify that
it took.

-Ben




On Mon, 2005-01-03 at 15:03, Rodrigo Schmidt wrote:
> I think that any option you want to pass to the jvm can be placed in 
> JAVA_OPTS, like this:
> 
> set JAVA_OPTS = "-Xmx1536m -Xms1536m -server"
> 
> I do that and it works fine.
> 
> Rodrigo
> 
> 
> 
> 
> Stephen Charles Huey wrote:
> 
> >I see that JAVA_OPTS is mentioned in there quite a few times, so where
> >exactly can I put set JAVA_OPTS=-Xmx1536m?  Also, do I need to do both
> >the initial and max in one line?
> >
> >E.g.  set JAVA_OPTS= -Xmx1536m -Xms1536m (with nothing on the end of the
> >line?)
> >
> >Does the -server option go with JAVA_OPTS as well?
> >
> >Thanks...
> >
> >
> >- Original message -
> >From: "Ben Souther" <[EMAIL PROTECTED]>
> >To: "Tomcat Users List" 
> >Date: Mon, 03 Jan 2005 14:41:07 -0500
> >Subject: Re: heap size params on linux
> >
> >I do it from catalina.sh 
> >
> >>From the header comments.
> >22 #   JAVA_OPTS (Optional) Java runtime options used when the "start",
> >23 #   "stop", or "run" command is executed.
> >24 #
> >
> >
> >
> >
> >On Mon, 2005-01-03 at 14:38, Stephen Charles Huey wrote:
> >  
> >
> >>Our script for installing Tomcat as a service on Windows is down below. 
> >>We're moving to Linux, so I'm wondering where we specify the heap size
> >>parameters (-Xmx and -Xms) for the Tomcat on Linux.  Would the correct
> >>place be in the startup.sh file?  Thanks!
> >>
> >>
> >>D:\tomcat\bin\tomcat.exe -install "Apache_Tomcat"
> >>"C:\j2sdk1.4.2_04\jre\bin\client\jvm.dll" -server -Xmx1536m -Xms1536m
> >>-Djava.class.path="D:\Tomcat\bin\bootstrap.jar"
> >>-Dcatalina.home="D:\Tomcat"
> >>-Djava.endorsed.dirs="D:\Tomcat\common\endorsed" -start
> >>org.apache.catalina.startup.BootstrapService -params start -stop
> >>org.apache.catalina.startup.BootstrapService -params stop -out
> >>"D:\Tomcat\logs\stdout.log" -err "D:\Tomcat\logs\stderr.log"
> >>pause
> >>
> >>-
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >>
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >  
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: heap size params on linux

2005-01-03 Thread Rodrigo Schmidt
I think that any option you want to pass to the jvm can be placed in 
JAVA_OPTS, like this:

set JAVA_OPTS = "-Xmx1536m -Xms1536m -server"
I do that and it works fine.
Rodrigo

Stephen Charles Huey wrote:
I see that JAVA_OPTS is mentioned in there quite a few times, so where
exactly can I put set JAVA_OPTS=-Xmx1536m?  Also, do I need to do both
the initial and max in one line?
E.g.  set JAVA_OPTS= -Xmx1536m -Xms1536m (with nothing on the end of the
line?)
Does the -server option go with JAVA_OPTS as well?
Thanks...
- Original message -
From: "Ben Souther" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Date: Mon, 03 Jan 2005 14:41:07 -0500
Subject: Re: heap size params on linux
I do it from catalina.sh 

From the header comments.
22 #   JAVA_OPTS (Optional) Java runtime options used when the "start",
23 #   "stop", or "run" command is executed.
24 #

On Mon, 2005-01-03 at 14:38, Stephen Charles Huey wrote:
 

Our script for installing Tomcat as a service on Windows is down below. 
We're moving to Linux, so I'm wondering where we specify the heap size
parameters (-Xmx and -Xms) for the Tomcat on Linux.  Would the correct
place be in the startup.sh file?  Thanks!

D:\tomcat\bin\tomcat.exe -install "Apache_Tomcat"
"C:\j2sdk1.4.2_04\jre\bin\client\jvm.dll" -server -Xmx1536m -Xms1536m
-Djava.class.path="D:\Tomcat\bin\bootstrap.jar"
-Dcatalina.home="D:\Tomcat"
-Djava.endorsed.dirs="D:\Tomcat\common\endorsed" -start
org.apache.catalina.startup.BootstrapService -params start -stop
org.apache.catalina.startup.BootstrapService -params stop -out
"D:\Tomcat\logs\stdout.log" -err "D:\Tomcat\logs\stderr.log"
pause
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: heap size params on linux

2005-01-03 Thread Stephen Charles Huey
I see that JAVA_OPTS is mentioned in there quite a few times, so where
exactly can I put set JAVA_OPTS=-Xmx1536m?  Also, do I need to do both
the initial and max in one line?

E.g.  set JAVA_OPTS= -Xmx1536m -Xms1536m (with nothing on the end of the
line?)

Does the -server option go with JAVA_OPTS as well?

Thanks...


- Original message -
From: "Ben Souther" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Date: Mon, 03 Jan 2005 14:41:07 -0500
Subject: Re: heap size params on linux

I do it from catalina.sh 

>From the header comments.
22 #   JAVA_OPTS (Optional) Java runtime options used when the "start",
23 #   "stop", or "run" command is executed.
24 #




On Mon, 2005-01-03 at 14:38, Stephen Charles Huey wrote:
> Our script for installing Tomcat as a service on Windows is down below. 
> We're moving to Linux, so I'm wondering where we specify the heap size
> parameters (-Xmx and -Xms) for the Tomcat on Linux.  Would the correct
> place be in the startup.sh file?  Thanks!
> 
> 
> D:\tomcat\bin\tomcat.exe -install "Apache_Tomcat"
> "C:\j2sdk1.4.2_04\jre\bin\client\jvm.dll" -server -Xmx1536m -Xms1536m
> -Djava.class.path="D:\Tomcat\bin\bootstrap.jar"
> -Dcatalina.home="D:\Tomcat"
> -Djava.endorsed.dirs="D:\Tomcat\common\endorsed" -start
> org.apache.catalina.startup.BootstrapService -params start -stop
> org.apache.catalina.startup.BootstrapService -params stop -out
> "D:\Tomcat\logs\stdout.log" -err "D:\Tomcat\logs\stderr.log"
> pause
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: heap size params on linux

2005-01-03 Thread Ben Souther
I do it from catalina.sh 

>From the header comments.
22 #   JAVA_OPTS (Optional) Java runtime options used when the "start",
23 #   "stop", or "run" command is executed.
24 #




On Mon, 2005-01-03 at 14:38, Stephen Charles Huey wrote:
> Our script for installing Tomcat as a service on Windows is down below. 
> We're moving to Linux, so I'm wondering where we specify the heap size
> parameters (-Xmx and -Xms) for the Tomcat on Linux.  Would the correct
> place be in the startup.sh file?  Thanks!
> 
> 
> D:\tomcat\bin\tomcat.exe -install "Apache_Tomcat"
> "C:\j2sdk1.4.2_04\jre\bin\client\jvm.dll" -server -Xmx1536m -Xms1536m
> -Djava.class.path="D:\Tomcat\bin\bootstrap.jar"
> -Dcatalina.home="D:\Tomcat"
> -Djava.endorsed.dirs="D:\Tomcat\common\endorsed" -start
> org.apache.catalina.startup.BootstrapService -params start -stop
> org.apache.catalina.startup.BootstrapService -params stop -out
> "D:\Tomcat\logs\stdout.log" -err "D:\Tomcat\logs\stderr.log"
> pause
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



heap size params on linux

2005-01-03 Thread Stephen Charles Huey
Our script for installing Tomcat as a service on Windows is down below. 
We're moving to Linux, so I'm wondering where we specify the heap size
parameters (-Xmx and -Xms) for the Tomcat on Linux.  Would the correct
place be in the startup.sh file?  Thanks!


D:\tomcat\bin\tomcat.exe -install "Apache_Tomcat"
"C:\j2sdk1.4.2_04\jre\bin\client\jvm.dll" -server -Xmx1536m -Xms1536m
-Djava.class.path="D:\Tomcat\bin\bootstrap.jar"
-Dcatalina.home="D:\Tomcat"
-Djava.endorsed.dirs="D:\Tomcat\common\endorsed" -start
org.apache.catalina.startup.BootstrapService -params start -stop
org.apache.catalina.startup.BootstrapService -params stop -out
"D:\Tomcat\logs\stdout.log" -err "D:\Tomcat\logs\stderr.log"
pause

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Increasing heap size in Tomcat

2004-09-28 Thread Shapira, Yoav

Hi,
I think in Tomcat 3.x the variable to set is TOMCAT_OPTS, not JAVA_OPTS
(Tomcat 4.x and 5.x) or CATALINA_OPTS (Tomcat 4.x and 5.x).  This is
covered in the documentation
(http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ug.html#env_setu
p) which you should have read by now.  If you haven't, go RTFM ;)

Beyond that, I've never used Tomcat 3.x myself, and so I can't offer
much help.  But I do think the above answers your question.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Srinivasarao Salla [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, September 28, 2004 9:16 AM
>To: 'Tomcat Users List'
>Subject: RE: Increasing heap size in Tomcat
>
>Hi,
>
>   In tomcat 3.2.1 also we have a start script called tomcat.bat.
>   I think in this script we set the JAVA_OPTS. But I am not
knowing
>   how to set the parameter and where to set it. If you any Idea I
>would
>   appreciate it.
>
>   Thanks in advance.
>
>Regards,
>Sri.
>
>-Original Message-
>From: QM [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, September 28, 2004 6:19 PM
>To: Tomcat Users List
>Subject: Re: Increasing heap size in Tomcat
>
>
>On Tue, Sep 28, 2004 at 03:36:51AM -0700, Srinivasarao Salla wrote:
>:  We are using Tomcat 3.2.1 version. We want to Increase the Heap
>: Size.
>:  Can anyone suggest way of how to do this.
>
>Find some way to pass the "-Xmx" flag to the Java commandline.
>
>In v4.x and 5.x, you set the environment variable "JAVA_OPTS"  before
>running the start script.
>
>It may be the same in v3.x; what do the docs say?
>
>-QM
>
>--
>
>software  -- http://www.brandxdev.net
>tech news -- http://www.RoarNetworX.com
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Increasing heap size in Tomcat

2004-09-28 Thread Srinivasarao Salla
Hi,

In tomcat 3.2.1 also we have a start script called tomcat.bat. 
I think in this script we set the JAVA_OPTS. But I am not knowing 
how to set the parameter and where to set it. If you any Idea I
would
appreciate it.

Thanks in advance.

Regards,
Sri.

-Original Message-
From: QM [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 28, 2004 6:19 PM
To: Tomcat Users List
Subject: Re: Increasing heap size in Tomcat


On Tue, Sep 28, 2004 at 03:36:51AM -0700, Srinivasarao Salla wrote:
:   We are using Tomcat 3.2.1 version. We want to Increase the Heap
: Size.
:   Can anyone suggest way of how to do this. 

Find some way to pass the "-Xmx" flag to the Java commandline.

In v4.x and 5.x, you set the environment variable "JAVA_OPTS"  before
running the start script.

It may be the same in v3.x; what do the docs say?

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Increasing heap size in Tomcat

2004-09-28 Thread QM
On Tue, Sep 28, 2004 at 03:36:51AM -0700, Srinivasarao Salla wrote:
:   We are using Tomcat 3.2.1 version. We want to Increase the Heap
: Size.
:   Can anyone suggest way of how to do this. 

Find some way to pass the "-Xmx" flag to the Java commandline.

In v4.x and 5.x, you set the environment variable "JAVA_OPTS"  before
running the start script.

It may be the same in v3.x; what do the docs say?

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Increasing heap size in Tomcat

2004-09-28 Thread Srinivasarao Salla
Hi All,

We are using Tomcat 3.2.1 version. We want to Increase the Heap
Size.
Can anyone suggest way of how to do this. 

Thanks in advance

Regards,
Sri.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] - JVM Max Heap Size on Linux

2004-08-15 Thread Dale, Matt
Interesting idea and if it was my own code i'd certainly consider this. Although if it 
was my own code I don't think i'd let the sessions get so big in the first place. 
Unfortunately its now our code so we're stuck with what has been supplied.

Ta
Matt

-Original Message-
From: Wade Chandler [mailto:[EMAIL PROTECTED]
Sent: 14 August 2004 23:38
To: Tomcat Users List
Subject: Re: [OT] - JVM Max Heap Size on Linux


Dale, Matt wrote:

> Hi,
> 
> Has anyone got around the maximum heap size of 2G on linux? We've got a 
> new server with 12G of ram which was going to be used for an uber tomcat 
> but this plan may have to be changed if we can't get more than 2G of 
> memory used for the JVM.
> 
> Ta
> Matt
> 
> 
> 
> 
> Any opinions expressed in this E-mail may be those of the individual and not 
> necessarily the company. This E-mail and any files transmitted with it are 
> confidential and solely for the use of the intended recipient. If you are not the 
> intended recipient or the person responsible for delivering to the intended 
> recipient, be advised that you have received this E-mail in error and that any use 
> or copying is strictly prohibited. If you have received this E-mail in error please 
> notify the beCogent postmaster at [EMAIL PROTECTED]
> Unless expressly stated, opinions in this email are those of the individual sender 
> and not beCogent Ltd. You must take full responsibility for virus checking this 
> email and any attachments.
> Please note that the content of this email or any of its attachments may contain 
> data that falls within the scope of the Data Protection Acts and that you must 
> ensure that any handling or processing of such data by you is fully compliant with 
> the terms and provisions of the Data Protection Act 1984 and 1998.
> 
> 
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


You could write some native code and use the apache apr package or 
something similar to create shared memory or memory mapped files.  Then 
use the object you wrap around this code and store it in your session.

This way you can have as much memory as you want stored in these 
objects.  Pull the memory from the mapped file only as you use it to 
keep from expanding it all back into the jvm process memory at one time. 
  The speed difference will probably not be noticeable if you have a 
good search algorithm setup.

That or you could tie your session information to a database and do the 
same thing you would do with the mapped memory.  The session would 
simply hold the id for the db session table.  Though this may be a bit 
slower.

Don't know if that would be possible for you or not.

Wade


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: [OT] - JVM Max Heap Size on Linux

2004-08-14 Thread Wade Chandler
Dale, Matt wrote:
Hi,
Has anyone got around the maximum heap size of 2G on linux? We've got a 
new server with 12G of ram which was going to be used for an uber tomcat 
but this plan may have to be changed if we can't get more than 2G of 
memory used for the JVM.

Ta
Matt

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

You could write some native code and use the apache apr package or 
something similar to create shared memory or memory mapped files.  Then 
use the object you wrap around this code and store it in your session.

This way you can have as much memory as you want stored in these 
objects.  Pull the memory from the mapped file only as you use it to 
keep from expanding it all back into the jvm process memory at one time. 
 The speed difference will probably not be noticeable if you have a 
good search algorithm setup.

That or you could tie your session information to a database and do the 
same thing you would do with the mapped memory.  The session would 
simply hold the id for the db session table.  Though this may be a bit 
slower.

Don't know if that would be possible for you or not.
Wade
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [OT] - JVM Max Heap Size on Linux

2004-08-13 Thread Cott Lang
I've used Sun's 1.5 Beta on AMD64 and verified that heap allocation
maxes out at 12GB (I'm on a 32GB machine running RHAS 3.0 x86-64).



On Fri, 2004-08-13 at 10:01, Peter Lin wrote:
> I thought the only way to run a 64bit VM was on solaris, which means
> you have to use the Sun JVM.  Does IBM offer a 64bit JVM now?
> 
> peter
> 
> 
> On Fri, 13 Aug 2004 11:55:44 -0500, Caldarale, Charles R
> <[EMAIL PROTECTED]> wrote:
> > > From: Dale, Matt [mailto:[EMAIL PROTECTED]
> > > Subject: [OT] - JVM Max Heap Size on Linux
> > >
> > > Has anyone got around the maximum heap size of 2G on linux?
> > > We've got a new server with 12G of ram which was going to be
> > > used for an uber tomcat but this plan may have to be changed
> > > if we can't get more than 2G of memory used for the JVM.
> > 
> > What kind of hardware?  A single process on a regular x86 machine can only access 
> > 4GB of virtual space, regardless of the amount of real memory you have, unless you 
> > use some of the OS-specific address extension mechanisms (which the JVM doesn't).  
> > If you have an AMD64 and the appropriate version of Linux, you could try the Sun 
> > 64-bit JVM (see the 5.0 Beta 3 download list).
> > 
> > - Chuck
> > 
> > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL 
> > and is thus for use only by the intended recipient. If you received this in error, 
> > please contact the sender and delete the e-mail and its attachments from all 
> > computers.
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] - JVM Max Heap Size on Linux

2004-08-13 Thread Dale, Matt

Yes, I think this is what we will have to do, although multiple IP addresses arent 
even required. All we have to do is run the tomcats on different ports on the same 
box. As I mentioned in another post I am awaiting a bug fix in the clustering code 
with large session sizes before I can use this though. In the meantime we may have to 
configure groups of users onto each seperate tomcat, a pain but we may have to live 
with it.

-Original Message-
From: Robert Bateman [mailto:[EMAIL PROTECTED]
Sent: 13 August 2004 19:23
To: Tomcat Users List
Subject: Re: [OT] - JVM Max Heap Size on Linux


On Friday 13 August 2004 01:13 pm, Dale, Matt wrote:
> Hi,
>
> We are a call centre and the application is a scripting tool for outbound
> calling. I've seen over 300G an hour of memory allocated with 100 users and
> we need to support well over 200. With that much memory being consumed it
> obviously garbage collects pretty much constantly. A very low percentage of
> the objects make it to the old generation so the young generation garbage
> collection is crippling the box, particularly if it has a busy spell.

Have you thought of using multiple invocations of Tomcat on the same box with 
multiple IP addresses assigned?  Each invocation could handle a certain 
number of users (round robin, etc.).  I haven't looked, but TC 5 seems to 
have some nice stuff to handle multiple TC's running as one site.

Just a thought.

Bob


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: [OT] - JVM Max Heap Size on Linux

2004-08-13 Thread Robert Bateman
On Friday 13 August 2004 01:13 pm, Dale, Matt wrote:
> Hi,
>
> We are a call centre and the application is a scripting tool for outbound
> calling. I've seen over 300G an hour of memory allocated with 100 users and
> we need to support well over 200. With that much memory being consumed it
> obviously garbage collects pretty much constantly. A very low percentage of
> the objects make it to the old generation so the young generation garbage
> collection is crippling the box, particularly if it has a busy spell.

Have you thought of using multiple invocations of Tomcat on the same box with 
multiple IP addresses assigned?  Each invocation could handle a certain 
number of users (round robin, etc.).  I haven't looked, but TC 5 seems to 
have some nice stuff to handle multiple TC's running as one site.

Just a thought.

Bob


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] - JVM Max Heap Size on Linux

2004-08-13 Thread Dale, Matt
Yeah its 2 gig by default although some kernel hacking can get that up to 3 or 4.

-Original Message-
From: Robert Bateman [mailto:[EMAIL PROTECTED]
Sent: 13 August 2004 18:06
To: Tomcat Users List
Subject: Re: [OT] - JVM Max Heap Size on Linux


On Friday 13 August 2004 12:40 pm, Dale, Matt wrote:
> Hi,
>
> Has anyone got around the maximum heap size of 2G on linux? We've got a new
> server with 12G of ram which was going to be used for an uber tomcat but
> this plan may have to be changed if we can't get more than 2G of memory
> used for the JVM.

Isn't there an OS limit to the amount of memory a process can get in Linux?
Something like 4 gigs?  That would limit the amount of memory if true.  In
fact, I remember this being discussed about a month ago on the list - not
sure what date though.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: [OT] - JVM Max Heap Size on Linux

2004-08-13 Thread Peter Lin
now if only I had a system to load test 32 vs 64bit JVM, I'd post some numbers. 

peter


On Fri, 13 Aug 2004 12:11:13 -0500, Caldarale, Charles R
<[EMAIL PROTECTED]> wrote:
> > From: Peter Lin [mailto:[EMAIL PROTECTED]
> > Subject: Re: [OT] - JVM Max Heap Size on Linux
> >
> > I thought the only way to run a 64bit VM was on solaris, which means
> > you have to use the Sun JVM.  Does IBM offer a 64bit JVM now?
> 
> Sun offers Sparc64 (Solaris) and IA64 (Linux, Windows) versions of 1.4.2, and 
> Sparc64 (Solaris) and AMD64 (Linux, Windows) versions of 5.0 beta.  Check 
> http://java.sun.com/j2se/1.5.0/snapshots/ for the AMD64 stuff.  (Seems to run o.k. 
> on my AMD64 laptop, but I haven't done anything serious with it yet.)
> 
> 
> 
> - Chuck
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL 
> and is thus for use only by the intended recipient. If you received this in error, 
> please contact the sender and delete the e-mail and its attachments from all 
> computers.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] - JVM Max Heap Size on Linux

2004-08-13 Thread Dale, Matt
Not as far as I know, we currently use the Sun JVM and intend to going forwards. But 
to run a 64bit JVM you unfortunately need 64 bit processors

-Original Message-
From: Peter Lin [mailto:[EMAIL PROTECTED]
Sent: 13 August 2004 18:02
To: Tomcat Users List
Subject: Re: [OT] - JVM Max Heap Size on Linux


I thought the only way to run a 64bit VM was on solaris, which means
you have to use the Sun JVM.  Does IBM offer a 64bit JVM now?

peter


On Fri, 13 Aug 2004 11:55:44 -0500, Caldarale, Charles R
<[EMAIL PROTECTED]> wrote:
> > From: Dale, Matt [mailto:[EMAIL PROTECTED]
> > Subject: [OT] - JVM Max Heap Size on Linux
> >
> > Has anyone got around the maximum heap size of 2G on linux?
> > We've got a new server with 12G of ram which was going to be
> > used for an uber tomcat but this plan may have to be changed
> > if we can't get more than 2G of memory used for the JVM.
> 
> What kind of hardware?  A single process on a regular x86 machine can only access 
> 4GB of virtual space, regardless of the amount of real memory you have, unless you 
> use some of the OS-specific address extension mechanisms (which the JVM doesn't).  
> If you have an AMD64 and the appropriate version of Linux, you could try the Sun 
> 64-bit JVM (see the 5.0 Beta 3 download list).
> 
> - Chuck
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL 
> and is thus for use only by the intended recipient. If you received this in error, 
> please contact the sender and delete the e-mail and its attachments from all 
> computers.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: [OT] - JVM Max Heap Size on Linux

2004-08-13 Thread Dale, Matt
Hi,

We are a call centre and the application is a scripting tool for outbound calling. 
I've seen over 300G an hour of memory allocated with 100 users and we need to support 
well over 200. With that much memory being consumed it obviously garbage collects 
pretty much constantly. A very low percentage of the objects make it to the old 
generation so the young generation garbage collection is crippling the box, 
particularly if it has a busy spell.

I believe a lot of the memory is in the sessions which seem to be a fairly substancial 
size. The app also does a lot of XML parsing and I'm sure there is a little too much 
String concatenation in there as well.

I'm not sure of the load in terms of requests per second but i'd imagine up to 50 but 
more likely an average of 10-20 (this is purely guesswork though).

Currently supporting about 100 users we've had the most success by fixing the eden 
space at 384M and not using the survivor spaces. Using the ParNewGC with 4 threads and 
the CMS collector in the old generation.

Anything else i've missed?


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: 13 August 2004 17:58
To: Tomcat Users List
Subject: RE: [OT] - JVM Max Heap Size on Linux


Hi,

Just out of curiosity, what app(s) are you running that need a heap
greater than 2GB?  Or what load on those apps?  You obviously don't need
to give confidential details, I'm just curious about the type of app and
its architecture.

 

Yoav Shapira
Millennium Research Informatics

-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 13, 2004 12:41 PM
To: Tomcat Users List (E-mail)
Subject: [OT] - JVM Max Heap Size on Linux

 

Hi, 

Has anyone got around the maximum heap size of 2G on linux? We've got a
new server with 12G of ram which was going to be used for an uber tomcat
but this plan may have to be changed if we can't get more than 2G of
memory used for the JVM.

Ta 
Matt 

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: [OT] - JVM Max Heap Size on Linux

2004-08-13 Thread Caldarale, Charles R
> From: Peter Lin [mailto:[EMAIL PROTECTED]
> Subject: Re: [OT] - JVM Max Heap Size on Linux
> 
> I thought the only way to run a 64bit VM was on solaris, which means
> you have to use the Sun JVM.  Does IBM offer a 64bit JVM now?

Sun offers Sparc64 (Solaris) and IA64 (Linux, Windows) versions of 1.4.2, and Sparc64 
(Solaris) and AMD64 (Linux, Windows) versions of 5.0 beta.  Check 
http://java.sun.com/j2se/1.5.0/snapshots/ for the AMD64 stuff.  (Seems to run o.k. on 
my AMD64 laptop, but I haven't done anything serious with it yet.)

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and 
is thus for use only by the intended recipient. If you received this in error, please 
contact the sender and delete the e-mail and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] - JVM Max Heap Size on Linux

2004-08-13 Thread Peter Lin
sweet!  man that is a nice toy. I'd check with IBM to see if they have
a beta JVM you can try out. They must be working on one.

peter


On Fri, 13 Aug 2004 18:00:19 +0100, Dale, Matt <[EMAIL PROTECTED]> wrote:
> 
> Good point, its an IBM machine with 16 P4's and 12gig of ram. So its looking like 
> we'll not be able to run it as 1 tomcat process. So it might have to be a cluster of 
> them on the same box. I'm awaiting a bug fix in clustering with big sessions before 
> I can cluster though. Might have to come up with something else to keep us going in 
> the mean time.
> 
> Ta
> Matt
> 
> 
> 
> -Original Message-
> From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
> Sent: 13 August 2004 17:56
> To: Tomcat Users List
> Subject: RE: [OT] - JVM Max Heap Size on Linux
> 
> > From: Dale, Matt [mailto:[EMAIL PROTECTED]
> > Subject: [OT] - JVM Max Heap Size on Linux
> >
> > Has anyone got around the maximum heap size of 2G on linux?
> > We've got a new server with 12G of ram which was going to be
> > used for an uber tomcat but this plan may have to be changed
> > if we can't get more than 2G of memory used for the JVM.
> 
> What kind of hardware?  A single process on a regular x86 machine can only access 
> 4GB of virtual space, regardless of the amount of real memory you have, unless you 
> use some of the OS-specific address extension mechanisms (which the JVM doesn't).  
> If you have an AMD64 and the appropriate version of Linux, you could try the Sun 
> 64-bit JVM (see the 5.0 Beta 3 download list).
> 
> - Chuck
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL 
> and is thus for use only by the intended recipient. If you received this in error, 
> please contact the sender and delete the e-mail and its attachments from all 
> computers.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] - JVM Max Heap Size on Linux

2004-08-13 Thread Robert Bateman
On Friday 13 August 2004 12:40 pm, Dale, Matt wrote:
> Hi,
>
> Has anyone got around the maximum heap size of 2G on linux? We've got a new
> server with 12G of ram which was going to be used for an uber tomcat but
> this plan may have to be changed if we can't get more than 2G of memory
> used for the JVM.

Isn't there an OS limit to the amount of memory a process can get in Linux?
Something like 4 gigs?  That would limit the amount of memory if true.  In
fact, I remember this being discussed about a month ago on the list - not
sure what date though.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] - JVM Max Heap Size on Linux

2004-08-13 Thread Peter Lin
I thought the only way to run a 64bit VM was on solaris, which means
you have to use the Sun JVM.  Does IBM offer a 64bit JVM now?

peter


On Fri, 13 Aug 2004 11:55:44 -0500, Caldarale, Charles R
<[EMAIL PROTECTED]> wrote:
> > From: Dale, Matt [mailto:[EMAIL PROTECTED]
> > Subject: [OT] - JVM Max Heap Size on Linux
> >
> > Has anyone got around the maximum heap size of 2G on linux?
> > We've got a new server with 12G of ram which was going to be
> > used for an uber tomcat but this plan may have to be changed
> > if we can't get more than 2G of memory used for the JVM.
> 
> What kind of hardware?  A single process on a regular x86 machine can only access 
> 4GB of virtual space, regardless of the amount of real memory you have, unless you 
> use some of the OS-specific address extension mechanisms (which the JVM doesn't).  
> If you have an AMD64 and the appropriate version of Linux, you could try the Sun 
> 64-bit JVM (see the 5.0 Beta 3 download list).
> 
> - Chuck
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL 
> and is thus for use only by the intended recipient. If you received this in error, 
> please contact the sender and delete the e-mail and its attachments from all 
> computers.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] - JVM Max Heap Size on Linux

2004-08-13 Thread Dale, Matt

Good point, its an IBM machine with 16 P4's and 12gig of ram. So its looking like 
we'll not be able to run it as 1 tomcat process. So it might have to be a cluster of 
them on the same box. I'm awaiting a bug fix in clustering with big sessions before I 
can cluster though. Might have to come up with something else to keep us going in the 
mean time.

Ta
Matt

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: 13 August 2004 17:56
To: Tomcat Users List
Subject: RE: [OT] - JVM Max Heap Size on Linux


> From: Dale, Matt [mailto:[EMAIL PROTECTED]
> Subject: [OT] - JVM Max Heap Size on Linux
> 
> Has anyone got around the maximum heap size of 2G on linux? 
> We've got a new server with 12G of ram which was going to be 
> used for an uber tomcat but this plan may have to be changed 
> if we can't get more than 2G of memory used for the JVM.

What kind of hardware?  A single process on a regular x86 machine can only access 4GB 
of virtual space, regardless of the amount of real memory you have, unless you use 
some of the OS-specific address extension mechanisms (which the JVM doesn't).  If you 
have an AMD64 and the appropriate version of Linux, you could try the Sun 64-bit JVM 
(see the 5.0 Beta 3 download list).

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and 
is thus for use only by the intended recipient. If you received this in error, please 
contact the sender and delete the e-mail and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: [OT] - JVM Max Heap Size on Linux

2004-08-13 Thread Shapira, Yoav
Hi,

Just out of curiosity, what app(s) are you running that need a heap
greater than 2GB?  Or what load on those apps?  You obviously don't need
to give confidential details, I'm just curious about the type of app and
its architecture.

 

Yoav Shapira
Millennium Research Informatics

-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 13, 2004 12:41 PM
To: Tomcat Users List (E-mail)
Subject: [OT] - JVM Max Heap Size on Linux

 

Hi, 

Has anyone got around the maximum heap size of 2G on linux? We've got a
new server with 12G of ram which was going to be used for an uber tomcat
but this plan may have to be changed if we can't get more than 2G of
memory used for the JVM.

Ta 
Matt 



RE: [OT] - JVM Max Heap Size on Linux

2004-08-13 Thread Caldarale, Charles R
> From: Dale, Matt [mailto:[EMAIL PROTECTED]
> Subject: [OT] - JVM Max Heap Size on Linux
> 
> Has anyone got around the maximum heap size of 2G on linux? 
> We've got a new server with 12G of ram which was going to be 
> used for an uber tomcat but this plan may have to be changed 
> if we can't get more than 2G of memory used for the JVM.

What kind of hardware?  A single process on a regular x86 machine can only access 4GB 
of virtual space, regardless of the amount of real memory you have, unless you use 
some of the OS-specific address extension mechanisms (which the JVM doesn't).  If you 
have an AMD64 and the appropriate version of Linux, you could try the Sun 64-bit JVM 
(see the 5.0 Beta 3 download list).

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and 
is thus for use only by the intended recipient. If you received this in error, please 
contact the sender and delete the e-mail and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[OT] - JVM Max Heap Size on Linux

2004-08-13 Thread Dale, Matt
Title: [OT] - JVM Max Heap Size on Linux






Hi,


Has anyone got around the maximum heap size of 2G on linux? We've got a new server with 12G of ram which was going to be used for an uber tomcat but this plan may have to be changed if we can't get more than 2G of memory used for the JVM.

Ta

Matt



Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Win2k SP4, Tomcat 5.0.27: Problem Setting JVM Heap Size

2004-07-29 Thread Noah
I have recieved help (thanks Pradeep and Tonte) from the list
about a problem that seems to come from Tomcat running out of
memory. The solution seems to be increasing the JVM memory.

However, I have run into a problem in doing this. I thought that
I had worked toward solving the problem but needed to
increase the available memory more. However, it seemed that
in the task manager, Tomcat was not approaching the amount
I allocated. Checking the logs of the application we are running
(eMatrix...) we saw that it doesn't think the -Xms/Xmx option
have been set.

On the dev server I tried setting the options using the Tomcat 
configuration tool, the registry, catalina.bat, and even making
a JAVA_OPTS system environment variable, but none of 
these things are reflected in the eMatrix logs.

Do any other methods of setting JVM options exist? I would
appreciate any suggestions.

Thanks,
Noah

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: heap size profiling

2004-05-17 Thread Peter Lin
 
can you look at the calls trace? and tell us what you see?
 
having profile tomcat a lot the last 2 years, I personally haven't seen tomcat 
increase heap usage with no requests hitting tomcat. If anything, I consistently see 
tomcat4 and 5 maintain flat memory usage under constant load. In the case of no 
requests, it shouldn't be more 40mb of memory.
 
do you have a webapp that does caching and refreshes?
 
 
peter


"Shapira, Yoav" <[EMAIL PROTECTED]> wrote:

Hi,

>I notice an auto increase (no webapp running) of memory heap with
T4.1.29.
>Any idea ?

It's almost impossible to have absolutely nothing running. If you have
tomcat running, that's something (e.g. background processing threads
that watch files to detect changes). However, you still shouldn't see
huge jumps in memory if no users are hitting the server.

What are your observation methods and results precisely?

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged. This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else. If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender. Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
Do you Yahoo!?
SBC Yahoo! - Internet access at a great low price.

RE : heap size profiling oups ! forgot logs

2004-05-17 Thread Boulay Arnaud
Optimizeit logs ! 

 Message d'origine 
De: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Date: lun. 17/05/2004 17:19 
Ã: Tomcat Users List 
Cc: 
Objet: RE: heap size profiling




Hi,

>I notice an auto increase (no webapp running) of memory heap with
T4.1.29.
>Any idea ?

It's almost impossible to have absolutely nothing running.  If you have
tomcat running, that's something (e.g. background processing threads
that watch files to detect changes).  However, you still shouldn't see
huge jumps in memory if no users are hitting the server.

What are your observation methods and results precisely?

Yoav Shapira



This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary and/or 
privileged.  This e-mail is intended only for the individual(s) to whom it is 
addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  
If you are not the(an) intended recipient, please immediately delete this e-mail from 
your computer system and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE : heap size profiling

2004-05-17 Thread Boulay Arnaud
Only the manager app running.
I use OptimizeIt and run the Memory Leak Detector.
the diff between 2 heap states  (1 minute delta) look like this : see linked image
I suppose that there is a thread that analyse web.xml but I wonder why (there is no ap 
running !) and how can I freeze it ?
Best regards, 
Arnaud
 

 Message d'origine 
De: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Date: lun. 17/05/2004 17:19 
Ã: Tomcat Users List 
Cc: 
Objet: RE: heap size profiling




Hi,

>I notice an auto increase (no webapp running) of memory heap with
T4.1.29.
>Any idea ?

It's almost impossible to have absolutely nothing running.  If you have
tomcat running, that's something (e.g. background processing threads
that watch files to detect changes).  However, you still shouldn't see
huge jumps in memory if no users are hitting the server.

What are your observation methods and results precisely?

Yoav Shapira



This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary and/or 
privileged.  This e-mail is intended only for the individual(s) to whom it is 
addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  
If you are not the(an) intended recipient, please immediately delete this e-mail from 
your computer system and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: heap size profiling

2004-05-17 Thread Shapira, Yoav

Hi,

>I notice an auto increase (no webapp running) of memory heap with
T4.1.29.
>Any idea ?

It's almost impossible to have absolutely nothing running.  If you have
tomcat running, that's something (e.g. background processing threads
that watch files to detect changes).  However, you still shouldn't see
huge jumps in memory if no users are hitting the server.

What are your observation methods and results precisely?

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



heap size profiling

2004-05-17 Thread Boulay Arnaud
I notice an auto increase (no webapp running) of memory heap with T4.1.29.
Any idea ?
Regards, 
Arnaud

 Message d'origine 
De: Tim Funk [mailto:[EMAIL PROTECTED] 
Date: lun. 17/05/2004 14:13 
Ã: Tomcat Users List 
Cc: 
Objet: Re: public_html directory



In that case - you'll need a hard cutover where during the conversion you'll
need to move the directories around into the servlet spec compliant webapp
format.

Weblogic 5.1 does support 2.2 webapps (IIRC). So that might be the way to 
start.

-Tim

Denny LÃfgren wrote:

> This is intended for Windows. Actually, I want to get rid of Weblogic and
> only use Tomcat in some way. There will be only one system.
>
> //Denny
>
>
>
>
>
> Tim Funk <[EMAIL PROTECTED]>
> 2004-05-17 13:57
> Please respond to "Tomcat Users List"
> 
> To: Tomcat Users List <[EMAIL PROTECTED]>
> cc:
> Subject:Re: public_html directory
>
>
> If using unix, I would try to use symlinks if you need to run the 2
> systems
> in parallel using the same code base. (Kludgy - yes)
>
> -Tim
>
> Denny LÃfgren wrote:
>
>
>>Hi!
>>
>>IÂve been forced to use Weblogic 5.1 for some time now. I have a
>>public_html directory with sub-directories containing the jspÂs. At the
>>same level as the public_html catalog there is also the servletclasses
>>directory with the jarÂs and compiled java-classes.
>>
>>IÂve been trying to shift things around in order to make the application
>
> a
>
>>j2ee one. Without luck.
>>
>>Is there a way to have (almost) the same structure in tomcat (version
>>5024) as in weblogic 5.1?
>>
>>Any help is appreciated!
>>
>>//Denny
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Heap size

2004-03-31 Thread Shapira, Yoav

Hi,
It's valid.  Whether it's correct or not, only you can tell, and only
after extensive stress testing.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Reis, Tom [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, March 31, 2004 11:31 AM
>To: Tomcat Users List (E-mail)
>Subject: Heap size
>
>   Could someone tell me if this is correct for setting the heap
size.
>
>rem Execute Java with the applicable properties
>if not "%JPDA%" == "" goto doJpda
>if not "%SECURITY_POLICY_FILE%" == "" goto doSecurity
>%_EXECJAVA% -Xms128m -Xmx256m %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS%
>-Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%"
>-Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%"
>-Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS%
%ACTION%
>goto end
>:doSecurity
>%_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS%
>-Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%"
>-Djava.security.manager
-Djava.security.policy=="%SECURITY_POLICY_FILE%"
>-Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%"
>-Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS%
%ACTION%
>goto end
>:doJpda
>if not "%SECURITY_POLICY_FILE%" == "" goto doSecurityJpda
>%_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% -Xdebug
>-Xrunjdwp:transport=dt_shmem,address=%JPDA_ADDRESS%,server=y,suspend=n
>%DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath
>"%CLASSPATH%" -Dcatalina.base="%CATALINA_BASE%"
>-Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%"
>%MAINCLASS% %CMD_LINE_ARGS% %ACTION%
>goto end
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Heap size

2004-03-31 Thread Reis, Tom
Could someone tell me if this is correct for setting the heap size.

rem Execute Java with the applicable properties
if not "%JPDA%" == "" goto doJpda
if not "%SECURITY_POLICY_FILE%" == "" goto doSecurity
%_EXECJAVA% -Xms128m -Xmx256m %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS%
-Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%"
-Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%"
-Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
goto end
:doSecurity
%_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS%
-Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%"
-Djava.security.manager -Djava.security.policy=="%SECURITY_POLICY_FILE%"
-Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%"
-Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
goto end
:doJpda
if not "%SECURITY_POLICY_FILE%" == "" goto doSecurityJpda
%_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% -Xdebug
-Xrunjdwp:transport=dt_shmem,address=%JPDA_ADDRESS%,server=y,suspend=n
%DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath
"%CLASSPATH%" -Dcatalina.base="%CATALINA_BASE%"
-Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%"
%MAINCLASS% %CMD_LINE_ARGS% %ACTION%
goto end

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat maximum heap size on Linux

2004-01-08 Thread Shapira, Yoav

Howdy,

>I've seen this answer twice today, "make scripts to stress-test your
>app".  How do you do that?  What am I connecting to and looking for in
a
>script that stress-tests a Java servlet or web app?  I'm only asking
>because I'm a little green at this and there are obviously other people
>with the same needs who are failing to do this preemptively.

Twice today, hundreds of times in the archives ;)  This is a standard
process which can be summarized as follows?

- How many maximum concurrent users to you need to support? (e.g. 100).

- When handling that expected maximum number, what is the acceptable
response time for pages in your application (e.g. 5sec).

- Now get a tool like JMeter (which I like a lot, because it's free,
powerful, and contains great tidbits from my friend and fellow developer
Peter Lin [http://jakarta.apache.org/tomcat/articles/performance.pdf])
or Apache AB and write a script to simulate that expected maximum number
of users hitting your webapp.

- Run the script and see how your webapp responds.  Are there crashes or
other errors in the log?  Is the response time too slow?

- If all works well, you rock.  Otherwise, inspect your webapp, perhaps
running it with a profiler, for ways to improve performance.  You will
most likely need to experiment with Java VM Options, perhaps hardware or
OS-level tweaking as well.  Repeat the process until you're satisfied
with performance.

That's it.  If you're stuck at any step in the process feel free to ask
for help.

I can't make this a complete message without stressing, yet again, that
anyone who says they put apache in front of tomcat because tomcat's
standalone performance isn't good enough without having done the above
analysis should be fired on the spot.  If they did this analysis and
concluded they needed apache, kudos, but making performance decisions
based on some old preconceived notions is... well, no need to swear. ;)

Yoav Shapira


>
>--
>
>John Beamon
>Systems Administrator
>Franklin American Mortgage
>eml: [EMAIL PROTECTED]
>web: www.franklinamerican.com
>
>Shapira, Yoav wrote:
>> Howdy,
>> Stress-test it with your max expected load and see what happens.
>> There's no artificial reason for it to stop at 150MB.
>>
>> Yoav Shapira
>> Millennium ChemInformatics
>>
>>
>>
>>>-Original Message-
>>>From: Mindaugas Genutis [mailto:[EMAIL PROTECTED]
>>>Sent: Wednesday, January 07, 2004 2:45 PM
>>>To: Tomcat Users List
>>>Subject: RE: Tomcat maximum heap size on Linux
>>>
>>>
>>>I expect to use it a few hundred Megabytes. It was quickly increasing
>>
>> in
>>
>>>my eyes and stopped on 150Mb. Looks like its the system roof. Could
it
>>
>> be
>>
>>>so?
>>>
>>>
>>>>Howdy,
>>>>If it doesn't need more than 150MB, it won't use more than 150MB...
>>
>> Are
>>
>>>>you blindly playing around with heap numbers, or did you actually
>>>>determine 1GB was required to handle your max expected load?
>>>>
>>>>Yoav Shapira
>>>>Millennium ChemInformatics
>>>>
>>>>
>>>>
>>>>>-Original Message-
>>>>>From: Mindaugas Genutis [mailto:[EMAIL PROTECTED]
>>>>>Sent: Wednesday, January 07, 2004 2:37 PM
>>>>>To: Tomcat Users List
>>>>>Subject: Tomcat maximum heap size on Linux
>>>>>
>>>>>
>>>>>I wanted to increase Tomcat's maximum heap size. I did it by
putting
>>>>
>>>>the
>>>>
>>>>>following string in the catalina.sh file (I'm running RedHat
Linux):
>>>>>
>>>>>CATALINA_OPTS="-Djava.awt.headless=true -Xmx1024m"
>>>>>
>>>>>So, Tomcat can use 1Gb of my RAM.
>>>>>
>>>>>However, I'm observing Tomcat's usage with "top" under Linux and it
>>>>
>>>>stops
>>>>
>>>>>growing at 150Mb.
>>>>>
>>>>>Looks like this option doesn't work. Where else could I increase
it?
>>>>>
>>>>>I'm using JDK 1.4.2, Tomcat 4.1.24
>>>>>
>>>>>--
>>>>>Kaunas Regional Distance Education Center
>>>>>Programmer
>>>>>Phone: +370 674 05232
>>>>>WWW: http://distance.ktu.lt
>>>>>
>>>>>
>>>>>
>>>>
>>>-

RE: Tomcat maximum heap size on Linux

2004-01-08 Thread Shapira, Yoav

Howdy,
150MB is definitely not a roof for the JVM.  We have several production
machines running heaps with > 1GB allocated.  They're well tuned, GC
shows no discernible pauses even during high usage, and they effectively
use numerous processors.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Daniel Williams [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, January 07, 2004 2:04 PM
>To: Tomcat Users List
>Subject: Re: Tomcat maximum heap size on Linux
>
>It's not a system roof, we use around 200Mb on average and under high
>load we use around 700Mb with maximum heap set to 900Mb.
>Also it's not tomcat using the RAM but the JVM, and yes the jvm can use
>a gig of ram and even more.
>
>One more thing, use this jsp code to monitor the JVM's heap usage.
>
><%@ page language="java" %>
><%@ page session="false" %>
><%
>long free = java.lang.Runtime.getRuntime().freeMemory();
>long total = java.lang.Runtime.getRuntime().totalMemory();
>long availableProc =
>java.lang.Runtime.getRuntime().availableProcessors();
>long threadCount = java.lang.Thread.activeCount();
>long used = total - free;
>out.print(total + "," + used);
>%>
>
>
>Thanks
>Daniel
>
>Mindaugas Genutis wrote:
>
>>I expect to use it a few hundred Megabytes. It was quickly increasing
in
>>my eyes and stopped on 150Mb. Looks like its the system roof. Could it
be
>>so?
>>
>>
>>
>>>Howdy,
>>>If it doesn't need more than 150MB, it won't use more than 150MB...
Are
>>>you blindly playing around with heap numbers, or did you actually
>>>determine 1GB was required to handle your max expected load?
>>>
>>>Yoav Shapira
>>>Millennium ChemInformatics
>>>
>>>
>>>
>>>
>>>>-Original Message-
>>>>From: Mindaugas Genutis [mailto:[EMAIL PROTECTED]
>>>>Sent: Wednesday, January 07, 2004 2:37 PM
>>>>To: Tomcat Users List
>>>>Subject: Tomcat maximum heap size on Linux
>>>>
>>>>
>>>>I wanted to increase Tomcat's maximum heap size. I did it by putting
>>>>
>>>>
>>>the
>>>
>>>
>>>>following string in the catalina.sh file (I'm running RedHat Linux):
>>>>
>>>>CATALINA_OPTS="-Djava.awt.headless=true -Xmx1024m"
>>>>
>>>>So, Tomcat can use 1Gb of my RAM.
>>>>
>>>>However, I'm observing Tomcat's usage with "top" under Linux and it
>>>>
>>>>
>>>stops
>>>
>>>
>>>>growing at 150Mb.
>>>>
>>>>Looks like this option doesn't work. Where else could I increase it?
>>>>
>>>>I'm using JDK 1.4.2, Tomcat 4.1.24
>>>>
>>>>--
>>>>Kaunas Regional Distance Education Center
>>>>Programmer
>>>>Phone: +370 674 05232
>>>>WWW: http://distance.ktu.lt
>>>>
>>>>
>>>>
>>>>
-
>>>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>For additional commands, e-mail: [EMAIL PROTECTED]
>>>>
>>>>
>>>
>>>
>>>This e-mail, including any attachments, is a confidential business
>communication, and may contain information that is confidential,
>proprietary and/or privileged.  This e-mail is intended only for the
>individual(s) to whom it is addressed, and may not be saved, copied,
>printed, disclosed or used by anyone else.  If you are not the(an)
intended
>recipient, please immediately delete this e-mail from your computer
system
>and notify the sender.  Thank you.
>>>
>>>
>>>-
>>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>>
>>
>>
>>



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat maximum heap size on Linux

2004-01-08 Thread Daniel Williams
It's not a system roof, we use around 200Mb on average and under high 
load we use around 700Mb with maximum heap set to 900Mb.
Also it's not tomcat using the RAM but the JVM, and yes the jvm can use 
a gig of ram and even more.

One more thing, use this jsp code to monitor the JVM's heap usage.

<%@ page language="java" %>
<%@ page session="false" %>
<%
   long free = java.lang.Runtime.getRuntime().freeMemory();
   long total = java.lang.Runtime.getRuntime().totalMemory();
   long availableProc = 
java.lang.Runtime.getRuntime().availableProcessors();
   long threadCount = java.lang.Thread.activeCount();
   long used = total - free;
   out.print(total + "," + used);
%>

Thanks
Daniel
Mindaugas Genutis wrote:

I expect to use it a few hundred Megabytes. It was quickly increasing in 
my eyes and stopped on 150Mb. Looks like its the system roof. Could it be 
so?

 

Howdy,
If it doesn't need more than 150MB, it won't use more than 150MB... Are
you blindly playing around with heap numbers, or did you actually
determine 1GB was required to handle your max expected load?
Yoav Shapira
Millennium ChemInformatics
   

-Original Message-
From: Mindaugas Genutis [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 07, 2004 2:37 PM
To: Tomcat Users List
Subject: Tomcat maximum heap size on Linux
I wanted to increase Tomcat's maximum heap size. I did it by putting
 

the
   

following string in the catalina.sh file (I'm running RedHat Linux):

CATALINA_OPTS="-Djava.awt.headless=true -Xmx1024m"

So, Tomcat can use 1Gb of my RAM.

However, I'm observing Tomcat's usage with "top" under Linux and it
 

stops
   

growing at 150Mb.

Looks like this option doesn't work. Where else could I increase it?

I'm using JDK 1.4.2, Tomcat 4.1.24

--
Kaunas Regional Distance Education Center
Programmer
Phone: +370 674 05232
WWW: http://distance.ktu.lt


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged.  This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender.  Thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   

 



Re: Tomcat maximum heap size on Linux

2004-01-07 Thread John Beamon
I've seen this answer twice today, "make scripts to stress-test your 
app".  How do you do that?  What am I connecting to and looking for in a 
script that stress-tests a Java servlet or web app?  I'm only asking 
because I'm a little green at this and there are obviously other people 
with the same needs who are failing to do this preemptively.

--

John Beamon
Systems Administrator
Franklin American Mortgage
eml: [EMAIL PROTECTED]
web: www.franklinamerican.com
Shapira, Yoav wrote:
Howdy,
Stress-test it with your max expected load and see what happens.
There's no artificial reason for it to stop at 150MB.
Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Mindaugas Genutis [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 07, 2004 2:45 PM
To: Tomcat Users List
Subject: RE: Tomcat maximum heap size on Linux
I expect to use it a few hundred Megabytes. It was quickly increasing
in

my eyes and stopped on 150Mb. Looks like its the system roof. Could it
be

so?


Howdy,
If it doesn't need more than 150MB, it won't use more than 150MB...
Are

you blindly playing around with heap numbers, or did you actually
determine 1GB was required to handle your max expected load?
Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Mindaugas Genutis [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 07, 2004 2:37 PM
To: Tomcat Users List
Subject: Tomcat maximum heap size on Linux
I wanted to increase Tomcat's maximum heap size. I did it by putting
the

following string in the catalina.sh file (I'm running RedHat Linux):

CATALINA_OPTS="-Djava.awt.headless=true -Xmx1024m"

So, Tomcat can use 1Gb of my RAM.

However, I'm observing Tomcat's usage with "top" under Linux and it
stops

growing at 150Mb.

Looks like this option doesn't work. Where else could I increase it?

I'm using JDK 1.4.2, Tomcat 4.1.24

--
Kaunas Regional Distance Education Center
Programmer
Phone: +370 674 05232
WWW: http://distance.ktu.lt



-

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an)
intended

recipient, please immediately delete this e-mail from your computer
system

and notify the sender.  Thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
Kaunas Regional Distance Education Center
Programmer
Phone: +370 674 05232
WWW: http://distance.ktu.lt



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Tomcat maximum heap size on Linux

2004-01-07 Thread Shapira, Yoav

Howdy,
Stress-test it with your max expected load and see what happens.
There's no artificial reason for it to stop at 150MB.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Mindaugas Genutis [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, January 07, 2004 2:45 PM
>To: Tomcat Users List
>Subject: RE: Tomcat maximum heap size on Linux
>
>
>I expect to use it a few hundred Megabytes. It was quickly increasing
in
>my eyes and stopped on 150Mb. Looks like its the system roof. Could it
be
>so?
>
>> Howdy,
>> If it doesn't need more than 150MB, it won't use more than 150MB...
Are
>> you blindly playing around with heap numbers, or did you actually
>> determine 1GB was required to handle your max expected load?
>>
>> Yoav Shapira
>> Millennium ChemInformatics
>>
>>
>> >-Original Message-
>> >From: Mindaugas Genutis [mailto:[EMAIL PROTECTED]
>> >Sent: Wednesday, January 07, 2004 2:37 PM
>> >To: Tomcat Users List
>> >Subject: Tomcat maximum heap size on Linux
>> >
>> >
>> >I wanted to increase Tomcat's maximum heap size. I did it by putting
>> the
>> >following string in the catalina.sh file (I'm running RedHat Linux):
>> >
>> >CATALINA_OPTS="-Djava.awt.headless=true -Xmx1024m"
>> >
>> >So, Tomcat can use 1Gb of my RAM.
>> >
>> >However, I'm observing Tomcat's usage with "top" under Linux and it
>> stops
>> >growing at 150Mb.
>> >
>> >Looks like this option doesn't work. Where else could I increase it?
>> >
>> >I'm using JDK 1.4.2, Tomcat 4.1.24
>> >
>> >--
>> >Kaunas Regional Distance Education Center
>> >Programmer
>> >Phone: +370 674 05232
>> >WWW: http://distance.ktu.lt
>> >
>> >
>> >
>>
>-
>> >To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>
>> This e-mail, including any attachments, is a confidential business
>communication, and may contain information that is confidential,
>proprietary and/or privileged.  This e-mail is intended only for the
>individual(s) to whom it is addressed, and may not be saved, copied,
>printed, disclosed or used by anyone else.  If you are not the(an)
intended
>recipient, please immediately delete this e-mail from your computer
system
>and notify the sender.  Thank you.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>--
>Kaunas Regional Distance Education Center
>Programmer
>Phone: +370 674 05232
>WWW: http://distance.ktu.lt
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat maximum heap size on Linux

2004-01-07 Thread Mindaugas Genutis

I expect to use it a few hundred Megabytes. It was quickly increasing in 
my eyes and stopped on 150Mb. Looks like its the system roof. Could it be 
so?

> Howdy,
> If it doesn't need more than 150MB, it won't use more than 150MB... Are
> you blindly playing around with heap numbers, or did you actually
> determine 1GB was required to handle your max expected load?
> 
> Yoav Shapira
> Millennium ChemInformatics
> 
> 
> >-Original Message-
> >From: Mindaugas Genutis [mailto:[EMAIL PROTECTED]
> >Sent: Wednesday, January 07, 2004 2:37 PM
> >To: Tomcat Users List
> >Subject: Tomcat maximum heap size on Linux
> >
> >
> >I wanted to increase Tomcat's maximum heap size. I did it by putting
> the
> >following string in the catalina.sh file (I'm running RedHat Linux):
> >
> >CATALINA_OPTS="-Djava.awt.headless=true -Xmx1024m"
> >
> >So, Tomcat can use 1Gb of my RAM.
> >
> >However, I'm observing Tomcat's usage with "top" under Linux and it
> stops
> >growing at 150Mb.
> >
> >Looks like this option doesn't work. Where else could I increase it?
> >
> >I'm using JDK 1.4.2, Tomcat 4.1.24
> >
> >--
> >Kaunas Regional Distance Education Center
> >Programmer
> >Phone: +370 674 05232
> >WWW: http://distance.ktu.lt
> >
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> This e-mail, including any attachments, is a confidential business communication, 
> and may contain information that is confidential, proprietary and/or privileged.  
> This e-mail is intended only for the individual(s) to whom it is addressed, and may 
> not be saved, copied, printed, disclosed or used by anyone else.  If you are not 
> the(an) intended recipient, please immediately delete this e-mail from your computer 
> system and notify the sender.  Thank you.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-- 
Kaunas Regional Distance Education Center
Programmer
Phone: +370 674 05232
WWW: http://distance.ktu.lt


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat maximum heap size on Linux

2004-01-07 Thread Shapira, Yoav

Howdy,
If it doesn't need more than 150MB, it won't use more than 150MB... Are
you blindly playing around with heap numbers, or did you actually
determine 1GB was required to handle your max expected load?

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Mindaugas Genutis [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, January 07, 2004 2:37 PM
>To: Tomcat Users List
>Subject: Tomcat maximum heap size on Linux
>
>
>I wanted to increase Tomcat's maximum heap size. I did it by putting
the
>following string in the catalina.sh file (I'm running RedHat Linux):
>
>CATALINA_OPTS="-Djava.awt.headless=true -Xmx1024m"
>
>So, Tomcat can use 1Gb of my RAM.
>
>However, I'm observing Tomcat's usage with "top" under Linux and it
stops
>growing at 150Mb.
>
>Looks like this option doesn't work. Where else could I increase it?
>
>I'm using JDK 1.4.2, Tomcat 4.1.24
>
>--
>Kaunas Regional Distance Education Center
>Programmer
>Phone: +370 674 05232
>WWW: http://distance.ktu.lt
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat maximum heap size on Linux

2004-01-07 Thread Mindaugas Genutis

I wanted to increase Tomcat's maximum heap size. I did it by putting the 
following string in the catalina.sh file (I'm running RedHat Linux):

CATALINA_OPTS="-Djava.awt.headless=true -Xmx1024m"

So, Tomcat can use 1Gb of my RAM.

However, I'm observing Tomcat's usage with "top" under Linux and it stops 
growing at 150Mb.

Looks like this option doesn't work. Where else could I increase it?

I'm using JDK 1.4.2, Tomcat 4.1.24

-- 
Kaunas Regional Distance Education Center
Programmer
Phone: +370 674 05232
WWW: http://distance.ktu.lt



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: jvm.cfg, mem heap size

2004-01-06 Thread Robert Hall
And for tuning gc in the 1.4 JVM:
http://java.sun.com/docs/hotspot/gc1.4.2/
Robert

Shapira, Yoav wrote:

Howdy,
You probably want to read and bookmark this page and the performance
docs pages linked from it:
http://java.sun.com/docs/hotspot/VMOptions.html.
(This issue has also been raised and discussed many times on this list,
you can search the archives).
Yoav Shapira
Millennium ChemInformatics
 

-Original Message-
From: John Beamon [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 06, 2004 1:16 PM
To: Tomcat Users List
Subject: jvm.cfg, mem heap size
I need to raise the amount of memory my jvm buffers for its use.  I've
seen docs on JavaHotSpot and JRun and a bunch of other things, but
   

never
 

just j2sdk.  Even at java.sun.com, there were more docs for iPlanet
tuning than j2sdk jvm tuning.  I'm looking for the syntax for adding
"-Xms128m -Xmx128m", but everything I try gives me:
Warning: missing VM type on line 25 of
`/usr/java/j2sdk1.4.1/jre/lib/i386/jvm.cfg'
Warning: missing VM type on line 26 of
`/usr/java/j2sdk1.4.1/jre/lib/i386/jvm.cfg'
Warning: missing VM type on line 25 of
`/usr/java/j2sdk1.4.1/jre/lib/i386/jvm.cfg'
Warning: missing VM type on line 26 of
`/usr/java/j2sdk1.4.1/jre/lib/i386/jvm.cfg'
My jvm.cfg is pasted below.
# commented lines
-client KNOWN
-server KNOWN
-hotspot ALIASED_TO -client
-classic WARN
-native ERROR
-green ERROR
-Xms128m
-Xmx128m
Lines 25 and 26 are the two "-Xm" lines at the bottom.  Can somebody
enlighten me?
--

John Beamon
Systems Administrator
Franklin American Mortgage
eml: [EMAIL PROTECTED]
web: www.franklinamerican.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   





This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged.  This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender.  Thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: jvm.cfg, mem heap size

2004-01-06 Thread Shapira, Yoav

Howdy,
You probably want to read and bookmark this page and the performance
docs pages linked from it:
http://java.sun.com/docs/hotspot/VMOptions.html.

(This issue has also been raised and discussed many times on this list,
you can search the archives).

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: John Beamon [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, January 06, 2004 1:16 PM
>To: Tomcat Users List
>Subject: jvm.cfg, mem heap size
>
>I need to raise the amount of memory my jvm buffers for its use.  I've
>seen docs on JavaHotSpot and JRun and a bunch of other things, but
never
>just j2sdk.  Even at java.sun.com, there were more docs for iPlanet
>tuning than j2sdk jvm tuning.  I'm looking for the syntax for adding
>"-Xms128m -Xmx128m", but everything I try gives me:
>
>Warning: missing VM type on line 25 of
>`/usr/java/j2sdk1.4.1/jre/lib/i386/jvm.cfg'
>Warning: missing VM type on line 26 of
>`/usr/java/j2sdk1.4.1/jre/lib/i386/jvm.cfg'
>Warning: missing VM type on line 25 of
>`/usr/java/j2sdk1.4.1/jre/lib/i386/jvm.cfg'
>Warning: missing VM type on line 26 of
>`/usr/java/j2sdk1.4.1/jre/lib/i386/jvm.cfg'
>
>My jvm.cfg is pasted below.
># commented lines
>-client KNOWN
>-server KNOWN
>-hotspot ALIASED_TO -client
>-classic WARN
>-native ERROR
>-green ERROR
>-Xms128m
>-Xmx128m
>
>Lines 25 and 26 are the two "-Xm" lines at the bottom.  Can somebody
>enlighten me?
>
>--
>
>John Beamon
>Systems Administrator
>Franklin American Mortgage
>eml: [EMAIL PROTECTED]
>web: www.franklinamerican.com
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



jvm.cfg, mem heap size

2004-01-06 Thread John Beamon
I need to raise the amount of memory my jvm buffers for its use.  I've 
seen docs on JavaHotSpot and JRun and a bunch of other things, but never 
just j2sdk.  Even at java.sun.com, there were more docs for iPlanet 
tuning than j2sdk jvm tuning.  I'm looking for the syntax for adding 
"-Xms128m -Xmx128m", but everything I try gives me:

Warning: missing VM type on line 25 of 
`/usr/java/j2sdk1.4.1/jre/lib/i386/jvm.cfg'
Warning: missing VM type on line 26 of 
`/usr/java/j2sdk1.4.1/jre/lib/i386/jvm.cfg'
Warning: missing VM type on line 25 of 
`/usr/java/j2sdk1.4.1/jre/lib/i386/jvm.cfg'
Warning: missing VM type on line 26 of 
`/usr/java/j2sdk1.4.1/jre/lib/i386/jvm.cfg'

My jvm.cfg is pasted below.
# commented lines
-client KNOWN
-server KNOWN
-hotspot ALIASED_TO -client
-classic WARN
-native ERROR
-green ERROR
-Xms128m
-Xmx128m
Lines 25 and 26 are the two "-Xm" lines at the bottom.  Can somebody 
enlighten me?

--

John Beamon
Systems Administrator
Franklin American Mortgage
eml: [EMAIL PROTECTED]
web: www.franklinamerican.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: About heap size, gc and newsize

2003-08-20 Thread Shapira, Yoav

Howdy,

>Left to it's own devices, GC usually only happens when the JVM
>is using almost all of the allocated memory.  Therefore, the
>more memory allocated, the longer till GC and the longer GC will
>last.

;( ;(

This is a common wrong assumption people have about Java's modern GC
algorithms.  In fact, they run all the time, even when not configured to
use the incremental (or train) collector.  With all the default VM
settings, GC scanning and reclaiming for a typical application will
happen often, long before the heap is largely allocated, frequently more
than once a second.   This is pretty easy to see if you enable
-verbose:gc flag to the JVM.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: About heap size, gc and newsize

2003-08-20 Thread Norris Shelton
I guess the real question is why are you concerned with when the
requests are GC'd.

Left to it's own devices, GC usually only happens when the JVM
is using almost all of the allocated memory.  Therefore, the
more memory allocated, the longer till GC and the longer GC will
last.

If you are trying to get it to run more often so that it takes
less time, take a look at 1.4.2. 


--- Bill Barker <[EMAIL PROTECTED]> wrote:
> At least in Tomcat, the HttpRequests aren't short-lived ;-). 
> If you are
> using Sun's JVM, then I'd try -Xincgc first (otherwise,
> consult your
> vendor's docs for the correct option).  In many cases it hurts
> performance,
> but in some it improves it dramatically.  Your mileage may
> vary ;-).
> 
> <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Hi all.
> > I am trying to get gc to reclaim more regularly by clearing
> short live
> > HttpRequest. Is this syntax corrrect, doesn't seem to do
> much whichever
> > way I tweak it :
> > (catalina.sh)
> > ...
> > JAVA_OPTS="-Xms256m -Xmx256m -XX:NewSize=128m
> -XX:MaxNewSize=128m"
> >
> > TIA :-)
> >
> 
> 
>

> 
> 
> 
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


=

Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Appriss, Inc.
ICQ# 26487421
AIM NorrisEShelton
YIM norrisshelton


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: About heap size, gc and newsize

2003-08-20 Thread Shapira, Yoav

Howdy,
Don't think about GC settings as "correct" or not, as that's too
absolute.  There's a huge gray area in between that you should
experiment with.  The settings below aren't likely to be optimal as they
leave a big chunk (50%) of the heap fixed and for the young generation,
yet you're not collecting the young generation any more actively than
usual.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, August 19, 2003 10:22 PM
>To: [EMAIL PROTECTED]
>Subject: About heap size, gc and newsize
>
>Hi all.
>I am trying to get gc to reclaim more regularly by clearing short live
>HttpRequest. Is this syntax corrrect, doesn't seem to do much whichever
>way I tweak it :
>(catalina.sh)
>...
>JAVA_OPTS="-Xms256m -Xmx256m -XX:NewSize=128m -XX:MaxNewSize=128m"
>
>TIA :-)



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: About heap size, gc and newsize

2003-08-19 Thread Bill Barker
At least in Tomcat, the HttpRequests aren't short-lived ;-).  If you are
using Sun's JVM, then I'd try -Xincgc first (otherwise, consult your
vendor's docs for the correct option).  In many cases it hurts performance,
but in some it improves it dramatically.  Your mileage may vary ;-).

<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> Hi all.
> I am trying to get gc to reclaim more regularly by clearing short live
> HttpRequest. Is this syntax corrrect, doesn't seem to do much whichever
> way I tweak it :
> (catalina.sh)
> ...
> JAVA_OPTS="-Xms256m -Xmx256m -XX:NewSize=128m -XX:MaxNewSize=128m"
>
> TIA :-)
>






> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



About heap size, gc and newsize

2003-08-19 Thread achana
Hi all.
I am trying to get gc to reclaim more regularly by clearing short live
HttpRequest. Is this syntax corrrect, doesn't seem to do much whichever
way I tweak it :
(catalina.sh)
...
JAVA_OPTS="-Xms256m -Xmx256m -XX:NewSize=128m -XX:MaxNewSize=128m"

TIA :-)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: heap size

2003-07-25 Thread Shapira, Yoav

Howdy,

>Is there a rule-of-thumb for setting the heap size based on how many
>concurrent Tomcat processors/threads? Mine are mostly basic jsps and
>servlets generating HTML. As I'll be running several Tomcat instances
>for different apps, I need to allocate my 512M RAM to each Tomcat.

No, and there can't be, as this behavior is 99% application-specific.
If you can figure out the average heap space required by a user request
to your application, multiply that by the peak number of concurrent
requests you want to support...

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: heap size

2003-07-24 Thread joseph lam
Is there a rule-of-thumb for setting the heap size based on how many 
concurrent Tomcat processors/threads? Mine are mostly basic jsps and 
servlets generating HTML. As I'll be running several Tomcat instances 
for different apps, I need to allocate my 512M RAM to each Tomcat.

Joseph

Shapira, Yoav wrote:

Howdy,

 

Yoav - Where do you specify heap size? I understand it is a parameter
   

of
 

the java command, but is in a Tomcat startup script somewhere? Or do I
   

just
 

execute it at the command line?
   

Add 
JAVA_OPTS='-Xmx512m'
to 
$CATALINA_HOME/bin/catalina.sh
on unix.  On windows, you can do this with a JAVA_OPTS environment
variable, or (if running as a service) via the registry.  Search this
list's archives for more information.

The 512m above specifies a maximum heap of 512 MB.  Run java -X to see
other options.
Yoav Shapira 



This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged.  This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender.  Thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: heap size

2003-07-23 Thread Shapira, Yoav

Howdy,

>I am a bit confused: I am running Tomcat 4.1.18 on Linux, with JDK
>1.4.1_03-b02.  Nowhere in the startup scripts do I see it specified how
>much memory to use (i.e., with the -Xmx flag).  When I call
>Runtime.totalMemory(), it gives me 128MB, yet I was under the
>impression that the JVM sets aside 64MB by default.

No -Xmx leaves it with the default for the VM.  All the -X's are
optional parameters.  I too thought 64MB was the default.

>On a possibly unrelated note, is it feasible to force garbage
>collection on Tomcat's JVM, either through Tomcat or the JVM itself?
>Googling has revealed only the official answer to this question, but
>I've heard that most profilers can do this.

No.

Profilers, and apps, can call System.gc(), which is a suggestion and
cannot force GC.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: heap size

2003-07-23 Thread Dhruva B. Reddy
I recently discovered these two methods, and was wondering how accurate
they are.

I am a bit confused: I am running Tomcat 4.1.18 on Linux, with JDK
1.4.1_03-b02.  Nowhere in the startup scripts do I see it specified how
much memory to use (i.e., with the -Xmx flag).  When I call
Runtime.totalMemory(), it gives me 128MB, yet I was under the
impression that the JVM sets aside 64MB by default.

On a possibly unrelated note, is it feasible to force garbage
collection on Tomcat's JVM, either through Tomcat or the JVM itself? 
Googling has revealed only the official answer to this question, but
I've heard that most profilers can do this.

Thanks,
Dhruva

--- "Shapira, Yoav" <[EMAIL PROTECTED]> wrote:
> 
> Howdy,
> 
> >Thanks Yoav - one last dumb question and I will leave you alone! So
> by
> 
> There's more than one in this email ;)  And no question is dumb
> (although that assertion is frequently tested on this list).
> 
> >adding that to my environment variables list, Tomcat knows to add it
> as
> a
> >startup parameter for Java? Or do I need to specify something else
> in
> the
> 
> No, it's one of a small set of variables documented in
> $CATALINA_HOME/bin/catalina.sh that tomcat looks for.  Environment
> variables don't need to be on the classpath.
> 
> >Is there an easy way to check the JVM to
> >see the parameters once it is running??
> 
> Generally, no, but there are some exceptions.  Although in this
> specific
> case, you can get memory information via Runtime#totalMemory() and
> Runtime#freeMemory().
> 
> Yoav Shapira
> 
> 
> 
> 
> This e-mail, including any attachments, is a confidential business
> communication, and may contain information that is confidential,
> proprietary and/or privileged.  This e-mail is intended only for the
> individual(s) to whom it is addressed, and may not be saved, copied,
> printed, disclosed or used by anyone else.  If you are not the(an)
> intended recipient, please immediately delete this e-mail from your
> computer system and notify the sender.  Thank you.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: heap size

2003-07-23 Thread Shapira, Yoav

Howdy,

>Thanks Yoav - one last dumb question and I will leave you alone! So by

There's more than one in this email ;)  And no question is dumb
(although that assertion is frequently tested on this list).

>adding that to my environment variables list, Tomcat knows to add it as
a
>startup parameter for Java? Or do I need to specify something else in
the

No, it's one of a small set of variables documented in
$CATALINA_HOME/bin/catalina.sh that tomcat looks for.  Environment
variables don't need to be on the classpath.

>Is there an easy way to check the JVM to
>see the parameters once it is running??

Generally, no, but there are some exceptions.  Although in this specific
case, you can get memory information via Runtime#totalMemory() and
Runtime#freeMemory().

Yoav Shapira




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: heap size

2003-07-23 Thread Geoff Peters
Thanks Yoav - one last dumb question and I will leave you alone! So by adding that to 
my environment variables list, Tomcat knows to add it as a startup parameter for Java? 
Or do I need to specify something else in the setclasspath.bat file as well?? Is there 
an easy way to check the JVM to see the parameters once it is running??

Thanks!

Geoff

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 12:36 PM
To: Tomcat Users List
Subject: RE: heap size



Howdy,

>Yoav - Where do you specify heap size? I understand it is a parameter
of
>the java command, but is in a Tomcat startup script somewhere? Or do I
just
>execute it at the command line?

Add 
JAVA_OPTS='-Xmx512m'
to 
$CATALINA_HOME/bin/catalina.sh
on unix.  On windows, you can do this with a JAVA_OPTS environment
variable, or (if running as a service) via the registry.  Search this
list's archives for more information.

The 512m above specifies a maximum heap of 512 MB.  Run java -X to see
other options.

Yoav Shapira 



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: heap size

2003-07-23 Thread Shapira, Yoav

Howdy,

>Yoav - Where do you specify heap size? I understand it is a parameter
of
>the java command, but is in a Tomcat startup script somewhere? Or do I
just
>execute it at the command line?

Add
JAVA_OPTS='-Xmx512m'
to
$CATALINA_HOME/bin/catalina.sh
on unix.  On windows, you can do this with a JAVA_OPTS environment
variable, or (if running as a service) via the registry.  Search this
list's archives for more information.

The 512m above specifies a maximum heap of 512 MB.  Run java -X to see
other options.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



heap size

2003-07-23 Thread Geoff Peters
Yoav - Where do you specify heap size? I understand it is a parameter of the java 
command, but is in a Tomcat startup script somewhere? Or do I just execute it at the 
command line?

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 9:55 AM
To: Tomcat Users List
Subject: RE: config help



Howdy,
Give at much memory to the heap as your server hardware will allow (-Xmx
java option).  I guess Windows doesn't have a ulimit-equivalent so you
probably don't need to worry about that.

Remove all unneeded connectors, valves, services from server.xml.
Remove all unneeded webapps (examples, docs, etc.) from tomcat.

If you're using a logging system that allows this configuration, turn
off debug-level statements.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Geoff Peters [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, July 23, 2003 7:39 AM
>To: [EMAIL PROTECTED]
>Subject: config help
>
>Hi - I am currently in the process of deploying a web app using Tomcat
>4.1.18, MySQL 3.23 on a Win2K Server. The app will be used heavily for
a
>period of 3 - 4 hours, (probably a couple of thousand hits per minute),
>then never used again.
>
>I am wondering what exactly I should do to enhance performace - other
than
>some changes recommended to the server.xml file (i.e. setting debug to
>zero), I am not 100% sure what some of the other changes will do,
>specifically min and max processors, and other settings. Can someone
please
>give me some pointers as to what I can so to maximize performance over
this
>3-4 hour period??
>
>Application is a series of MySQL based reports (all servlets),
containing
>several select statements and using the MySQL JDBC driver.
>
>Thanks for any advice!
>
>Geoff
>
>Geoff Peters, SCJPPhone  : (441) 296-9640
>Applications DeveloperFax: (441) 292-1509
>Logic Communications  E-mail : [EMAIL PROTECTED]
>12 Par-La-Ville Road  WWW: http://www.logic.bm
>Hamilton, Bermuda  HM JX
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: heap size config

2003-06-17 Thread Eric J. Pinnell
Forgive me for jumping in on this thread mid-way...

Keep in mind that 'top' is not the most accurate tool in the world.

As well as the way some unixs handle swap space.  Solaris, for example,
handles swap space like airlines sell tickets on planes.  They overbook
it.  So it might allocate the space but it won't ever use it.

Usually you don't want your java to swap at all.  It really slows you
down.

-e

On Tue, 17 Jun 2003, Shapira, Yoav wrote:

>
> Howdy,
> Please post the simplest unit test I can use to reproduce this,
> including the JMeter script that tracks swap space.  I'll be glad to see
> this one happen...
>
> What do you mean by "call a System Runtime" ?
>
> Yoav Shapira
> Millennium ChemInformatics
>
>
> >-Original Message-
> >From: Billy Ng [mailto:[EMAIL PROTECTED]
> >Sent: Tuesday, June 17, 2003 1:16 PM
> >To: Tomcat Users List; [EMAIL PROTECTED]
> >Subject: Re: heap size config
> >
> >If you run top, and make a servlet to call a System Runtime.  Then, use
> >Jmeter to hammer it.  You will see the swap disk is create the same
> size as
> >the -Xms for each thread.  I have done the test with different sizes of
> >heap.  It is solid true.
> >
> >Billy Ng
> >
> >- Original Message -
> >From: "Yoav Shapira" <[EMAIL PROTECTED]>
> >To: "Tomcat Users List" <[EMAIL PROTECTED]>; "Billy Ng"
> ><[EMAIL PROTECTED]>
> >Sent: Tuesday, June 17, 2003 4:40 AM
> >Subject: Re: heap size config
> >
> >
> >> Howdy,
> >>
> >> >In Unix, java will make
> >> > 512MB swap every time we make a System Runtime call.
> >>
> >> I don't think so: can you prove the above?
> >>
> >> >Will this
> >> > hurt the Tomcat preformnace?
> >>
> >> Lowering -Xms will only slightly degrade performance during the
> >allocation
> >> phase.  The effects are negligible during that phase and none
> afterwards.
> >>
> >> >I read the article from Sun saying the -Xms and
> >> > -Xmx should be the same.  Is it always true?
> >>
> >> No.  Almost nothing in the realm of performance tuning is always
> true.
> >Setting
> >> -Xms equal to -Xmx is useful only if you're going to have a constant
> >level
> >> memory usage more or less throughout the life of your JVM.  If you
> start
> >low
> >> and stay low until peak demand comes in, keeping -Xms low is more
> >beneficial.
> >> GC and other operations are always faster on a smaller heap.
> >>
> >> Of course, nothing is more beneficial then having stress tests to run
> >against
> >> different combinations of settings.  That way you can see the actual
> >effect on
> >> your system intead of relying on me or someone else's article.
> >>
> >> Yoav Shapira
> >>
> >>
> >>
> >> =
> >> Yoav Shapira
> >> [EMAIL PROTECTED]
> >>
> >> __
> >> Do you Yahoo!?
> >> SBC Yahoo! DSL - Now only $29.95 per month!
> >> http://sbc.yahoo.com
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> This e-mail, including any attachments, is a confidential business communication, 
> and may contain information that is confidential, proprietary and/or privileged.  
> This e-mail is intended only for the individual(s) to whom it is addressed, and may 
> not be saved, copied, printed, disclosed or used by anyone else.  If you are not 
> the(an) intended recipient, please immediately delete this e-mail from your computer 
> system and notify the sender.  Thank you.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: heap size config

2003-06-17 Thread Shapira, Yoav

Howdy,
Please post the simplest unit test I can use to reproduce this,
including the JMeter script that tracks swap space.  I'll be glad to see
this one happen...

What do you mean by "call a System Runtime" ?

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Billy Ng [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, June 17, 2003 1:16 PM
>To: Tomcat Users List; [EMAIL PROTECTED]
>Subject: Re: heap size config
>
>If you run top, and make a servlet to call a System Runtime.  Then, use
>Jmeter to hammer it.  You will see the swap disk is create the same
size as
>the -Xms for each thread.  I have done the test with different sizes of
>heap.  It is solid true.
>
>Billy Ng
>
>- Original Message -
>From: "Yoav Shapira" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>; "Billy Ng"
><[EMAIL PROTECTED]>
>Sent: Tuesday, June 17, 2003 4:40 AM
>Subject: Re: heap size config
>
>
>> Howdy,
>>
>> >In Unix, java will make
>> > 512MB swap every time we make a System Runtime call.
>>
>> I don't think so: can you prove the above?
>>
>> >Will this
>> > hurt the Tomcat preformnace?
>>
>> Lowering -Xms will only slightly degrade performance during the
>allocation
>> phase.  The effects are negligible during that phase and none
afterwards.
>>
>> >I read the article from Sun saying the -Xms and
>> > -Xmx should be the same.  Is it always true?
>>
>> No.  Almost nothing in the realm of performance tuning is always
true.
>Setting
>> -Xms equal to -Xmx is useful only if you're going to have a constant
>level
>> memory usage more or less throughout the life of your JVM.  If you
start
>low
>> and stay low until peak demand comes in, keeping -Xms low is more
>beneficial.
>> GC and other operations are always faster on a smaller heap.
>>
>> Of course, nothing is more beneficial then having stress tests to run
>against
>> different combinations of settings.  That way you can see the actual
>effect on
>> your system intead of relying on me or someone else's article.
>>
>> Yoav Shapira
>>
>>
>>
>> =
>> Yoav Shapira
>> [EMAIL PROTECTED]
>>
>> __
>> Do you Yahoo!?
>> SBC Yahoo! DSL - Now only $29.95 per month!
>> http://sbc.yahoo.com
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: heap size config

2003-06-17 Thread Billy Ng
If you run top, and make a servlet to call a System Runtime.  Then, use
Jmeter to hammer it.  You will see the swap disk is create the same size as
the -Xms for each thread.  I have done the test with different sizes of
heap.  It is solid true.

Billy Ng

- Original Message -
From: "Yoav Shapira" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>; "Billy Ng"
<[EMAIL PROTECTED]>
Sent: Tuesday, June 17, 2003 4:40 AM
Subject: Re: heap size config


> Howdy,
>
> >In Unix, java will make
> > 512MB swap every time we make a System Runtime call.
>
> I don't think so: can you prove the above?
>
> >Will this
> > hurt the Tomcat preformnace?
>
> Lowering -Xms will only slightly degrade performance during the allocation
> phase.  The effects are negligible during that phase and none afterwards.
>
> >I read the article from Sun saying the -Xms and
> > -Xmx should be the same.  Is it always true?
>
> No.  Almost nothing in the realm of performance tuning is always true.
Setting
> -Xms equal to -Xmx is useful only if you're going to have a constant level
> memory usage more or less throughout the life of your JVM.  If you start
low
> and stay low until peak demand comes in, keeping -Xms low is more
beneficial.
> GC and other operations are always faster on a smaller heap.
>
> Of course, nothing is more beneficial then having stress tests to run
against
> different combinations of settings.  That way you can see the actual
effect on
> your system intead of relying on me or someone else's article.
>
> Yoav Shapira
>
>
>
> =
> Yoav Shapira
> [EMAIL PROTECTED]
>
> __
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: heap size config

2003-06-17 Thread Yoav Shapira
Howdy,

>In Unix, java will make
> 512MB swap every time we make a System Runtime call.

I don't think so: can you prove the above?

>Will this
> hurt the Tomcat preformnace? 

Lowering -Xms will only slightly degrade performance during the allocation
phase.  The effects are negligible during that phase and none afterwards.

>I read the article from Sun saying the -Xms and
> -Xmx should be the same.  Is it always true?

No.  Almost nothing in the realm of performance tuning is always true.  Setting
-Xms equal to -Xmx is useful only if you're going to have a constant level
memory usage more or less throughout the life of your JVM.  If you start low
and stay low until peak demand comes in, keeping -Xms low is more beneficial. 
GC and other operations are always faster on a smaller heap.

Of course, nothing is more beneficial then having stress tests to run against
different combinations of settings.  That way you can see the actual effect on
your system intead of relying on me or someone else's article.

Yoav Shapira



=
Yoav Shapira
[EMAIL PROTECTED]

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



heap size config

2003-06-17 Thread Billy Ng
Hi folks,

We config the java -Xms and -Xmx with the 512MB.  In Unix, java will make 512MB swap 
every time we make a System Runtime call.  Therefore, we need to lower the -Xms to 
64MB and -Xmx remains 512MB so that it will not run out of swap space if too many 
threads making the System Runtime call.  Will this hurt the Tomcat preformnace?  I 
read the article from Sun saying the -Xms and -Xmx should be the same.  Is it always 
true?

Thanks!

Billy Ng

RE: Heap size (or something) [correction!]

2002-05-17 Thread TMotte


i deleted the message, but somebody was asking about how to specify heap
size in the params to tomcat, and i said you could probably pass such as a
param to startup.bat/startup.sh - not true. command line arguments are
passed through to the actual tomcat invocation, but *after* the classname,
not before it, so the vm will ignore them. Not a bug, it's so you can tell
Catalina where to get its config file and so on.

So the only way to specify options to the VM is via the CATALINA_OPTS env
variable. My mistake.

Troy






--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: Heap Size for Tomcat

2002-05-16 Thread Phillip Morelock

i guess it's a matter of opinion, although i've personally never fed options
to startup.sh, so I can't speak for that.

What **i** do is in startup.sh, that's where I set JAVA_HOME, TOMCAT_HOME,
and TOMCAT_OPTS.  That way I don't have to worry about user environment
variables.  YMMV.

cheers
fillup



On 5/16/02 6:45 PM, "Jacob Hookom" <[EMAIL PROTECTED]> wrote:

> So the correct solution is to modify the startup/shutdown command line
> or to setup TOMCAT_OPTS/CATALINA_OPTS?
> 
> Thanks again for the replies!
> Jake Hookom
> 
> -Original Message-
> From: Phillip Morelock [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 16, 2002 6:46 PM
> To: Tomcat Users List
> Subject: Re: Heap Size for Tomcat
> 
> i actually sent an email regarding this to the list about two weeks ago.
> 
> I believe you are correct -- but I have found (only anecdotally) that
> the
> shutdown one doesn't have a negative impact, because on my platform at
> least
> (linux) -- even though the Virtual size allocated is huge, the resident
> set
> size doesn't grow any more quickly than it actually should (apparently
> at
> least, again I've only experimented with this on Linux).
> 
> cheers
> fillup
> 
> 
> On 5/16/02 4:46 PM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> 
>> 
>> Well, yeah except  he wants to get more memory... and wouldn't setting
> the
>> XXXOPTS variable set the heap size not just for startup but also
> shutdown?
>> In other words, this way you could get tomcat to start with 512mb of
> heap,
>> but if you call shutdown.bat/shutdown.sh,  the shutdown vm grabs its
> own
>> 512mb heap... I dunno...
>> 
>> troy
>> 
>> 
>> 
>> 
>> 
>> Phillip Morelock
>>  Users
>> List <[EMAIL PROTECTED]>
>> relock.com>  cc:
>>  Subject: Re: Heap
> Size
>> for Tomcat  
>> 05/16/2002 06:19 PM
>> Please respond to
>> "Tomcat Users List"
>> 
>> 
>> 
>> 
>> 
>> 
>> The "official" way to do it is to set a
>> TOMCAT_OPTS
>> or
>> CATALINA_OPTS
>> 
>> variable with the string that you would normally feed the VM.  (like
> -Xms
>> or
>> whatever).  TOMCAT is for 3.x, CATALINA is for 4.x
>> 
>> cheers
>> fillup
>> 
>> 
>> 
>> On 5/16/02 3:57 PM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>> 
>>> 
>>> my understanding is that any parameters you pass to bin/startup.bat
> or
>>> bin/startup.sh on the command line will be passed through to the java
> vm,
>>> such as mx128m or -D property=something .
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> "Jacob Hookom"
>>> <[EMAIL PROTECTED] To:  "'Tomcat Users
>> List'"
>>> <[EMAIL PROTECTED]>
>>> du>  cc:
>>>  Subject: Heap Size for
>> Tomcat
>>> 05/16/2002 01:57
>>> PM
>>> Please respond
>>> to "Tomcat Users
>>> List"
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> Hello All,
>>> 
>>> I was wondering where I can modify the initial heap size settings for
>>> tomcat to use.  Or more primarily, where the command line is that
> tomcat
>>> uses to initialize its VM.
>>> 
>>> Thanks,
>>> Jake Hookom
>>> 
>>> ---
>>> Outgoing mail is certified Virus Free.
>>> Checked by AVG anti-virus system (http://www.grisoft.com).
>>> Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002
>>> 
>>> 
>>> 
>>> --
>>> To unsubscribe, e-mail:   <
>>> mailto:[EMAIL PROTECTED]>
>>> For additional commands, e-mail: <
>>> mailto:[EMAIL PROTECTED]>
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> --
>>> To unsubscribe, e-mail:   <
>> mailto:[EMAIL PROTECTED]>
>>> For additional commands, e-mail: <
>> mailto:[EMAIL PROTECTED]>
>>> 
>> 
>> 
>> --
>> To unsubscribe, e-mail:   <
>> mailto:[EMAIL PROTECTED]>
>> For additional commands, e-mail: <
>> mailto:[EMAIL PROTECTED]>
>> 
>> 
>> 
>> 
>> 
>> 
>> --
>> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
>> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>> 
> 
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002
> 
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: Heap Size for Tomcat

2002-05-16 Thread Jacob Hookom

So the correct solution is to modify the startup/shutdown command line
or to setup TOMCAT_OPTS/CATALINA_OPTS?

Thanks again for the replies!
Jake Hookom

-Original Message-
From: Phillip Morelock [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, May 16, 2002 6:46 PM
To: Tomcat Users List
Subject: Re: Heap Size for Tomcat

i actually sent an email regarding this to the list about two weeks ago.

I believe you are correct -- but I have found (only anecdotally) that
the
shutdown one doesn't have a negative impact, because on my platform at
least
(linux) -- even though the Virtual size allocated is huge, the resident
set
size doesn't grow any more quickly than it actually should (apparently
at
least, again I've only experimented with this on Linux).

cheers
fillup


On 5/16/02 4:46 PM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:

> 
> Well, yeah except  he wants to get more memory... and wouldn't setting
the
> XXXOPTS variable set the heap size not just for startup but also
shutdown?
> In other words, this way you could get tomcat to start with 512mb of
heap,
> but if you call shutdown.bat/shutdown.sh,  the shutdown vm grabs its
own
> 512mb heap... I dunno...
> 
> troy
> 
> 
> 
> 
>  
> Phillip Morelock
>  List <[EMAIL PROTECTED]>
> relock.com>  cc:
>  Subject: Re: Heap
Size
> for Tomcat   
> 05/16/2002 06:19 PM
> Please respond to
> "Tomcat Users List"
>  
>  
> 
> 
> 
> 
> The "official" way to do it is to set a
> TOMCAT_OPTS
> or
> CATALINA_OPTS
> 
> variable with the string that you would normally feed the VM.  (like
-Xms
> or
> whatever).  TOMCAT is for 3.x, CATALINA is for 4.x
> 
> cheers
> fillup
> 
> 
> 
> On 5/16/02 3:57 PM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> 
>> 
>> my understanding is that any parameters you pass to bin/startup.bat
or
>> bin/startup.sh on the command line will be passed through to the java
vm,
>> such as mx128m or -D property=something .
>> 
>> 
>> 
>> 
>> 
>> 
>> "Jacob Hookom"
>> <[EMAIL PROTECTED] To:  "'Tomcat Users
> List'"
>> <[EMAIL PROTECTED]>
>> du>  cc:
>>      Subject: Heap Size for
> Tomcat
>> 05/16/2002 01:57
>> PM
>> Please respond
>> to "Tomcat Users
>> List"
>> 
>> 
>> 
>> 
>> 
>> 
>> Hello All,
>> 
>> I was wondering where I can modify the initial heap size settings for
>> tomcat to use.  Or more primarily, where the command line is that
tomcat
>> uses to initialize its VM.
>> 
>> Thanks,
>> Jake Hookom
>> 
>> ---
>> Outgoing mail is certified Virus Free.
>> Checked by AVG anti-virus system (http://www.grisoft.com).
>> Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002
>> 
>> 
>> 
>> --
>> To unsubscribe, e-mail:   <
>> mailto:[EMAIL PROTECTED]>
>> For additional commands, e-mail: <
>> mailto:[EMAIL PROTECTED]>
>> 
>> 
>> 
>> 
>> 
>> 
>> --
>> To unsubscribe, e-mail:   <
> mailto:[EMAIL PROTECTED]>
>> For additional commands, e-mail: <
> mailto:[EMAIL PROTECTED]>
>> 
> 
> 
> --
> To unsubscribe, e-mail:   <
> mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <
> mailto:[EMAIL PROTECTED]>
> 
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
> 


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002
 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: Heap Size for Tomcat

2002-05-16 Thread Phillip Morelock

i actually sent an email regarding this to the list about two weeks ago.

I believe you are correct -- but I have found (only anecdotally) that the
shutdown one doesn't have a negative impact, because on my platform at least
(linux) -- even though the Virtual size allocated is huge, the resident set
size doesn't grow any more quickly than it actually should (apparently at
least, again I've only experimented with this on Linux).

cheers
fillup


On 5/16/02 4:46 PM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:

> 
> Well, yeah except  he wants to get more memory... and wouldn't setting the
> XXXOPTS variable set the heap size not just for startup but also shutdown?
> In other words, this way you could get tomcat to start with 512mb of heap,
> but if you call shutdown.bat/shutdown.sh,  the shutdown vm grabs its own
> 512mb heap... I dunno...
> 
> troy
> 
> 
> 
> 
>  
> Phillip Morelock
>  List <[EMAIL PROTECTED]>
> relock.com>  cc:
>  Subject: Re: Heap Size
> for Tomcat   
> 05/16/2002 06:19 PM
> Please respond to
> "Tomcat Users List"
>  
>  
> 
> 
> 
> 
> The "official" way to do it is to set a
> TOMCAT_OPTS
> or
> CATALINA_OPTS
> 
> variable with the string that you would normally feed the VM.  (like -Xms
> or
> whatever).  TOMCAT is for 3.x, CATALINA is for 4.x
> 
> cheers
> fillup
> 
> 
> 
> On 5/16/02 3:57 PM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> 
>> 
>> my understanding is that any parameters you pass to bin/startup.bat or
>> bin/startup.sh on the command line will be passed through to the java vm,
>> such as mx128m or -D property=something .
>> 
>> 
>> 
>> 
>> 
>> 
>> "Jacob Hookom"
>> <[EMAIL PROTECTED] To:  "'Tomcat Users
> List'"
>> <[EMAIL PROTECTED]>
>> du>  cc:
>>      Subject: Heap Size for
> Tomcat
>> 05/16/2002 01:57
>> PM
>> Please respond
>> to "Tomcat Users
>> List"
>> 
>> 
>> 
>> 
>> 
>> 
>> Hello All,
>> 
>> I was wondering where I can modify the initial heap size settings for
>> tomcat to use.  Or more primarily, where the command line is that tomcat
>> uses to initialize its VM.
>> 
>> Thanks,
>> Jake Hookom
>> 
>> ---
>> Outgoing mail is certified Virus Free.
>> Checked by AVG anti-virus system (http://www.grisoft.com).
>> Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002
>> 
>> 
>> 
>> --
>> To unsubscribe, e-mail:   <
>> mailto:[EMAIL PROTECTED]>
>> For additional commands, e-mail: <
>> mailto:[EMAIL PROTECTED]>
>> 
>> 
>> 
>> 
>> 
>> 
>> --
>> To unsubscribe, e-mail:   <
> mailto:[EMAIL PROTECTED]>
>> For additional commands, e-mail: <
> mailto:[EMAIL PROTECTED]>
>> 
> 
> 
> --
> To unsubscribe, e-mail:   <
> mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <
> mailto:[EMAIL PROTECTED]>
> 
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: Heap Size for Tomcat

2002-05-16 Thread Wagner Danda

Hello,


is it important to use the -Xms and -Xmx with tomcat? Doesn´t he already 
manage the heap? When I should use this and when I should not?

Thanks.

Wagner Danda

Phillip Morelock wrote:

>The "official" way to do it is to set a
>TOMCAT_OPTS
>or
>CATALINA_OPTS
>
>variable with the string that you would normally feed the VM.  (like -Xms or
>whatever).  TOMCAT is for 3.x, CATALINA is for 4.x
>
>cheers
>fillup
>
>
>
>On 5/16/02 3:57 PM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
>>my understanding is that any parameters you pass to bin/startup.bat or
>>bin/startup.sh on the command line will be passed through to the java vm,
>>such as mx128m or -D property=something .
>>
>>
>>
>>
>>
>> 
>>"Jacob Hookom"
>><[EMAIL PROTECTED] To:  "'Tomcat Users List'"
>><[EMAIL PROTECTED]>
>>du>  cc:
>> Subject: Heap Size for Tomcat
>>05/16/2002 01:57
>>PM
>>    Please respond
>>to "Tomcat Users
>>List"
>> 
>> 
>>
>>
>>
>>
>>Hello All,
>>
>>I was wondering where I can modify the initial heap size settings for
>>tomcat to use.  Or more primarily, where the command line is that tomcat
>>uses to initialize its VM.
>>
>>Thanks,
>>Jake Hookom
>>
>>---
>>Outgoing mail is certified Virus Free.
>>Checked by AVG anti-virus system (http://www.grisoft.com).
>>Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002
>>
>>
>>
>>--
>>To unsubscribe, e-mail:   <
>>mailto:[EMAIL PROTECTED]>
>>For additional commands, e-mail: <
>>mailto:[EMAIL PROTECTED]>
>>
>>
>>
>>
>>
>>
>>--
>>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>>
>
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
>




Re: Heap Size for Tomcat

2002-05-16 Thread TMotte


Well, yeah except  he wants to get more memory... and wouldn't setting the
XXXOPTS variable set the heap size not just for startup but also shutdown?
In other words, this way you could get tomcat to start with 512mb of heap,
but if you call shutdown.bat/shutdown.sh,  the shutdown vm grabs its own
512mb heap... I dunno...

troy




   
 
  Phillip Morelock 
 

  relock.com>  cc: 
 
   Subject: Re: Heap Size for 
Tomcat
  05/16/2002 06:19 PM  
 
  Please respond to
 
  "Tomcat Users List"  
 
   
 
   
 




The "official" way to do it is to set a
TOMCAT_OPTS
or
CATALINA_OPTS

variable with the string that you would normally feed the VM.  (like -Xms
or
whatever).  TOMCAT is for 3.x, CATALINA is for 4.x

cheers
fillup



On 5/16/02 3:57 PM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:

>
> my understanding is that any parameters you pass to bin/startup.bat or
> bin/startup.sh on the command line will be passed through to the java vm,
> such as mx128m or -D property=something .
>
>
>
>
>
>
> "Jacob Hookom"
> <[EMAIL PROTECTED] To:  "'Tomcat Users
List'"
> <[EMAIL PROTECTED]>
> du>  cc:
>  Subject: Heap Size for
Tomcat
> 05/16/2002 01:57
> PM
> Please respond
>     to "Tomcat Users
> List"
>
>
>
>
>
>
> Hello All,
>
> I was wondering where I can modify the initial heap size settings for
> tomcat to use.  Or more primarily, where the command line is that tomcat
> uses to initialize its VM.
>
> Thanks,
> Jake Hookom
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002
>
>
>
> --
> To unsubscribe, e-mail:   <
> mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <
> mailto:[EMAIL PROTECTED]>
>
>
>
>
>
>
> --
> To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>
>


--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>






--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: Heap Size for Tomcat

2002-05-16 Thread Phillip Morelock

The "official" way to do it is to set a
TOMCAT_OPTS
or
CATALINA_OPTS

variable with the string that you would normally feed the VM.  (like -Xms or
whatever).  TOMCAT is for 3.x, CATALINA is for 4.x

cheers
fillup



On 5/16/02 3:57 PM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:

> 
> my understanding is that any parameters you pass to bin/startup.bat or
> bin/startup.sh on the command line will be passed through to the java vm,
> such as mx128m or -D property=something .
> 
> 
> 
> 
> 
>  
> "Jacob Hookom"
> <[EMAIL PROTECTED] To:  "'Tomcat Users List'"
> <[EMAIL PROTECTED]>
>     du>  cc:
>  Subject: Heap Size for Tomcat
> 05/16/2002 01:57
> PM
> Please respond
> to "Tomcat Users
>     List"
>  
>  
> 
> 
> 
> 
> Hello All,
> 
> I was wondering where I can modify the initial heap size settings for
> tomcat to use.  Or more primarily, where the command line is that tomcat
> uses to initialize its VM.
> 
> Thanks,
> Jake Hookom
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002
> 
> 
> 
> --
> To unsubscribe, e-mail:   <
> mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <
> mailto:[EMAIL PROTECTED]>
> 
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: Heap Size for Tomcat

2002-05-16 Thread TMotte


my understanding is that any parameters you pass to bin/startup.bat or
bin/startup.sh on the command line will be passed through to the java vm,
such as mx128m or -D property=something .





   
 
  "Jacob Hookom"   
 
  <[EMAIL PROTECTED] To:  "'Tomcat Users List'" 
<[EMAIL PROTECTED]>  
  du>  cc: 
 
   Subject: Heap Size for Tomcat   
 
  05/16/2002 01:57 
 
  PM   
 
  Please respond   
 
  to "Tomcat Users 
 
  List"
 
   
 
   
 




Hello All,

I was wondering where I can modify the initial heap size settings for
tomcat to use.  Or more primarily, where the command line is that tomcat
uses to initialize its VM.

Thanks,
Jake Hookom

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002



--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>






--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Heap Size for Tomcat

2002-05-16 Thread Jacob Hookom

Hello All,

I was wondering where I can modify the initial heap size settings for
tomcat to use.  Or more primarily, where the command line is that tomcat
uses to initialize its VM.

Thanks,
Jake Hookom

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002
 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Increase heap size for NT Service

2002-04-30 Thread Mary Loos Sage

Tomcat 4.0.3 NT service on Windows 2000 


I am trying to increase the heap size to run a servlet that needs lots
of memory.  I set the system environment variable:

CATALINA_OPTS="-Xmx256m"

Everything works fine when I start tomcat from the commandline, but I
run out of memory when I start the NT service.  

Is the NT services running startup.bat?  (I tried to look at the source
in the CVS baseline but everything was in the Attic).  Is there anything
else I need to do to increase the maximum heap size of the JVM of the NT
service?

Thanks,
Mary Loos Sage
Veridian Systems
Arlington, VA

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




AW: Allocated Heap Size Continuously Increase

2002-01-27 Thread Ralph Einfeldt

That sounds more like an error in the vm.

If there would be a memory leak in tomcat the 
call to the gc() wouldn't free any memory that
is leaking.
Others have noticed that with some vm's the 
contract 'Before throwing an OutOfMemoryException 
free any released memory' is not fullfilled. It 
looks like the vm needs some memory to run the gc 
and doesn't get it and throws this Exception
without reclaiming the released memory.

> -Ursprüngliche Nachricht-
> Von: Steve Wong [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 28. Januar 2002 05:39
> An: Tomcat Users List
> Betreff: RE: Allocated Heap Size Continuously Increase

> 
> 
>   The allocated heap size continuously increase.
> 
>   Change a.jsp to:
> 
> <% java.lang.Runtime.getRuntime().gc() %>
> 
>   The allocated heap size remains unchanged.
> 


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: Allocated Heap Size Continuously Increase

2002-01-27 Thread Steve Wong


Memory Leak in JSP Engine of Tomcat??
Use ab of apache to hit a.jsp where a.jsp only contains:


The allocated heap size continuously increase.

Change a.jsp to:

<% java.lang.Runtime.getRuntime().gc() %>

The allocated heap size remains unchanged.

Thx. and Regards.
Steve.

-Original Message-
From: Steve Wong 
Sent: Monday, January 28, 2002 10:45 AM
To: [EMAIL PROTECTED]
Subject: Allocated Heap Size Continuously Increase



I have a web application running on Apache1.3.20 with 
mod_ssl+Tomcat3.3+Jdk1.2.2 on Solaris 8.
The allocated heap size of tomcat continuously increase until OutOfMemoryError 
occurs.
I've used OptimizeIT Profiler to monitor it and discovered that four classes' 
object instances 
continuously increase.  They are :
org.apache.tomcat.util.buf.CharChunk
org.apache.tomcat.util.buf.ByteChunk
org.apache.tomcat.util.buf.MessageBytes
org.apache.tomcat.util.http.MimeHeaderField

Do anyone have similar problem and know how to solve it, please throw me some 
light.
Thx. in Advance.

Steve.


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Allocated Heap Size Continuously Increase

2002-01-27 Thread Steve Wong


I have a web application running on Apache1.3.20 with 
mod_ssl+Tomcat3.3+Jdk1.2.2 on Solaris 8.
The allocated heap size of tomcat continuously increase until OutOfMemoryError 
occurs.
I've used OptimizeIT Profiler to monitor it and discovered that four classes' 
object instances 
continuously increase.  They are :
org.apache.tomcat.util.buf.CharChunk
org.apache.tomcat.util.buf.ByteChunk
org.apache.tomcat.util.buf.MessageBytes
org.apache.tomcat.util.http.MimeHeaderField

Do anyone have similar problem and know how to solve it, please throw me some 
light.
Thx. in Advance.

Steve.


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




AW: Ever increasing heap size with Tomcat 3.2.3 !!!

2001-12-19 Thread Ralph Einfeldt

Remember that the heap is not the only place where memory 
is needed for the sun jdk. 
There is also the stacksize. (-Xss)

I'm not shure if this applies also to the IBM JDK.

> -Ursprüngliche Nachricht-
> Von: Tõnu Põld [mailto:[EMAIL PROTECTED]]
> Gesendet: Mittwoch, 19. Dezember 2001 09:33
> An: 'Tomcat Users List'
> Betreff: RE: Ever increasing heap size with Tomcat 3.2.3 !!!
> 
> 
> Hi
> 
> We have a similar problem with IBM JDK 1.3.0 (JIT enabled).
> I suggest to debug the garbage collector (gc) by turning on 
> the -verbosegc
> command option. The garbage collecting activity will be 
> written to stderr.
> 
> In our case I suspect that it is JVM problem because the 
> output shows that
> 90% heap is free, but still the OutOfMemoryException occurs 
> sometimes. The
> exception occurs when the servlet application tries to 
> allocate big amount
> of memory (5Mb). Even if we set the -Xmx128m and -Xms128m the 
> error occurs,
> although the output shows that there is 90% (115Mb) free 
> space in heap.
> 
> I suspect that the OutOfMemoryError occurs because the heap gets too
> fragmented, therefore the gc can't allocate big sequential 
> memory area. This
> makes me believe that the heap defragmentation process takes 
> place very
> seldom. If big amount of memory is needed then it is 
> allocated from the end
> of the heap, but if the heap size grows close to the maximum, then the
> exception occurs. Does anybody know if there is a way to force the
> defragmentation to occur more frequently?
> 
> I have stress tested our application Sun JRE 1.2.2, and the 
> OutOfMemoryError
> never occurred.
> 
> With IBM JDK we minimized the occurrences of OutOfMemoryError 
> by setting the
> -Xms64m and -Xmx128m. In this case the garbage collector 
> keeps the heap size
> somewhere between min and max. Example from our log: 86% free
> (92324744/107150328). But if we generate too much load then 
> we still get the
> OutOfMemoryError. But at the moment our application doesn't 
> get so much
> load, so the OutOfMemoryExcpetions are rare.
> 
> Would be very thankful if anybody could confirm/explain my suspicions,
> Tõnu
> 
> > -Original Message-
> > From: Hawkins, Keith (Keith) [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, December 18, 2001 7:34 PM
> > To: [EMAIL PROTECTED]; tomcat-user
> > Subject: Ever increasing heap size with Tomcat 3.2.3 !!!
> > 
> > 
> > 
> > Hello,
> > 
> > Before my manager insists that we switch to JRun,  can any of 
> > the Tomcat
> > developers help with a problem of an ever increasing heap 
> size of the
> > Tomcat java.exe. ??  (We are running Tomcat 3.2.3 and 
> > JRE1.3.1. and the
> > IIS redirector)
> > 
> > We are running a load test using LoadRunner scripts on some JSP and
> > servlets that are running under Tomcat.  The load is not all 
> > that heavy
> > but the heap size of the Tomcat java.exe process keeps growing and
> > growing. We modified the java command line to start with  
> -Xmx128m to
> > allow 128 MB of heap but we still max out after a day or 
> so.   We even
> > modified one of our servlets to create a thread that runs  
> > Runtime.gc()
> > every 30 seconds.   The LoadRunner scripts just keep logging 
> > in the same
> > 5 people via our authentication servlet so you would think 
> memory use
> > would level out at some point.
> > 
> > Nothing we do seems to keep the heap size from growing.  
> > 
> > Are there known issues with Tomcat and heap size??
> > 
> > Doing a web search revealed numerous posts with people 
> having similar
> > problems so I believe there is a problem.   The standard 
> > response these
> > people receive is to increase the heap size via -Xmx   But 
> that seems
> > like a band-aid rather than a real solution.   That just delays the
> > inevitable.
> > 
> > Any insight as to how to keep the Tomcat process from 
> > grabbing more and
> > more memory would be appreciated.
> > 
> > Thanks,
> > Keith
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 
> 
> 

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: Ever increasing heap size with Tomcat 3.2.3 !!!

2001-12-19 Thread Tõnu Põld

Hi

We have a similar problem with IBM JDK 1.3.0 (JIT enabled).
I suggest to debug the garbage collector (gc) by turning on the -verbosegc
command option. The garbage collecting activity will be written to stderr.

In our case I suspect that it is JVM problem because the output shows that
90% heap is free, but still the OutOfMemoryException occurs sometimes. The
exception occurs when the servlet application tries to allocate big amount
of memory (5Mb). Even if we set the -Xmx128m and -Xms128m the error occurs,
although the output shows that there is 90% (115Mb) free space in heap.

I suspect that the OutOfMemoryError occurs because the heap gets too
fragmented, therefore the gc can't allocate big sequential memory area. This
makes me believe that the heap defragmentation process takes place very
seldom. If big amount of memory is needed then it is allocated from the end
of the heap, but if the heap size grows close to the maximum, then the
exception occurs. Does anybody know if there is a way to force the
defragmentation to occur more frequently?

I have stress tested our application Sun JRE 1.2.2, and the OutOfMemoryError
never occurred.

With IBM JDK we minimized the occurrences of OutOfMemoryError by setting the
-Xms64m and -Xmx128m. In this case the garbage collector keeps the heap size
somewhere between min and max. Example from our log: 86% free
(92324744/107150328). But if we generate too much load then we still get the
OutOfMemoryError. But at the moment our application doesn't get so much
load, so the OutOfMemoryExcpetions are rare.

Would be very thankful if anybody could confirm/explain my suspicions,
Tõnu

> -Original Message-
> From: Hawkins, Keith (Keith) [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 18, 2001 7:34 PM
> To: [EMAIL PROTECTED]; tomcat-user
> Subject: Ever increasing heap size with Tomcat 3.2.3 !!!
> 
> 
> 
> Hello,
> 
> Before my manager insists that we switch to JRun,  can any of 
> the Tomcat
> developers help with a problem of an ever increasing heap size of the
> Tomcat java.exe. ??  (We are running Tomcat 3.2.3 and 
> JRE1.3.1. and the
> IIS redirector)
> 
> We are running a load test using LoadRunner scripts on some JSP and
> servlets that are running under Tomcat.  The load is not all 
> that heavy
> but the heap size of the Tomcat java.exe process keeps growing and
> growing. We modified the java command line to start with  -Xmx128m to
> allow 128 MB of heap but we still max out after a day or so.   We even
> modified one of our servlets to create a thread that runs  
> Runtime.gc()
> every 30 seconds.   The LoadRunner scripts just keep logging 
> in the same
> 5 people via our authentication servlet so you would think memory use
> would level out at some point.
> 
> Nothing we do seems to keep the heap size from growing.  
> 
> Are there known issues with Tomcat and heap size??
> 
> Doing a web search revealed numerous posts with people having similar
> problems so I believe there is a problem.   The standard 
> response these
> people receive is to increase the heap size via -Xmx   But that seems
> like a band-aid rather than a real solution.   That just delays the
> inevitable.
> 
> Any insight as to how to keep the Tomcat process from 
> grabbing more and
> more memory would be appreciated.
> 
> Thanks,
> Keith
> 
> 
> 
> 
> 
> 
> 
> 

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: Ever increasing heap size with Tomcat 3.2.3 !!!

2001-12-18 Thread Jeff Kilbride

I believe you need to supply the '-server' switch at startup to the JVM to
be in "server mode". Try dropping that switch, if you're using it.

Personally, I recommend you check out the IBM JDK, too. You can install both
and easily switch between them by modifying your JAVA_HOME environment
variable.

Thanks,
--jeff

- Original Message -
From: "Hawkins, Keith (Keith)" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, December 18, 2001 10:09 AM
Subject: RE: Ever increasing heap size with Tomcat 3.2.3 !!!


> John,
> Thanks for the reply.  How do I tell whether I am using the server JVM
> or
> the client JVM you mentioned?
> Thanks,
> Keith
>
> -Original Message-
> From: John Freeborg [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 18, 2001 1:08 PM
> To: Tomcat Users List
> Subject: RE: Ever increasing heap size with Tomcat 3.2.3 !!!
>
>
> Which JVM are you using?
>
> On Windows 2K w/ SP2 I found that the Sun JDK 1.3.1 server hotspot JVM
> crashed and burned running Tomcat 4.0.1 this way within 24 hours easily.
> A few others emailed me about it also.
>
> Switching to the Sun JDK 1.3.1 client hotspot JVM magically fixed this.
> Now my server runs for weeks without crashing.
>
> Might be the same issue with Tomcat 3.2.3 - try it.  I was going to try
> an IBM JDK also, but never got around to it once I had it working.
>
>  - John
>
> -Original Message-
> From: Randy Layman [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 18, 2001 11:07 AM
> To: Tomcat Users List
> Subject: RE: Ever increasing heap size with Tomcat 3.2.3 !!!
>
>
>
>
> > -Original Message-
> > From: Hawkins, Keith (Keith) [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, December 18, 2001 12:34 PM
> > To: [EMAIL PROTECTED]; tomcat-user
> > Subject: Ever increasing heap size with Tomcat 3.2.3 !!!
> >
> >
> >
> > Are there known issues with Tomcat and heap size??
>
> No.
> >
> > Doing a web search revealed numerous posts with people having similar
> > problems so I believe there is a problem.   The standard
> > response these
> > people receive is to increase the heap size via -Xmx   But that seems
> > like a band-aid rather than a real solution.   That just delays the
> > inevitable.
>
> The problem is always that they are holding onto memory that they don't
> realize they are holding on to, or are expecting to be garbage collected
> but
> can't for whatever reason.
>
> Here are some suggestions on where to look:
> 1.  Don't use class variables in servlets or JSPs
> 2.  Be careful with sessions.  Setting the inactive timeout to
> nothing allows the sessions to stay around until the server is reset,
> and
> sessions last for some time after the last request
> 3.  Understand that it anything has a reference to an object
> (list,
> map, array) then it can't be garbage collected
> 4.  Use a program like OptimizeIT! to find your memory leak
>
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: Ever increasing heap size with Tomcat 3.2.3 !!!

2001-12-18 Thread Hawkins, Keith (Keith)

John,
Thanks for the reply.  How do I tell whether I am using the server JVM
or 
the client JVM you mentioned?  
Thanks,
Keith

-Original Message-
From: John Freeborg [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 1:08 PM
To: Tomcat Users List
Subject: RE: Ever increasing heap size with Tomcat 3.2.3 !!!


Which JVM are you using?

On Windows 2K w/ SP2 I found that the Sun JDK 1.3.1 server hotspot JVM
crashed and burned running Tomcat 4.0.1 this way within 24 hours easily.
A few others emailed me about it also.

Switching to the Sun JDK 1.3.1 client hotspot JVM magically fixed this.
Now my server runs for weeks without crashing.

Might be the same issue with Tomcat 3.2.3 - try it.  I was going to try
an IBM JDK also, but never got around to it once I had it working.

 - John

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 11:07 AM
To: Tomcat Users List
Subject: RE: Ever increasing heap size with Tomcat 3.2.3 !!!




> -Original Message-
> From: Hawkins, Keith (Keith) [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 18, 2001 12:34 PM
> To: [EMAIL PROTECTED]; tomcat-user
> Subject: Ever increasing heap size with Tomcat 3.2.3 !!!
> 
> 
> 
> Are there known issues with Tomcat and heap size??

No.
> 
> Doing a web search revealed numerous posts with people having similar
> problems so I believe there is a problem.   The standard 
> response these
> people receive is to increase the heap size via -Xmx   But that seems
> like a band-aid rather than a real solution.   That just delays the
> inevitable.

The problem is always that they are holding onto memory that they don't
realize they are holding on to, or are expecting to be garbage collected
but
can't for whatever reason.

Here are some suggestions on where to look:
1.  Don't use class variables in servlets or JSPs
2.  Be careful with sessions.  Setting the inactive timeout to
nothing allows the sessions to stay around until the server is reset,
and
sessions last for some time after the last request
3.  Understand that it anything has a reference to an object
(list,
map, array) then it can't be garbage collected
4.  Use a program like OptimizeIT! to find your memory leak


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: Ever increasing heap size with Tomcat 3.2.3 !!!

2001-12-18 Thread John Freeborg

Which JVM are you using?

On Windows 2K w/ SP2 I found that the Sun JDK 1.3.1 server hotspot JVM
crashed and burned running Tomcat 4.0.1 this way within 24 hours easily.
A few others emailed me about it also.

Switching to the Sun JDK 1.3.1 client hotspot JVM magically fixed this.
Now my server runs for weeks without crashing.

Might be the same issue with Tomcat 3.2.3 - try it.  I was going to try
an IBM JDK also, but never got around to it once I had it working.

 - John

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 11:07 AM
To: Tomcat Users List
Subject: RE: Ever increasing heap size with Tomcat 3.2.3 !!!




> -Original Message-
> From: Hawkins, Keith (Keith) [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 18, 2001 12:34 PM
> To: [EMAIL PROTECTED]; tomcat-user
> Subject: Ever increasing heap size with Tomcat 3.2.3 !!!
> 
> 
> 
> Are there known issues with Tomcat and heap size??

No.
> 
> Doing a web search revealed numerous posts with people having similar
> problems so I believe there is a problem.   The standard 
> response these
> people receive is to increase the heap size via -Xmx   But that seems
> like a band-aid rather than a real solution.   That just delays the
> inevitable.

The problem is always that they are holding onto memory that they don't
realize they are holding on to, or are expecting to be garbage collected
but
can't for whatever reason.

Here are some suggestions on where to look:
1.  Don't use class variables in servlets or JSPs
2.  Be careful with sessions.  Setting the inactive timeout to
nothing allows the sessions to stay around until the server is reset,
and
sessions last for some time after the last request
3.  Understand that it anything has a reference to an object
(list,
map, array) then it can't be garbage collected
4.  Use a program like OptimizeIT! to find your memory leak


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: Ever increasing heap size with Tomcat 3.2.3 !!!

2001-12-18 Thread Randy Layman



> -Original Message-
> From: Hawkins, Keith (Keith) [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 18, 2001 12:34 PM
> To: [EMAIL PROTECTED]; tomcat-user
> Subject: Ever increasing heap size with Tomcat 3.2.3 !!!
> 
> 
> 
> Are there known issues with Tomcat and heap size??

No.
> 
> Doing a web search revealed numerous posts with people having similar
> problems so I believe there is a problem.   The standard 
> response these
> people receive is to increase the heap size via -Xmx   But that seems
> like a band-aid rather than a real solution.   That just delays the
> inevitable.

The problem is always that they are holding onto memory that they don't
realize they are holding on to, or are expecting to be garbage collected but
can't for whatever reason.

Here are some suggestions on where to look:
1.  Don't use class variables in servlets or JSPs
2.  Be careful with sessions.  Setting the inactive timeout to
nothing allows the sessions to stay around until the server is reset, and
sessions last for some time after the last request
3.  Understand that it anything has a reference to an object (list,
map, array) then it can't be garbage collected
4.  Use a program like OptimizeIT! to find your memory leak


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Ever increasing heap size with Tomcat 3.2.3 !!!

2001-12-18 Thread Hawkins, Keith (Keith)


Hello,

Before my manager insists that we switch to JRun,  can any of the Tomcat
developers help with a problem of an ever increasing heap size of the
Tomcat java.exe. ??  (We are running Tomcat 3.2.3 and JRE1.3.1. and the
IIS redirector)

We are running a load test using LoadRunner scripts on some JSP and
servlets that are running under Tomcat.  The load is not all that heavy
but the heap size of the Tomcat java.exe process keeps growing and
growing. We modified the java command line to start with  -Xmx128m to
allow 128 MB of heap but we still max out after a day or so.   We even
modified one of our servlets to create a thread that runs  Runtime.gc()
every 30 seconds.   The LoadRunner scripts just keep logging in the same
5 people via our authentication servlet so you would think memory use
would level out at some point.

Nothing we do seems to keep the heap size from growing.  

Are there known issues with Tomcat and heap size??

Doing a web search revealed numerous posts with people having similar
problems so I believe there is a problem.   The standard response these
people receive is to increase the heap size via -Xmx   But that seems
like a band-aid rather than a real solution.   That just delays the
inevitable.

Any insight as to how to keep the Tomcat process from grabbing more and
more memory would be appreciated.

Thanks,
Keith










Re: OutOfMemory - Set Java Heap Size?

2001-08-28 Thread Max Hugen

Thanks Craig.

I'm trying to work out just what I should be doing. 'Fraid I'm rather a
novice here. I've used the top command to see what memory is being used (see
output below), but I'm not sure what to make of it. I can certainly start
the 7th tomcat session on its own, if I don't start the others first, so
tomcat settings are ok, I guess.

If I understand things correctly, each instance of Tomcat starts its own
JVM. The amount of memory each JVM then uses is governed by the starting
memory (eg -Xms64m) and then "it consumes as little memory as possible"
[from Sun site] until, presumably, it reaches the maximum allowable memory,
eg -Xmx256m.

The applications I am running are very small, and I don't imagine that they
would need a great deal of memory at all. The cpu is idle about 80% most of
the time. Does it therefore make sense to use smaller starting memories for
the JVMs, such as -Xms32m? If I'm allowing up to 256m maximum, is that
across all JVMs, or for each one? Does that mean I can then open 256 / 32 =
8 instances???

Sorry I'm asking so many dumb questions, but I'm having trouble finding the
right sort of info on this subject, most of it seems geared towards big
applications, and I think I really need to master this, before I rush out
and buy another server to run only 6 more tiny applications!

Thanks, Max Hugen

>>>>>>>>>>>>The console output of the top command>>>>>>>>>>>>>>>>>>

  9:42am  up 1 day, 14:17,  1 user,  load average: 0.15, 0.06, 0.01
271 processes: 270 sleeping, 1 running, 0 zombie, 0 stopped
CPU states:  2.9% user, 16.3% system,  0.0% nice, 80.6% idle
Mem:  517188K av, 509160K used,   8028K free, 193344K shrd,  75172K buff
Swap: 131536K av,  0K used, 131536K free123504K cached

  PID USER PRI  NI  SIZE  RSS SHARE STAT  LIB %CPU %MEM   TIME COMMAND
30036 admin 15   0  1228 1228   880 R   0 17.1  0.2   0:19 top
 2385 root   1   0 28144  27M  2516 S  48  1.4  5.4   0:01 java
 2347 root   0   0 28144  27M  2516 S  48  0.3  5.4   0:03 java
16308 httpd  0   0  6456 6456  6032 S   0  0.1  1.2   0:00 httpd
1 root   0   0   120  12048 S   0  0.0  0.0   0:04 init
2 root   0   0 00 0 SW  0  0.0  0.0   0:00 kflushd
3 root   0   0 00 0 SW  0  0.0  0.0   0:00 kupdate
4 root   0   0 00 0 SW  0  0.0  0.0   0:00 kpiod
5 root   0   0 00 0 SW  0  0.0  0.0   0:00 kswapd
6 root -20 -20 00 0 SW< 0  0.0  0.0   0:00
mdrecoveryd
   89 root   0   0   300  300   208 S   0  0.0  0.0   0:02 syslogd
   98 root   0   0   416  416 0 S   0  0.0  0.0   0:00 klogd
  649 root   0   0   152  15268 S   0  0.0  0.0   0:00 crond
  661 root   0   0   108  10836 S   0  0.0  0.0   0:00 inetd
  670 root   0   0   160  160 0 S   0  0.0  0.0   0:00 nlservd
  678 root   0   0  3232 3232  2200 S   0  0.0  0.6   0:00 httpd
  713 postgres   0   0   664  664   272 S   0  0.0  0.1   0:01
postmaster

>>>>>>>>>>>>>>>>>end>>>>>>>>>>>>>>>>>>>>>>>>>>>>




- Original Message -
From: Craig R. McClanahan
To: Tomcat Users List ; Max Hugen
Sent: Tuesday, August 28, 2001 1:20 AM
Subject: Re: OutOfMemory - Set Java Heap Size?




On Mon, 27 Aug 2001, Max Hugen wrote:

>
> Unfortunately, I still cannot launch a 7th Tomcat process, and I don't
> understand why not. I feel I'm missing something, but I just can't figure
it
> out. 6 works, but adding a seventh raises the OutOfMemoryError.

Well, have you checked your OS's memory and swap settings yet?  Because
each JVM uses its own completely separate heap space, it's quite easy to
run out of either physical memory or swap space -- once that happens, it
doesn't matter how big you set Java's heap size to be, because the OS
won't be able to satisfy it anyway.

A quick way to check the settings in your 7th setup is to start that one
*alone* on the machine.  If that works, then there's nothing wrong with
your Tomcat settings.  If it's really an OS/memory you'll probably have
this problem with *whichever* JVM you try to start last.

Craig




Re: OutOfMemory - Set Java Heap Size?

2001-08-27 Thread Craig R. McClanahan



On Mon, 27 Aug 2001, Barnabas Yohannes wrote:

> Date: Mon, 27 Aug 2001 10:53:20 -0500
> From: Barnabas Yohannes <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: Re: OutOfMemory - Set Java Heap Size?
>
> Where is this command line to set the maximum heap size located?  Please
> help, I am kind of new to this staff!
>

Command line options for the "java" command are documented in the JDK's
documentation bundle (imagine that :-).  An online pointer to the version
for Solaris (the others are also available, and very similar) is:

  http://java.sun.com/j2se/1.3/docs/tooldocs/solaris/java.html

Craig McClanahan




Re: OutOfMemory - Set Java Heap Size?

2001-08-27 Thread Barnabas Yohannes

Where is this command line to set the maximum heap size located?  Please
help, I am kind of new to this staff!

- Original Message -
From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>; "Max Hugen"
<[EMAIL PROTECTED]>
Sent: Friday, August 24, 2001 10:41 PM
Subject: Re: OutOfMemory - Set Java Heap Size?


> The "java" command line option you want is actually "-Xmx256m" to set the
> maximum heap size.  To set this, you can establish an environment variable
> named TOMCAT_OPTS (Tomcat 3.x) or CATALINA_OPTS (Tomcat 4.x) that contains
> the command line options to be sent to the JVM.  For example:
>
>   export TOMCAT_OPTS="-Xmx256m"
>   $TOMCAT_HOME/bin/tomcat.sh start
>
> Craig McClanahan
>
>
> On Sat, 25 Aug 2001, Max Hugen wrote:
>
> > Date: Sat, 25 Aug 2001 13:00:41 +1000
> > From: Max Hugen <[EMAIL PROTECTED]>
> > Reply-To: [EMAIL PROTECTED], Max Hugen
<[EMAIL PROTECTED]>
> > To: Tomcat Users List <[EMAIL PROTECTED]>
> > Subject: OutOfMemory - Set Java Heap Size?
> >
> > I run Linux/Apache/Tomcat plus Oracle on a server with 512Mb of memory.
I
> > have successfully implemented a couple of Internet applications using
JSP,
> > Servlets (plus Oracle) etc.
> >
> > For each application (and client) I start a new Tomcat session, using a
> > custom server.xml for each one. All was ok, until I tried increasing
Tomcat
> > sessions from 6 to 7, then I received the java.lang.OutOfMemoryError
when
> > starting the Tomcat sessions.
> >
> > I've read through many of the posts on this subject, some of which
suggest
> > to increase the "heap" size. Unfortunately, I'm a newbie to Java (and
Linux
> > and JSP and Oracle ) so I don't know how to either check this heap
size,
> > nor how to permanently set it to a value via a script using a switch
> > like -Xms256m.
> >
> > The script I use to start Tomcat follows, plus the console output. Could
> > anyone advise how to set the heap please?
> >
> >
> > Many thanks,
> >
> > Max Hugen   [EMAIL PROTECTED]
> > Hugen Enterprises Pty Ltd, Sydney, Australia
> > www.hugen.com.au
> > Internet Application Developers
> >
> > >>>>>>>>>Script Start>>>>>>>>
> > echo "Tomcat Startup ~"
> > echo "Start an instance of Tomcat for hugen"
> > /usr/local/tomcat/bin/startup.sh -f /usr/local/tomcat/conf/server_he.xml
> > echo "Start an instance of Tomcat for yass3i"
> > /usr/local/tomcat/bin/startup.sh -f
/usr/local/tomcat/conf/server_yass3i.xml
> > echo "Start an instance of Tomcat for isp"
> > /usr/local/tomcat/bin/startup.sh -f
/usr/local/tomcat/conf/server_isp.xml
> > echo "Start an instance of Tomcat for im2000i"
> > /usr/local/tomcat/bin/startup.sh -f
> > /usr/local/tomcat/conf/server_im2000i.xml
> > echo "Start an instance of Tomcat for secure"
> > /usr/local/tomcat/bin/startup.sh -f
/usr/local/tomcat/conf/server_secure.xml
> > echo "Start an instance of Tomcat for aedo"
> > /usr/local/tomcat/bin/startup.sh -f
/usr/local/tomcat/conf/server_aedo.xml
> > echo "Start an instance of Tomcat for ncap"
> > /usr/local/tomcat/bin/startup.sh -f
/usr/local/tomcat/conf/server_ncap.xml
> > # Give Tomcat time to start before restarting Apache.
> > echo "Waiting 45 secs..."
> > sleep 45
> > # Restart Apache to register Tomcat properly.
> > echo "Restart Apache"
> > /etc/rc.d/init.d/httpd stop
> > /etc/rc.d/init.d/httpd start
> > sleep 2
> > echo "Ok, we should be in business!"
> > >>>>>>>>>Script End>>>>>>>>
> >
> > >>>>>>>>>Console Output Start>>>>>>>>
> > Starting tomcat. Check logs/tomcat.log for error messages
> > Starting tomcat. Check logs/tomcat.log for error messages
> > Starting tomcat. Check logs/tomcat.log for error messages
> > Starting tomcat. Check logs/tomcat.log for error messages
> > Starting tomcat. Check logs/tomcat.log for error messages
> > Starting tomcat. Check logs/tomcat.log for error messages
> > Starting tomcat. Check logs/tomcat.log for error messages
> >
> > Restart Apache
> >
> > Exception in thread "main" java.lang.OutOfMemoryError: unable to create
new
> > native thread
> > at java.lang.Thread.start(Native Method)
> > at

Re: OutOfMemory - Set Java Heap Size?

2001-08-27 Thread Craig R. McClanahan



On Mon, 27 Aug 2001, Max Hugen wrote:

>
> Unfortunately, I still cannot launch a 7th Tomcat process, and I don't
> understand why not. I feel I'm missing something, but I just can't figure it
> out. 6 works, but adding a seventh raises the OutOfMemoryError.

Well, have you checked your OS's memory and swap settings yet?  Because
each JVM uses its own completely separate heap space, it's quite easy to
run out of either physical memory or swap space -- once that happens, it
doesn't matter how big you set Java's heap size to be, because the OS
won't be able to satisfy it anyway.

A quick way to check the settings in your 7th setup is to start that one
*alone* on the machine.  If that works, then there's nothing wrong with
your Tomcat settings.  If it's really an OS/memory you'll probably have
this problem with *whichever* JVM you try to start last.

Craig




Re: OutOfMemory - Set Java Heap Size?

2001-08-26 Thread Max Hugen

Many thanks, Craig, Aravind and Shaun, for your comments. They are most
appreciated.

I set the TOMCAT_OPTS to "-server -Xms64m -Xmx192m" as you suggested
Shaun... I wasn't aware of the HotSpot application, I'm now reading up in
it. Thanks for the tip.

Unfortunately, I still cannot launch a 7th Tomcat process, and I don't
understand why not. I feel I'm missing something, but I just can't figure it
out. 6 works, but adding a seventh raises the OutOfMemoryError.

It does appear from the console output that Tomcat fails when it tries to
start a PoolTCPConnector. I start two connectors for each application (ie,
Tomcat process), one is an Ajp13ConnectionHandler, the second an
Ajp12ConnectionHandler which I understand is required for Tomcat to be
closed down.

I've included one of my server.xml files below, just in case there is a
glaring error in there. There's an xml for each application, they are all
the same except for the different ports I've assigned, and the log and work
file names etc.

Any further suggestions would be most appreciated, I'm have a minor heart
attack at thought of having to buy one server for every 6 small jsp
applications I want to run!


Thanks, Max Hugen






 
 

 

 

 

 

  

  

  
  

  

  
  
  

  
  

  
  

  
  

  
  

  
  

  
  

  
  

  
  

  

  
   
   
  

  
   
   
  


  
  

 





Re: OutOfMemory - Set Java Heap Size?

2001-08-25 Thread Shaun Kalley

When you set the TOMCAT_HOME and JAVA_HOME variables, also set a third 
variable called TOMCAT_OPTS with the value -Xms256m to up your initial heap 
size.  This sets your initial memory allocation for the JVM that Tomcat 
runs from.  I'm running a system with almost identical specs to yours and 
have "TOMCAT_OPTS=-server -Xms64m -Xmx192m".  This swaps the JVM for the 
server version of HotSpot (which is said to be more appropriate for 
persistent applications which don't require an optimized startup), sets the 
base memory allocation to 64Mb, and the maximum memory allocation to 
192Mb.  Oracle uses a huge amount of memory, so you probably don't want to 
set your initial heap size too high.

Also check out http://java.sun.com/docs/hotspot/VMOptions.html to see the 
full set of options you have available for tweaking your virtual machines.

Shaun

At 01:00 PM 8/25/2001 +1000, you wrote:
>I run Linux/Apache/Tomcat plus Oracle on a server with 512Mb of memory. I
>have successfully implemented a couple of Internet applications using JSP,
>Servlets (plus Oracle) etc.
>
>For each application (and client) I start a new Tomcat session, using a
>custom server.xml for each one. All was ok, until I tried increasing Tomcat
>sessions from 6 to 7, then I received the java.lang.OutOfMemoryError when
>starting the Tomcat sessions.
>
>I've read through many of the posts on this subject, some of which suggest
>to increase the "heap" size. Unfortunately, I'm a newbie to Java (and Linux
>and JSP and Oracle ) so I don't know how to either check this heap size,
>nor how to permanently set it to a value via a script using a switch
>like -Xms256m.
>
>The script I use to start Tomcat follows, plus the console output. Could
>anyone advise how to set the heap please?
>
>
>Many thanks,
>
>Max Hugen   [EMAIL PROTECTED]
>Hugen Enterprises Pty Ltd, Sydney, Australia
>www.hugen.com.au
>Internet Application Developers
>
> >>>>>>>>>Script Start>>>>>>>>
>echo "Tomcat Startup ~"
>echo "Start an instance of Tomcat for hugen"
>/usr/local/tomcat/bin/startup.sh -f /usr/local/tomcat/conf/server_he.xml
>echo "Start an instance of Tomcat for yass3i"
>/usr/local/tomcat/bin/startup.sh -f /usr/local/tomcat/conf/server_yass3i.xml
>echo "Start an instance of Tomcat for isp"
>/usr/local/tomcat/bin/startup.sh -f /usr/local/tomcat/conf/server_isp.xml
>echo "Start an instance of Tomcat for im2000i"
>/usr/local/tomcat/bin/startup.sh -f
>/usr/local/tomcat/conf/server_im2000i.xml
>echo "Start an instance of Tomcat for secure"
>/usr/local/tomcat/bin/startup.sh -f /usr/local/tomcat/conf/server_secure.xml
>echo "Start an instance of Tomcat for aedo"
>/usr/local/tomcat/bin/startup.sh -f /usr/local/tomcat/conf/server_aedo.xml
>echo "Start an instance of Tomcat for ncap"
>/usr/local/tomcat/bin/startup.sh -f /usr/local/tomcat/conf/server_ncap.xml
># Give Tomcat time to start before restarting Apache.
>echo "Waiting 45 secs..."
>sleep 45
># Restart Apache to register Tomcat properly.
>echo "Restart Apache"
>/etc/rc.d/init.d/httpd stop
>/etc/rc.d/init.d/httpd start
>sleep 2
>echo "Ok, we should be in business!"
> >>>>>>>>>Script End>>>>>>>>
>
> >>>>>>>>>Console Output Start>>>>>>>>
>Starting tomcat. Check logs/tomcat.log for error messages
>Starting tomcat. Check logs/tomcat.log for error messages
>Starting tomcat. Check logs/tomcat.log for error messages
>Starting tomcat. Check logs/tomcat.log for error messages
>Starting tomcat. Check logs/tomcat.log for error messages
>Starting tomcat. Check logs/tomcat.log for error messages
>Starting tomcat. Check logs/tomcat.log for error messages
>
>Restart Apache
>
>Exception in thread "main" java.lang.OutOfMemoryError: unable to create new
>native thread
> at java.lang.Thread.start(Native Method)
> at
>org.apache.tomcat.util.ThreadPool$ControlRunnable.(ThreadPool.java:465
>)
> at
>org.apache.tomcat.util.ThreadPool.openThreads(ThreadPool.java:360)
> at org.apache.tomcat.util.ThreadPool.start(ThreadPool.java:148)
> at
>org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java
>:245)
> at
>org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java:188)
> at
>org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
> at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
> at org.apache.tomcat.startup.Tomcat.ma

  1   2   >