Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » adjusting heap size for Tomcat in WTP
adjusting heap size for Tomcat in WTP [message #148180] Tue, 22 November 2005 03:34 Go to next message
Noel Bush is currently offline Noel BushFriend
Messages: 38
Registered: July 2009
Member
I am trying to figure out how to adjust the heap size when Tomcat is
started within the WTP. I can't find any notes anywhere about how to do
this. If I look at the system process list when a Tomcat instance is
running, I can see that there is a command line like:

/usr/lib/jvm/java-1.5.0-sun-1.5.0.05/bin/java
-Dcatalina.base=/home/noel/workspace/.metadata/.plugins/org. eclipse.wst.server.core/tmp0
-Dcatalina.home=/usr/local/tomcat5
-Djava.endorsed.dirs=/usr/local/tomcat5/common/endorsed -classpath
/usr/local/tomcat5/bin/bootstrap.jar:/usr/lib/jvm/java-1.5.0 -sun-1.5.0.05/lib/tools.jar
org.apache.catalina.startup.Bootstrap start

....and from what I've dug up about this "Bootstrap" class, I should be
able to pass it vmargs like Xms and Xmx, but I don't see where I would
enter those arguments anywhere in the world of WTP.

I can't be the only one who needs to do this. Have I overlooked
something simple?

TIA,
Noel
Re: adjusting heap size for Tomcat in WTP [message #148206 is a reply to message #148180] Tue, 22 November 2005 08:50 Go to previous messageGo to next message
Darryl Miles is currently offline Darryl MilesFriend
Messages: 123
Registered: July 2009
Senior Member
Server -> Open

Open Launch Configuration -> Arguments tab

Under VM Arguments, add:

-Xms128M -Xmx512M



Check out "java -X" from the command line.


Noel Bush wrote:
> I am trying to figure out how to adjust the heap size when Tomcat is
> started within the WTP. I can't find any notes anywhere about how to do
> this. If I look at the system process list when a Tomcat instance is
> running, I can see that there is a command line like:
>
> /usr/lib/jvm/java-1.5.0-sun-1.5.0.05/bin/java
> -Dcatalina.base=/home/noel/workspace/.metadata/.plugins/org. eclipse.wst.server.core/tmp0
> -Dcatalina.home=/usr/local/tomcat5
> -Djava.endorsed.dirs=/usr/local/tomcat5/common/endorsed -classpath
> /usr/local/tomcat5/bin/bootstrap.jar:/usr/lib/jvm/java-1.5.0 -sun-1.5.0.05/lib/tools.jar
> org.apache.catalina.startup.Bootstrap start
>
> ...and from what I've dug up about this "Bootstrap" class, I should be
> able to pass it vmargs like Xms and Xmx, but I don't see where I would
> enter those arguments anywhere in the world of WTP.
>
> I can't be the only one who needs to do this. Have I overlooked
> something simple?
>
> TIA,
> Noel
Re: adjusting heap size for Tomcat in WTP [message #148237 is a reply to message #148206] Tue, 22 November 2005 15:59 Go to previous message
Noel Bush is currently offline Noel BushFriend
Messages: 38
Registered: July 2009
Member
Darryl L. Miles wrote:
>
> Server -> Open
>
> Open Launch Configuration -> Arguments tab
>
> Under VM Arguments, add:
>
> -Xms128M -Xmx512M

Thanks! That was simple enough.
Previous Topic:Run on Server
Next Topic:java Web service setters
Goto Forum:
  


Current Time: Sun Nov 03 12:11:30 GMT 2024

Powered by FUDForum. Page generated in 0.03295 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top