0
我下載了Parsemis程序。這是從Java創建的頻繁的子圖挖掘程序。我在parsemis中使用的數據非常大。Java顯示錯誤java.lang.OutOfMemoryError
我嘗試在Windows10中運行java parsemis通過添加-Xmx4096M它顯示這樣的錯誤。這個問題的原因是什麼?如何解決它?
java -Xmx4096M -jar parsemis-2008-12-01.jar --graphFile=graph_all.lg --outputFile=output.lg --minimumFrequency=10%
它顯示這樣的錯誤。
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at de.parsemis.graph.HPListGraph.<init>(HPListGraph.java:207)
at de.parsemis.graph.HPListGraph.clone(HPListGraph.java:378)
at de.parsemis.graph.HPListGraph.clone(HPListGraph.java:41)
at de.parsemis.algorithms.gSpan.RightMostExtension.add(RightMostExtension.java:110)
at de.parsemis.algorithms.gSpan.RightMostExtension.extend(RightMostExtension.java:213)
at de.parsemis.algorithms.gSpan.RightMostExtension.call(RightMostExtension.java:150)
at de.parsemis.miner.chain.GenerationStep.call(GenerationStep.java:94)
at de.parsemis.algorithms.gSpan.GSpanGeneration.call(GSpanGeneration.java:101)
at de.parsemis.algorithms.gSpan.GSpanGeneration.searchEmbeddings(GSpanGeneration.java:210)
at de.parsemis.algorithms.gSpan.GSpanGeneration.searchEmbeddings(GSpanGeneration.java:213)
at de.parsemis.algorithms.gSpan.GSpanGeneration.searchEmbeddings(GSpanGeneration.java:213)
at de.parsemis.algorithms.gSpan.GSpanGeneration.searchEmbeddings(GSpanGeneration.java:187)
at de.parsemis.algorithms.gSpan.GSpanGeneration.searchEmbeddings(GSpanGeneration.java:213)
at de.parsemis.algorithms.gSpan.GSpanGeneration.searchEmbeddings(GSpanGeneration.java:213)
at de.parsemis.algorithms.gSpan.GSpanGeneration.searchEmbeddings(GSpanGeneration.java:187)
at de.parsemis.algorithms.gSpan.GSpanGeneration.searchEmbeddings(GSpanGeneration.java:187)
at de.parsemis.algorithms.gSpan.GSpanGeneration.searchEmbeddings(GSpanGeneration.java:213)
at de.parsemis.algorithms.gSpan.GSpanGeneration.searchEmbeddings(GSpanGeneration.java:187)
at de.parsemis.algorithms.gSpan.GSpanGeneration.searchEmbeddings(GSpanGeneration.java:213)
at de.parsemis.algorithms.gSpan.GSpanGeneration.searchEmbeddings(GSpanGeneration.java:187)
at de.parsemis.algorithms.gSpan.GSpanGeneration.searchEmbeddings(GSpanGeneration.java:213)
at de.parsemis.algorithms.gSpan.GSpanGeneration.searchEmbeddings(GSpanGeneration.java:187)
at de.parsemis.algorithms.gSpan.GSpanGeneration.searchEmbeddings(GSpanGeneration.java:213)
at de.parsemis.algorithms.gSpan.GSpanGeneration.searchEmbeddings(GSpanGeneration.java:213)
at de.parsemis.algorithms.gSpan.GSpanGeneration.searchEmbeddings(GSpanGeneration.java:213)
at de.parsemis.algorithms.gSpan.GSpanGeneration.searchEmbeddings(GSpanGeneration.java:213)
at de.parsemis.algorithms.gSpan.GSpanGeneration.searchEmbeddings(GSpanGeneration.java:213)
at de.parsemis.algorithms.gSpan.GSpanGeneration.searchEmbeddings(GSpanGeneration.java:213)
at de.parsemis.algorithms.gSpan.GSpanGeneration.searchEmbeddings(GSpanGeneration.java:187)
at de.parsemis.algorithms.gSpan.GSpanGeneration.searchEmbeddings(GSpanGeneration.java:213)
at de.parsemis.algorithms.gSpan.GSpanGeneration.searchEmbeddings(GSpanGeneration.java:213)
at de.parsemis.algorithms.gSpan.GSpanGeneration.searchEmbeddings(GSpanGeneration.java:213)
你的電腦需要更多內存? –
嘗試使用較低的Xmx值,例如2048. – Maverick
以前的評論可能都是正確的。但你需要硬數據。我會分析它 – efekctive