You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2009/05/01 13:09:34 UTC

DO NOT REPLY [Bug 47133] New: Reloading web application causes CPU usage to spike when using AIO

https://issues.apache.org/bugzilla/show_bug.cgi?id=47133

           Summary: Reloading web application causes CPU usage to spike
                    when using AIO
           Product: Tomcat 6
           Version: 6.0.18
          Platform: PC
        OS/Version: Windows Vista
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Connectors
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: kenneth.gendron@gmail.com


Created an attachment (id=23568)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=23568)
Web Application

When using Tomcat 6 with Advanced IO the CPU usage will go to 100% under the
following sequence of events:

1) Start Tomcat
2) "Reload" AIO-Enabled Web Application from Tomcat Web Application Manager
page
3) Open Web Application
4) Terminate Web Application in middle of a request (i.e. Close Browser or
issue an XMLHttpRequest.abort()).

Once this is done the CPU will jump dramatically.

I have attached a NetBeans project that shows this phenomenon.  When viewing
the index.jsp file, just click the "End" button.

It should be noted that CPU usage remains normal if the web application is
first undeployed then deployed again.  CPU usage will only spike if the web
application is explicitly reloaded.

Thanks,

Ken

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


DO NOT REPLY [Bug 47133] Reloading web application causes CPU usage to spike when using AIO

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47133


Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME




--- Comment #2 from Mark Thomas <ma...@apache.org>  2009-05-02 17:36:37 PST ---
Tested with 6.0.18, 6.0.x and trunk with native/APR (1.1.16) and NIO with JDK
1.6.0_13_x64 on WinXP 64-bit and I can't reproduce this.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


DO NOT REPLY [Bug 47133] Reloading web application causes CPU usage to spike when using AIO

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47133





--- Comment #1 from Kenneth Gendron <ke...@gmail.com>  2009-05-01 04:39:37 PST ---
After further investigation CPU usage will spike if "Stop", "Reload" or
"Undeploy" is used from the manager while an active AIO request is being
processed by the container and that request gets terminated.  Even if the web
application were to be redeployed it will not prevent CPU from spiking.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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