Where to find Tomcat RPMs?
Hello I cannot find any more rpm packets for Tomcat installation. I usually found them at http://jakarta.apache.org I've got 4.1.24. Is there any newer rpms for Tomcat 4.x, maybe for Tomcat 5.x? rpm are more suitable for our use than tar. Thanks Jens Ove
Re: How to tune Tomcat and Java?
Thanks for reply! Got it! To show all threads, type H in top in Linux. Then we see that java is multi-threaded, and uses all CPUs. But still, Tomcat and java seems to be the bottleneck in our system. I tried to make java use more memory, but with no luck. I tried with: in /usr/bin/dtomcat4: CATALINA_OPTS="-Xmx300M -Xms100M $CATALINA_OPTS $JPDA_OPTS" But this made no difference to the memory consumption or the performance. When starting Tomcat, it uses less than 100M. MySQL uses only a fraction of CPU compared with java, and there are several SQL queries in every page of the web publishing system. Is there any way to increase the preformance of Tomcat and java without tuning the application (=the Java Server Pages)? Thanks. Jens Ove - Original Message - From: "Frode E. Moe" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]>; "Jens Ove Lillegraven" <[EMAIL PROTECTED]> Sent: Thursday, November 13, 2003 3:27 PM Subject: Re: How to tune Tomcat and Java? > On Thu, Nov 13, 2003 at 15:17:53 +0100, Jens Ove Lillegraven wrote: > > As you see, there's only one Java service on CPU 0, and MySQL is running on both CPUs. > > Any explanation for this? > > Apparently RedHat Linux 8.0 and above only shows the main thread by > default. > > See http://www.redhat.com/docs/manuals/linux/RHL-8.0-Manual/release-notes/x86/ > > If you use "ps -m", all threads should be displayed. > > (I'm currently on a Debian machine, so I can't confirm if this works) > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to tune Tomcat and Java?
0,1 0:00 0 bash 6369 mysql 25 0 101M 101M 2576 S 0,0 8,0 0:00 1 mysqld 6385 mysql 25 0 101M 101M 2576 S 0,0 8,0 0:00 1 mysqld As you see, there's only one Java service on CPU 0, and MySQL is running on both CPUs. Any explanation for this? The web application running is a web publishing system based on web contents stored in a MySQL database. So there's lots of SQL queries, but fron the info above, java seems to be the bottleneck in the system. Any help to increase the performance is appreciated. Thanks Jens Ove - Original Message - From: "Peter Guyatt" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]>; "Jens Ove Lillegraven" <[EMAIL PROTECTED]> Sent: Wednesday, November 12, 2003 4:31 PM Subject: RE: How to tune Tomcat and Java? > Hi There > > sorry sent the last one before it was ready ;-) > > Java and Tomcat are both multi-threaded applications. So they are both > using more than one CPU (if available). > > If it is using 50% of one processor then it is using 100% CPU on that > processor, since its 50% of the actual processing capacity. > > Check for an infinate loop without a sleep in your code, especially if you > are attempting to connect a client socket to a server since linux does not > wait before throwing an exception. > > Thanks > > Pete > > -Original Message- > From: Jens Ove Lillegraven [mailto:[EMAIL PROTECTED] > Sent: 12 November 2003 15:17 > To: [EMAIL PROTECTED] > Subject: How to tune Tomcat and Java? > > > Hi, > > We have a problem in that the Tomcat (java) process is the bottleneck and is > using only one CPU. > There will be high load on the server when it is put online, so we are > stress testing it offline now. Using the top command in Linux during the > stress test, it seems that java is the bottleneck of the system. But it uses > not 100%, but about 45-50% of one CPU. We get no http error, the page > performance (pages pr. second) is just getting worse as we put on more > stress load. The max memory consumption is set to 300M, but I've never seen > java using more than 111M. I suppose the throughput would have increased if > both CPUs could be used, but is Java (Tomcat) a single processor > application? The network throughput has a maximum average of 500kbps > (kilo-bits) during the stress test, and should manage much more. > Anyone who know how to make java and Tomcat performing better? > > Details of hardware and innstalled applications: > Compaq ProLiant 6000, 2 x PII Xeon 400MHz, 1,3GB RAM > Red Hat Linux Enterprise 3 ES > J2EE: j2sdkee-1_3_1-linux > J2SE: j2sdk-1_4_2_02-linux-i586 > Tomcat: 4.1.24 > MySQL: 4.0.16 > > Tuning Tomcat memory (done): > in /usr/bin/dtomcat4: > CATALINA_OPTS="-Xmx300M -Xms100M $CATALINA_OPTS $JPDA_OPTS" > > MySQL has been tuned, and is running very well. > > Thanks > Jens Ove > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED]
How to tune Tomcat and Java?
Hi, We have a problem in that the Tomcat (java) process is the bottleneck and is using only one CPU. There will be high load on the server when it is put online, so we are stress testing it offline now. Using the top command in Linux during the stress test, it seems that java is the bottleneck of the system. But it uses not 100%, but about 45-50% of one CPU. We get no http error, the page performance (pages pr. second) is just getting worse as we put on more stress load. The max memory consumption is set to 300M, but I've never seen java using more than 111M. I suppose the throughput would have increased if both CPUs could be used, but is Java (Tomcat) a single processor application? The network throughput has a maximum average of 500kbps (kilo-bits) during the stress test, and should manage much more. Anyone who know how to make java and Tomcat performing better? Details of hardware and innstalled applications: Compaq ProLiant 6000, 2 x PII Xeon 400MHz, 1,3GB RAM Red Hat Linux Enterprise 3 ES J2EE: j2sdkee-1_3_1-linux J2SE: j2sdk-1_4_2_02-linux-i586 Tomcat: 4.1.24 MySQL: 4.0.16 Tuning Tomcat memory (done): in /usr/bin/dtomcat4: CATALINA_OPTS="-Xmx300M -Xms100M $CATALINA_OPTS $JPDA_OPTS" MySQL has been tuned, and is running very well. Thanks Jens Ove - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]