Performance problems with tc4.0.4 and custom tags
Hello, We try to upgrade our setup from tomcat3.2.1/jdk1.2 to tomcat4.0.4/jdk1.4. There were some major performance problems on our jsp Pages that use 100+ custom tags. I've already read some other threads adressing this problem. But I wonder why tomcat3.2 with jasper1 does not have any problems, but tomcat4. Any ideas? Has anyone experiences with using tomcat4.0.4/jasper2 in a productive environment? Is it stable enough? Thanks in advance, Timo Carl -- Timo Carl Technik Programmierung travelchannel GmbH Kehrwieder 8 D-20457 Hamburg Telefon +49/40/38617-275 Telefax +49/40/38617-330 http://www.travelchannel.de - das neue Reisen -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: AW: Performance problems with tc4.0.4 and custom tags
Es schrieb Ralph Einfeldt: AFAIK the main error is in the jdk 1.3 and 1.4. jasper2 just contains (beside other changes) a workaround for this bugs. Have a look at this links: (Require login) http://developer.java.sun.com/developer/bugParade/bugs/4414162.html http://developer.java.sun.com/developer/bugParade/bugs/4697245.html I can acknowledge these bug reports. I've seen a significantly higher memory usage. Additionally, the compiled jsp needs up to 20 sec to come up. On jdk1.2 it came up within 1 second. So, what do you propose me to do: - wait for tc4.1 release (when can we exspect it: July,August or more?) - play around with jasper2 on production system - start with jdk1.2 and tomcat4.0 I'm a little bit confused what to decide now. Timo -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: lb-problem with mod_jk: high cpu load on apache when tomcat breaks down
The problem has been seen on both, ajp13 and ajp12. We use tomcat-3.2.1. What do think about using mod_jserv again? What kind of quality has the T3.3 cvs mod_jk? Is it possible to use it in a productive environment? Greetings, Timo GOMEZ Henri wrote: Could you tell us if you're using ajp12 or ajp13 ? The latest mod_jk in TC 3.3 cvs handle correctly the case were on Tomcat failed or has been restarted begin:vcard n:Carl;Timo tel;fax:++49/40/3703-7759 tel;work:++49/40/3703-7275 x-mozilla-html:FALSE url:http://www.travelchannel.de org:G+J travelchannel;Technik version:2.1 email;internet:[EMAIL PROTECTED] adr;quoted-printable:;;Am Baumwall 11=0D=0AD-20459 Hamburg fn:Timo Carl end:vcard
Re: lb-problem with mod_jk: high cpu load on apache when tomcat breaks down
I'm still waiting for the same answer as you do, for the high CPU request of mod_jk... Yes, so I do. I did not find any article or post about that problem. So I did not check out mod_jserv. Before tomcat, we use jserv without problems. I think, we will give mod_jserv a chance. It seems to be a lifelock in mod_jk, because tomcat accepts the connection, but is not able to reply. I think its that while-loop in mod_jk: static int ajpv12_handle_response(ajp12_endpoint_t *p, jk_ws_service_t *s, jk_logger_t *l) { while(1) { unsigned to_read = READ_BUF_SIZE; unsigned acc = 0; char *buf = NULL; if(!jk_sb_read(p-sb, buf, to_read, acc)) { jk_log(l, JK_LOG_ERROR, ajpv12_handle_response, error reading from \n); return JK_FALSE; } if(!acc) { jk_log(l, JK_LOG_DEBUG, ajpv12_handle_response, response body is done\n); break; } if(write_to_ws) { if(!s-write(s, buf, acc)) { jk_log(l, JK_LOG_ERROR, ajpv12_handle_response, error writing back to server\n); write_to_ws = JK_FALSE;HERE } } } --- what do you think? Greetings, Timo Guido Medina wrote: Yesd, I had, I changed to mod_jserv, I'm still waiting for the same answer as you do, for the high CPU request of mod_jk... Guido. - Original Message - From: Timo Carl [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 23, 2001 10:37 AM Subject: lb-problem with mod_jk: high cpu load on apache when tomcat breaks down Hello tomcat-users, We are having a problem with mod_jk and load balancing. Does anyone else have had similar problems with that kind of architecture setup? Our System: === Alteon switch (round robin) | | three Apache 1.3.19 on three SPARC-Servers (called s1,s2,s3)(3 CPU, 3 GB) | |each: mod_jk with lb (in case of s1: 1*s1,0.001*s2,0.001*s3) | | | two tomcats-3.2.1 on each server (jdk1.2.2, native threads, -Xms50M -Xoss4M -Xss4M -Xmx600M) We chose this architecture because the alteon is not able to perform session tracking properly. The Problem: On startup, the system works fine. Each java-Process has about 1-8% CPU load. After one day or so, one tomcat takes 40% CPU load or more. I think the reason is inside our applications. But thats not the error I want to post: After the error of a tomcat, the httpd-processes on EACH Server begin to take a lot of CPU time (8-30% each). In server-status I can see that the processes are waiting for a response of that tomcat. Of course I want to have a fault tolerance, but when I have a problem with one server, the other servers go down too. Did/Does anyone have the same problem and/or a similar system architecture? Maybe anyone solved that problem? Greetings and thanks in advance, Timo Carl -- Timo Carl Technik Programmierung travelchannel GmbH Kehrwieder 8 D-20457 Hamburg Telefon +49/40/38617-275 Telefax +49/40/38617-330 http://www.travelchannel.de - das neue Reisen begin:vcard n:Carl;Timo tel;fax:++49/40/3703-7759 tel;work:++49/40/3703-7275 x-mozilla-html:FALSE url:http://www.travelchannel.de org:G+J travelchannel;Technik version:2.1 email;internet:[EMAIL PROTECTED] adr;quoted-printable:;;Am Baumwall 11=0D=0AD-20459 Hamburg fn:Timo Carl end:vcard
lb-problem with mod_jk: high cpu load on apache when tomcat breaks down
Hello tomcat-users, We are having a problem with mod_jk and load balancing. Does anyone else have had similar problems with that kind of architecture setup? Our System: === Alteon switch (round robin) | | three Apache 1.3.19 on three SPARC-Servers (called s1,s2,s3)(3 CPU, 3 GB) | |each: mod_jk with lb (in case of s1: 1*s1,0.001*s2,0.001*s3) | | | two tomcats-3.2.1 on each server (jdk1.2.2, native threads, -Xms50M -Xoss4M -Xss4M -Xmx600M) We chose this architecture because the alteon is not able to perform session tracking properly. The Problem: On startup, the system works fine. Each java-Process has about 1-8% CPU load. After one day or so, one tomcat takes 40% CPU load or more. I think the reason is inside our applications. But thats not the error I want to post: After the error of a tomcat, the httpd-processes on EACH Server begin to take a lot of CPU time (8-30% each). In server-status I can see that the processes are waiting for a response of that tomcat. Of course I want to have a fault tolerance, but when I have a problem with one server, the other servers go down too. Did/Does anyone have the same problem and/or a similar system architecture? Maybe anyone solved that problem? Greetings and thanks in advance, Timo Carl begin:vcard n:Carl;Timo tel;fax:++49/40/3703-7759 tel;work:++49/40/3703-7275 x-mozilla-html:FALSE url:http://www.travelchannel.de org:G+J travelchannel;Technik version:2.1 email;internet:[EMAIL PROTECTED] adr;quoted-printable:;;Am Baumwall 11=0D=0AD-20459 Hamburg fn:Timo Carl end:vcard