You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2015/02/26 09:05:05 UTC

[jira] [Commented] (KARAF-3565) Latest change on feature bundle resolver raise GC overhead limit exceeded

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

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

I tried the feature installation outside of the test (in Karaf directly):

{code}
karaf@root()> feature:install -v pax-cdi-web-weld 
Adding features: pax-cdi-web-weld/[0.12.0.SNAPSHOT,0.12.0.SNAPSHOT]
No deployment change.
Stopping bundles:
  org.ops4j.pax.swissbox.tracker / 1.8.0
  org.ops4j.pax.swissbox.lifecycle / 1.8.0
  org.ops4j.pax.swissbox.core / 1.8.0
  org.ops4j.base / 1.5.0
  org.jboss.weld.osgi-bundle / 1.2.0.Beta1
  org.apache.geronimo.specs.geronimo-interceptor_1.1_spec / 1.0.0
  org.eclipse.jdt.core.compiler.batch / 3.10.0.v20140604-1726
  org.apache.geronimo.specs.geronimo-jta_1.1_spec / 1.1.1
  org.apache.geronimo.specs.geronimo-jaspic_1.0_spec / 1.1.0
  javax.mail / 1.4.4
  org.apache.xbean.finder / 4.1.0
  org.apache.xbean.bundleutils / 4.1.0
Exception in thread "Karaf Lock Monitor Thread" Exception in thread "pool-13-thread-1" Exception in thread "pool-11-thread-1" java.lang.OutOfMemoryError: GC overhead limit exceeded
        at java.lang.StringCoding.encode(StringCoding.java:338)
        at java.lang.String.getBytes(String.java:916)
        at java.io.UnixFileSystem.getBooleanAttributes0(Native Method)
        at java.io.UnixFileSystem.getBooleanAttributes(UnixFileSystem.java:242)
        at java.io.File.exists(File.java:813)
        at org.apache.karaf.main.lock.SimpleFileLock.isAlive(SimpleFileLock.java:85)
        at org.apache.karaf.main.Main.doMonitor(Main.java:332)
        at org.apache.karaf.main.Main.access$100(Main.java:72)
        at org.apache.karaf.main.Main$2.run(Main.java:311)
java.lang.OutOfMemoryError: GC overhead limit exceeded
        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.addConditionWaiter(AbstractQueuedSynchronizer.java:1857)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2073)
        at java.util.concurrent.LinkedBlockingDeque.pollFirst(LinkedBlockingDeque.java:519)
        at java.util.concurrent.LinkedBlockingDeque.poll(LinkedBlockingDeque.java:682)
        at sun.nio.fs.AbstractWatchService.poll(AbstractWatchService.java:108)
        at org.apache.karaf.jaas.modules.properties.AutoEncryptionSupport.run(AutoEncryptionSupport.java:78)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
java.lang.OutOfMemoryError: GC overhead limit exceeded
        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.addConditionWaiter(AbstractQueuedSynchronizer.java:1857)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2073)
        at java.util.concurrent.LinkedBlockingDeque.pollFirst(LinkedBlockingDeque.java:519)
        at java.util.concurrent.LinkedBlockingDeque.poll(LinkedBlockingDeque.java:682)
        at sun.nio.fs.AbstractWatchService.poll(AbstractWatchService.java:108)
        at org.apache.karaf.jaas.modules.properties.AutoEncryptionSupport.run(AutoEncryptionSupport.java:78)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
Error executing command: GC overhead limit exceeded
{code}

> Latest change on feature bundle resolver raise GC overhead limit exceeded
> -------------------------------------------------------------------------
>
>                 Key: KARAF-3565
>                 URL: https://issues.apache.org/jira/browse/KARAF-3565
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-feature
>    Affects Versions: 4.0.0
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 4.0.0
>
>
> The latest changes on the feature resolver introduced itest failure on PaxCdi and Spring3 features test:
> {code}
> TEST-org.apache.karaf.itests.features.PaxCdiFeaturesTest.xml:23:00:48,087 | ERROR | org.apache.karaf.itests.KarafTestWatcher           | >>>>>> FAILED: installPaxCdiWebWeldFeature(org.apache.karaf.itests.features.PaxCdiFeaturesTest) , cause: GC overhead limit exceeded
> TEST-org.apache.karaf.itests.features.Spring3FeaturesTest.xml:22:53:47,758 | ERROR | org.apache.karaf.itests.KarafTestWatcher           | >>>>>> FAILED: installSpringSecurityFeature(org.apache.karaf.itests.features.Spring3FeaturesTest) , cause: GC overhead limit exceeded
> {code}
> In details, it's caused by:
> {code}
> java.lang.OutOfMemoryError: GC overhead limit exceeded
>         at org.apache.felix.framework.resolver.Candidates.copy(Candidates.java:996)
>         at org.apache.felix.framework.resolver.ResolverImpl.checkPackageSpaceConsistency(ResolverImpl.java:1097)
>         at org.apache.felix.framework.resolver.ResolverImpl.checkPackageSpaceConsistency(ResolverImpl.java:1203)
>         at org.apache.felix.framework.resolver.ResolverImpl.resolve(ResolverImpl.java:192)
>         at org.apache.felix.framework.StatefulResolver.resolve(StatefulResolver.java:412)
>         at org.apache.felix.framework.Felix.resolveBundles(Felix.java:4052)
>         at org.apache.felix.framework.FrameworkWiringImpl.resolveBundles(FrameworkWiringImpl.java:133)
>         at org.apache.karaf.features.internal.service.FeaturesServiceImpl.resolveBundles(FeaturesServiceImpl.java:1218)
>         at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:765)
>         at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1040)
>         at org.apache.karaf.features.internal.service.FeaturesServiceImpl$1.call(FeaturesServiceImpl.java:941)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>         at java.lang.Thread.run(Thread.java:745)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)