karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (Commented) (JIRA) <j...@apache.org>
Subject [jira] [Commented] (KARAF-996) apache-karaf + http feature spins
Date Wed, 09 Nov 2011 14:55:51 GMT

    [ https://issues.apache.org/jira/browse/KARAF-996?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13147076#comment-13147076
] 

Jean-Baptiste Onofré commented on KARAF-996:
--------------------------------------------

I didn't reproduce the issue (using the provided test case) on Karaf 2.2.4 on my laptop.

I make a try on 2.2.5-SNAPSHOT anyway.
                
> apache-karaf + http feature spins
> ---------------------------------
>
>                 Key: KARAF-996
>                 URL: https://issues.apache.org/jira/browse/KARAF-996
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-features
>    Affects Versions: 2.2.2, 2.2.3, 2.2.4
>         Environment: windows, linux jvm 1.6
>            Reporter: Dan Tran
>            Assignee: Jean-Baptiste Onofré
>            Priority: Critical
>
> When use karaf + http feature as a file download server, karaf can easily spin and an
CPU can go higher than 100+ depending number of CPU you have.
> Similar issue as been posted at at service mix forum ( http://fusesource.com/forums/message.jspa?messageID=10574
)
> For my case, I am using karaf + http feature just to server as a static maven repository,
here are the stop to produce
>   1. Install apache-karaf-2.2+
>   2. User karaf shell to install http feature
>   3. Configure karaf web via etc/org.ops4j.pax.web.cfg
> ##########################################
> # Configuration file for HTTP access.
> ##########################################
> ##########################################
> # Basic HTTP access
> ##########################################
> org.osgi.service.http.enabled=true
> org.osgi.service.http.port=8181
> #########################################
> # Set the location where the repository is located.
> #########################################
> org.ops4j.pax.web.config.file=etc/jetty.xml
>     
>   5. Configure etc/jetty.xml
> <?xml version="1.0"?>
> <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//
> DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">
> <Configure id="FileServer" class="org.eclipse.jetty.server.Server">
>   <Set name="handler">
>     <New class="org.eclipse.jetty.server.handler.HandlerList">
>       <Set name="handlers">
>         <Array type="org.eclipse.jetty.server.Handler">
>           <Item>
>             <New class="org.eclipse.jetty.server.handler.ResourceHandler">
>               <Set name="directoriesListed">true</Set>
>               <Set name="resourceBase"><Property name="jetty.home" default="."
/>/repo</Set>
>             </New>
>           </Item>
>           <Item>
>             <New class="org.eclipse.jetty.server.handler.DefaultHandler">
>             </New>
>           </Item>
>         </Array>
>       </Set>
>     </New>
>   </Set>
> </Configure>
> the spike can occur any time even at idle.  More likely to happen when using is as a
maven repository ( wget a big file can also trigger it )

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message