Skip to content

Instantly share code, notes, and snippets.

@juven
Created August 27, 2014 02:35
Show Gist options
  • Save juven/1e8d853ef9ca4fa8e850 to your computer and use it in GitHub Desktop.
Save juven/1e8d853ef9ca4fa8e850 to your computer and use it in GitHub Desktop.
maven 3 crash on OutOfMemoryError
mvn version: 3.1.1
crash on:
[WARNING] The POM for com.taobao.sharereport:share-report-common:jar:1.5.1-20121030.080558-17 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for com.taobao.trade:tradeback-client:jar:1.0.0-20131118.063752-35 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[ERROR] GC overhead limit exceeded -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/OutOfMemoryError
gc info:
S0 S1 E O P YGC YGCT FGC FGCT GCT
0.00 0.00 100.00 100.00 78.73 54 13.040 72 401.894 414.934
0.00 0.00 100.00 100.00 78.73 54 13.040 72 401.894 414.934
0.00 0.00 100.00 100.00 78.73 54 13.040 72 401.894 414.934
0.00 0.00 100.00 100.00 78.73 54 13.040 72 401.894 414.934
0.00 0.00 100.00 100.00 78.73 54 13.040 72 401.894 414.934
0.00 0.00 100.00 100.00 78.73 54 13.040 73 407.733 420.773
0.00 0.00 100.00 100.00 78.73 54 13.040 73 407.733 420.773
0.00 0.00 100.00 100.00 78.73 54 13.040 73 407.733 420.773
0.00 0.00 100.00 100.00 78.73 54 13.040 73 407.733 420.773
0.00 0.00 100.00 100.00 78.73 54 13.040 73 407.733 420.773
0.00 0.00 100.00 100.00 78.73 54 13.040 73 407.733 420.773
0.00 0.00 100.00 100.00 78.73 54 13.040 73 407.733 420.773
0.00 0.00 100.00 100.00 78.73 54 13.040 73 407.733 420.773
[admin@v125196168 buy]$ jmap -histo 3432
num #instances #bytes class name
----------------------------------------------
1: 8205018 459481008 org.eclipse.aether.graph.DefaultDependencyNode
2: 10038895 240933480 java.util.ArrayList
3: 10040088 234658744 [Ljava.lang.Object;
4: 3920197 156807880 org.eclipse.aether.internal.impl.DataPool$GraphKey
5: 3986804 127577728 java.util.HashMap$Entry
6: 396464 65380944 [Lorg.eclipse.aether.graph.Exclusion;
7: 375893 63304944 [Ljava.util.HashMap$Entry;
8: 1416224 56648960 java.util.LinkedHashMap$Entry
9: 974885 46794480 org.eclipse.aether.repository.RemoteRepository
10: 973938 33072360 [Lorg.eclipse.aether.repository.RemoteRepository;
11: 973965 23375160 java.util.Arrays$ArrayList
12: 973944 23374656 java.util.Collections$UnmodifiableRandomAccessList
13: 351991 22527424 java.util.LinkedHashMap
14: 341268 8190432 org.eclipse.aether.util.graph.selector.AndDependencySelector
15: 341266 8190384 org.eclipse.aether.util.graph.selector.ExclusionDependencySelector
16: 130114 8117720 [C
17: 298770 7170480 java.util.Collections$SingletonList
18: 341629 5466064 java.util.HashMap$KeySet
19: 341394 5462304 java.util.LinkedHashSet
20: 29050 4226936 <constMethodKlass>
21: 29050 3958080 <methodKlass>
22: 84201 3368040 org.eclipse.aether.artifact.DefaultArtifact
23: 3090 3184120 <constantPoolKlass>
24: 129356 3104544 java.lang.String
25: 85468 2734976 org.eclipse.aether.graph.Dependency
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment