You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Simon Funnell <si...@gmail.com> on 2019/04/24 20:46:00 UTC

Memory Usage

Hi,

I am looking at running a small ecommerce site with about 40-80 users at a
time on a virtual private server with 4 cores and 1GB of memory, I am
planning on running apache james, mysql and tomcat on this instance. My
question is will 256MB maximum heap memory with say 50 threads be enough to
handle the load without any out of memory errors?

Thanks.

Re: Memory Usage

Posted by Mark Thomas <ma...@apache.org>.
On 24/04/2019 21:46, Simon Funnell wrote:
> Hi,
> 
> I am looking at running a small ecommerce site with about 40-80 users at a
> time on a virtual private server with 4 cores and 1GB of memory, I am
> planning on running apache james, mysql and tomcat on this instance. My
> question is will 256MB maximum heap memory with say 50 threads be enough to
> handle the load without any out of memory errors?

No idea.

I've seen apps with 6GB heap fail with OOME with only 5 concurrent users
and other apps serve 1000s of users with a few hundred MB.

It all depends on the app and we can't see you code. Load testing and
profiling are strongly recommended.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org