Will Sterling

Greenhorn
+ Follow
since Dec 01, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Will Sterling

When I add a new webapp occasionally the user will get a out of memory error when trying to access a page that has not been rendered and cached yet. If I restart tomcat it is then able to render the page. The problem seems to be in tomcat trying to render several JSPs at the same time. The servers have 2 Gigs of physical memory but I have not made any changes to the parameters passed to JVM yet so I think it's only using 1 Gig of that.
Any advise on tuning the JVM or other places to look at making changes would appreciated. I have not been able to find much information on configuring tomcat beyond the basics.
Also on a side note. There seems to be a memory leak in tomcat. Every time I restart it does not seem to let go of all the memory it was using. After being up for several months the boxes would get down to less than 500M of memory free and vmstat would show a lot of free dirty memory. Rebooting the box every now and then takes care of it but it's a hassle.
I'm running Tomcat 4.1.18 on RedHat 7.2 using Apache 1.3.26 as a front end connecting to Tomcat with mod_jk. And they are running ~18 webapps
20 years ago
if you want the to get to the html file from / you will need to put it in install dir/webapp/root/ for the root context to be used. The documentation at appache.org is usefull http://jakarta.apache.org/tomcat/tomcat-4.0-doc/index.html alos you may want to read through your server.xml and web.xml configuration files they are commented pretty well to give you a feel for how everything comes together.
20 years ago
I have not made any changes to JAVA_CMD in tomct4.conf so it should be using it's default values. I downloaded the java binary from sun the developer asked for. I didn't know there were different client/server versions.
20 years ago
you will also need to mkae sure it is executable or run it with sh ./startup.sh
20 years ago
I'm running tomcat 4.1 on Red Hat 7.2 with java version "1.4.1_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_02-b06)
Java HotSpot(TM) Client VM (build 1.4.1_02-b06, mixed mode)from Sun. The box has one Gig of memory in it and Tomcat takes up all the available memory on the box until the point that is can no longer serve pages but never uses the one gig of swap available. I have added another gig of physical memory to all the servers so it's no longer a problem right now but I'm afraid as we add more sites it may fill up the 2 gigs and be a problem again. Where should I look to figure out why it is not using the available swap? Oh and other applications running on identical hardware with the OS installed from the same kickstart use swap just fine.
20 years ago