Samsung / Dexter

Dexter is a static analysis platform to find and remove defects efficiently and immediately during the coding-time.
BSD 2-Clause "Simplified" License
57 stars 33 forks source link

OutOfMemoryError : when analysis massive files(over 570,000 files) #56

Closed Min-Ho-Kim closed 8 years ago

Min-Ho-Kim commented 8 years ago

!ENTRY org.eclipse.core.jobs 4 2 2016-04-15 11:36:59.189 !MESSAGE An internal error occurred during: "Static Analysis...". !STACK 0 java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Unknown Source) at java.lang.AbstractStringBuilder.expandCapacity(Unknown Source) at java.lang.AbstractStringBuilder.ensureCapacityInternal(Unknown Source) at java.lang.AbstractStringBuilder.append(Unknown Source) at java.lang.StringBuilder.append(Unknown Source) at com.samsung.sec.dexter.util.DexterUtilHelper.getContentsFromFile(DexterUtilHelper.java:94) at com.samsung.sec.dexter.util.CppUtil.generatorCodeMetrics(CppUtil.java:107) at com.samsung.sec.dexter.metrics.CodeMetricsGenerator.getCodeMetrics(CodeMetricsGenerator.java:88) at com.samsung.sec.dexter.executor.DexterAnalyzerThread.run(DexterAnalyzerThread.java:83) at com.samsung.sec.dexter.executor.DexterAnalyzer.runSync(DexterAnalyzer.java:88) at com.samsung.sec.dexter.eclipse.ui.analysis.ProjectOrFolderAnalyzer.analysisFile(ProjectOrFolderAnalyzer.java:154) at com.samsung.sec.dexter.eclipse.ui.analysis.ProjectOrFolderAnalyzer.analysisTargetFileList(ProjectOrFolderAnalyzer.java:131) at com.samsung.sec.dexter.eclipse.ui.analysis.ProjectOrFolderAnalyzer.run(ProjectOrFolderAnalyzer.java:68) at com.samsung.sec.dexter.eclipse.ui.RunDexterAnalysisHandler$1.run(RunDexterAnalysisHandler.java:72) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)