Karaf
  1. Karaf
  2. KARAF-996

apache-karaf + http feature spins

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Not a Problem
    • Affects Version/s: 2.2.2, 2.2.3, 2.2.4
    • Fix Version/s: None
    • Component/s: karaf-feature
    • Labels:
      None
    • Environment:

      windows, linux jvm 1.6

      Description

      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

      ##########################################

      1. Configuration file for HTTP access.
        ##########################################

      ##########################################

      1. Basic HTTP access
        ##########################################
        org.osgi.service.http.enabled=true
        org.osgi.service.http.port=8181

      #########################################

      1. 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 )

        Issue Links

          Activity

            People

            • Assignee:
              Achim Nierbeck
              Reporter:
              Dan Tran
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development