You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Pa...@groupe-asten.fr on 2002/10/28 17:52:22 UTC

Réf. : Re: TOMCAT memory usage : how to manageand benchmark ?

Grrrr...

Always the same problem!

I tried in the tomcat.conf script :

JAVACMD="$JAVA_HOME/bin/java -Xms128m -Xmx256m"

or in the dtomcat4 :

JAVA_OPTS=" -server -Xms128m -Xmx256m"

--> The memory used by my tomcat reach 300 MO or more with 0 user
connected...

Why ?

what is the goog hard config for 500 concurrent users on the same tomcat
server ?

Thanks.



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Réf. : Re: TOMCAT memory usage : how to manage and benchmark ?

Posted by Pier Fumagalli <pi...@betaversion.org>.
"Henri Gomez" <hg...@apache.org> wrote:
> Patrice.Boucher@groupe-asten.fr wrote:
>
>> what is the goog hard config for 500 concurrent users on the same tomcat
>> server ?
> 
> It depend on your application, but I'll recommand a least 3 fast Intel
> based linux boxes, with about 512Mo of RAM, and in front an Apache
> 1.3/2.0 box + mod_jk.

Or just one Sun dual 440 UltraSparc IIi, 1 Gb/ram, Solaris 8 and some tweaks
(all in one box). That's our config, and that's roughly our traffic (ok,
maybe 300/400 concurrent request).

Henri's right... Depends on what your webapp has to do, though...

    Pier


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Réf. : Re: TOMCAT memory usage : how to manage and benchmark ?

Posted by Henri Gomez <hg...@apache.org>.
Patrice.Boucher@groupe-asten.fr wrote:
> Grrrr...
> 
> Always the same problem!
> 
> I tried in the tomcat.conf script :
> 
> JAVACMD="$JAVA_HOME/bin/java -Xms128m -Xmx256m"
> 
> or in the dtomcat4 :
> 
> JAVA_OPTS=" -server -Xms128m -Xmx256m"
> 
> --> The memory used by my tomcat reach 300 MO or more with 0 user
> connected...
> 
> Why ?

It may be :

- your application init stage

- admin/manager (remove them if you don't need them)

> what is the goog hard config for 500 concurrent users on the same tomcat
> server ?

It depend on your application, but I'll recommand a least 3 fast Intel 
based linux boxes, with about 512Mo of RAM, and in front an Apache 
1.3/2.0 box + mod_jk.

But it depend really on what your application is doing...




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: TOMCAT memory usage : how to manage and benchmark ?

Posted by Denis Benoit <be...@sympatico.ca>.
On Mon, 28 Oct 2002 Patrice.Boucher@groupe-asten.fr wrote:

> JAVA_OPTS=" -server -Xms128m -Xmx256m"
> 
> --> The memory used by my tomcat reach 300 MO or more with 0 user
> connected...

The memory usage of the process is not the total of the memory of all
the threads.  Take ONE thread memory usage (in top for example), this
is the memory usage of your process.  You can confirm this output
with a call to Runtime.getRuntime().totalMemory().

-- 
Denis Benoit


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>