You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Carl Olivier <ca...@zero-one.co.za> on 2004/06/15 15:54:54 UTC
Server Specs
Greetings.
I am hoping someone can give me a helping hand with my query.
I a webserver running:
Windows 2000 Server
Tomcat 5.0.25
Apache 2.0.49
Mod_jk2
J2SDK 1.4.2_01
The server hosts about 80 websites (via name based virtualhosts) with Apache
in front of TC for the SSL and static serving.
The machine is a quad Xeon (2.4Ghz) Dell PowerEdge with 1GB of RAM.
Tomcat currently has 704MB assigned as the max heap size.
The problem I am having is that the mahine runs out of memory every day or
so, and Tomcat has to be restarted. This is clearly not a good thing!
Now, the load on the server is average - nothing spectacular - although some
of the sites do get 50 000+ hits per day.
The sites use JDBC to a MS SQL 2000 server - the SQL Server is on a
differnet machine (similar spec to the web server) on the same 100mb LAN.
40 of the sites are management sites - i.e. thet allow users to manage
content (for the other 40 sites hosted) - the management functions include
image uploading (using commons-fileupload) document uploading, image
manipulation (very limited) etc etc.
Each public site (40 in total) are also accessed once every 5 minutes (the
index page currently) by a product called Servers Alive to ensure the site
is up - if not SMS alerts etc. I am changing that so that SA will access a
servlet whch returns plain text (thus less load).
I have set the server to use the -XX:+UseParallelGC JVM setting.
I have increased the number of maxThreads in both Apache and Tomcat to
Apaches (1920)
I have run 3 differnet profilers on the server - and cannot for the life of
me find a memory leak anywhere.
I have NOT tried to use the fork compile setting in Tomcat (read somewhere
that this is not good in production?)
Is my memory too low? I have just ordered additional RAM (upto 2GB and will
assign 1.5GB to Tomcat). Are there other settings I am missing? Is the
Garbage collector causing the trouble?
I know that this is very subjective situation but I am going completely mad!
I appreciate any feedback and suggestions!
Best regards,
Carl Olivier
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Server Specs
Posted by Jeff Hoffmann <je...@propertykey.com>.
Carl Olivier wrote:
> Windows 2000 Server
> Tomcat 5.0.25
> Apache 2.0.49
> Mod_jk2
> J2SDK 1.4.2_01
> The sites use JDBC to a MS SQL 2000 server
I just noticed that commons-dbcp-1.1 has a memory leak in it
(http://issues.apache.org/bugzilla/show_bug.cgi?id=27465). I believe
that's the version that ships with tomcat-5.0.25. If you're using DBCP
for your database connections, you might want to check that. It's
something I've just stumbled on and I don't know if it has any relation
to anything, but it sounds like it'd be worth looking into.
--
Jeff Hoffmann
jeff@propertykey.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Server Specs
Posted by Woodchuck <wo...@yahoo.com>.
--- Carl Olivier <ca...@zero-one.co.za> wrote:
> Greetings.
>
> I am hoping someone can give me a helping hand with
> my query.
>
> I a webserver running:
>
> Windows 2000 Server
> Tomcat 5.0.25
> Apache 2.0.49
> Mod_jk2
> J2SDK 1.4.2_01
>
> I have NOT tried to use the fork compile setting in
> Tomcat (read somewhere
> that this is not good in production?)
>
you definitely should try forking. the Jasper 2 JSP
Engine (since Tomcat 4.1) is now using Ant to compile
JSP pages, and it is documented that there is a known
memory leak in the internal javac compiler used by
Ant. set fork to true and force ant to use a separate
JVM to build.
__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org