DO NOT REPLY [Bug 14405] - Tomcat uses 90% of CPU

2004-03-06 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14405.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14405

Tomcat uses 90% of CPU

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WONTFIX



--- Additional Comments From [EMAIL PROTECTED]  2004-03-07 07:17 ---
AJP12 is nolonger actively supported.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 14405] - Tomcat uses 90% of CPU

2002-11-11 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14405.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14405

Tomcat uses 90% of CPU





--- Additional Comments From [EMAIL PROTECTED]  2002-11-11 09:03 ---
It seems to be a problem with your web application.

Could you tell use what it does and use (jdbc connections, kind of SQL database).

Could you try it on another platform with another SDK (ie an IBM SDK) ?

--
To unsubscribe, e-mail:   mailto:tomcat-dev-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org




DO NOT REPLY [Bug 14405] - Tomcat uses 90% of CPU

2002-11-11 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14405.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14405

Tomcat uses 90% of CPU





--- Additional Comments From [EMAIL PROTECTED]  2002-11-11 09:52 ---
Thankx a lot for your prompt response.

Yes..we are using oracle database in solaris 2.8. We do not see any i/o wait or 
swapping. I read a couple of articles in mailing lists. They claim that, mod_jk 
might run into a race condition when tomcat is not able to respond for whatever 
reason.

We are also using mod_jk which was shipped with tomact 3.2.1. We use this for 
tomcat 3.3 with ajp12 protocol.

From the mailing list, i got the following code.

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
}
}
}

I could see ajpv12_handle_response, error writing back to server in the 
mod_jk logs. 

My question is :
- At what condition this will run into a race condition
- Do we need to upgrade to mod_jk that is shipped with tomcat 3.3
- What causes this error to happen?

--
To unsubscribe, e-mail:   mailto:tomcat-dev-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org




Re: DO NOT REPLY [Bug 14405] - Tomcat uses 90% of CPU

2002-11-11 Thread Henri Gomez
[EMAIL PROTECTED] wrote:

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14405.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14405

Tomcat uses 90% of CPU





--- Additional Comments From [EMAIL PROTECTED]  2002-11-11 09:53 ---
Please have a look at the following link to know more about the mod_jk bug.

http://marc.theaimsgroup.com/?l=tomcat-userm=99112351628144w=2

--
To unsubscribe, e-mail:   mailto:tomcat-dev-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org



ajp12 is deprecated and you should consider switching to ajp13


--
To unsubscribe, e-mail:   mailto:tomcat-dev-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org




DO NOT REPLY [Bug 14405] - Tomcat uses 90% of CPU

2002-11-09 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14405.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14405

Tomcat uses 90% of CPU





--- Additional Comments From [EMAIL PROTECTED]  2002-11-09 08:00 ---
It's in the directory that Tomcat was started from (assuming that the user that 
Tomcat is running under has write-permissions to that directory).  I think that 
under the Sun JVM, it goes to stderr otherwise.  The kill -3 doesn't actually 
kill the JVM, it just tells it to dump the javacore file that says what it is 
doing at that particular moment.

--
To unsubscribe, e-mail:   mailto:tomcat-dev-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org




DO NOT REPLY [Bug 14405] - Tomcat uses 90% of CPU

2002-11-08 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14405.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14405

Tomcat uses 90% of CPU





--- Additional Comments From [EMAIL PROTECTED]  2002-11-09 06:30 ---
At a guess, it is either GC or JIT kicking in (the second should be considered 
normal, and is the most likely if leaving the machine alone, the load drops and 
stays down).  If it is a persistant GC problem, then you'll likely have to 
review your webapp code.

Without more information (e.g. a test case), this is likely to get marked as 
INVALID once there is a release plan for 3.3.2.

--
To unsubscribe, e-mail:   mailto:tomcat-dev-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org




DO NOT REPLY [Bug 14405] - Tomcat uses 90% of CPU

2002-11-08 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14405.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14405

Tomcat uses 90% of CPU





--- Additional Comments From [EMAIL PROTECTED]  2002-11-09 06:35 ---
GC is not a problem in our case. I tried with -verbose:gc option. Its not 
taking much time. We have set the following parameters

-XX:PermSize=64M -xms:256Mb -xmx:778Mb. All these parameters are used by JVM 
hotspot and moreover we run tomcat in -server mode of JVM.

We considered resizing heap size also. But didn't help much. We don't have a 
exact test case as to reproduce the problem

--
To unsubscribe, e-mail:   mailto:tomcat-dev-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org




DO NOT REPLY [Bug 14405] - Tomcat uses 90% of CPU

2002-11-08 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14405.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14405

Tomcat uses 90% of CPU





--- Additional Comments From [EMAIL PROTECTED]  2002-11-09 07:04 ---
As I've hinted before, I've seen spikes in usage shortly after restarting on 
Solaris systems due to hotspot's JIT.  In my case, it is usually  20min, but 
your mileage may vary depending on what your webapp does.  

Without a test case, my best advice is to leave it up for at least 30min when 
this happens.  If the load doesn't drop, then do a kill -3 `cat 
$TOMCAT_HOME/logs/tomcat.pid` and post the javacore file as an attachment to 
this bug.

--
To unsubscribe, e-mail:   mailto:tomcat-dev-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org




DO NOT REPLY [Bug 14405] - Tomcat uses 90% of CPU

2002-11-08 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14405.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14405

Tomcat uses 90% of CPU





--- Additional Comments From [EMAIL PROTECTED]  2002-11-09 07:27 ---
Sorry about this silly question.

i did a 'ps -ef | grep java' and found out the process id of tomcat and after 
that i ran  kill -3 'pid of tomcat' . It didn't create a coredump. And also 
it didn't kill the java process. Where will the coredump file would be 
generated?. It would be great if you could guide me on this.

--
To unsubscribe, e-mail:   mailto:tomcat-dev-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-dev-help;jakarta.apache.org