-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.OutOfMemoryError: unable to create new native thread #36
Comments
Which version of ELK do you use? |
I used an earlier version of ELK. But the same error occurred when I tried the latest version of ELK(elk-distribution-0.4.3-owlapi-library.zip) and with the parameters: -Xmx2G -Xss1024m. The following is the error information: |
Thanks for your report! I am not sure how to diagnose this. |
@JieyingChenChen do you still have this problem or it has been resolved? If so, could you, please, comment what you did to prevent it? |
@ykazakov and @JieyingChenChen, I am still experiencing randomly occurring java.lang.OutOfMemoryError error. But whenever this happens it just brings down my entire application. Here is the typical error I find: "SEVERE: The web application [/neuroMorphoReview] appears to have started a thread named [elk-reasoner-thread-2] but has failed to stop it. This is very likely to create a memory leak." Seem like every request I make, it is spawning some 12 threads, which are not being freed, and over time when it hits the cap, which is a default setting controlled by the tomcat container it is bringing down the application, and i see this error: "Exception in thread "http-bio-8080-exec-21905" java.lang.OutOfMemoryError: unable to create new native thread"
Any thoughts on how to trace and fix this problem will be of great help! Thank you, |
@spolavar |
I am trying to use ELK by owlapi on a server(Linux russell 3.2.0-4-amd64 #1 SMP Debian 3.2.73-2+deb7u2 x86_64).
--java version "1.8.0_66"
--the ontology I test is snomed CT
The reasoner crashes with the error:
Exception in thread "main" java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start0(Native Method)
at java.lang.Thread.start(Thread.java:714)
at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:950)
at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1357)
at org.semanticweb.elk.util.concurrent.computation.ComputationExecutor.start(ComputationExecutor.java:120)
at org.semanticweb.elk.util.concurrent.computation.ConcurrentComputation.start(ConcurrentComputation.java:127)
at org.semanticweb.elk.reasoner.ReasonerComputation.process(ReasonerComputation.java:90)
at org.semanticweb.elk.reasoner.stages.PropertyReflexivityComputationStage.executeStage(PropertyReflexivityComputationStage.java:58)
at org.semanticweb.elk.reasoner.stages.AbstractReasonerStage.execute(AbstractReasonerStage.java:184)
at org.semanticweb.elk.reasoner.stages.PropertyReflexivityComputationStage.execute(PropertyReflexivityComputationStage.java:28)
at org.semanticweb.elk.reasoner.stages.LoggingStageExecutor.execute(LoggingStageExecutor.java:53)
at org.semanticweb.elk.reasoner.stages.AbstractStageExecutor.complete(AbstractStageExecutor.java:53)
at org.semanticweb.elk.reasoner.stages.AbstractStageExecutor.complete(AbstractStageExecutor.java:47)
at org.semanticweb.elk.reasoner.stages.AbstractStageExecutor.complete(AbstractStageExecutor.java:47)
at org.semanticweb.elk.reasoner.stages.AbstractStageExecutor.complete(AbstractStageExecutor.java:47)
at org.semanticweb.elk.reasoner.stages.AbstractReasonerState.isInconsistent(AbstractReasonerState.java:341)
at org.semanticweb.elk.reasoner.stages.AbstractReasonerState.getTaxonomy(AbstractReasonerState.java:383)
at org.semanticweb.elk.reasoner.Reasoner.getTaxonomyNode(Reasoner.java:259)
at org.semanticweb.elk.reasoner.Reasoner.getEquivalentClasses(Reasoner.java:356)
at org.semanticweb.elk.owlapi.ElkReasoner.getEquivalentClasses(ElkReasoner.java:465)
I run the code by using the parameters: -Xmx6G -Xss1024m -Xss1024k
The text was updated successfully, but these errors were encountered: