java -Xmx500m -jar jca457.jar
打开看了下,试试 -Xmxcl 参数
Memory Type | # of Segments | Used Memory(bytes) | Used Memory(%) | Free Memory(bytes) | Free Memory(%) | Total Memory(bytes) |
Internal | 190 | 12,328,368 | 99.01 | 123,472 | 0.99 | 12,451,840 |
Object(reserved) | 1 | 1,073,741,824 | 100 | 0 | 0 | 1,073,741,824 |
Class | 8,759 | 117,937,568 | 95.93 | 5,005,912 | 4.07 | 122,943,480 |
JIT Code Cache | 22 | 11,534,336 | 100 | 0 | 0 | 11,534,336 |
JIT Data Cache | 14 | 7,073,664 | 96.37 | 266,368 | 3.63 | 7,340,032 |
Overall | 8,986 | 1,222,615,760 | 99.56 | 5,395,752 | 0.44 | 1,228,011,512 |
NOTE: Only for Java 5.0 Service Refresh 4 (build date:February 1st, 2007) and older. When you use delegated class loaders, the JVM can create a large number of ClassLoader objects. On IBM Java 5.0 Service Refresh 4 and older, the number of class loaders that are permitted is limited to 8192 by default and an OutOfMemoryError exception is thrown when this limit is exceeded. Use the -Xmxcl parameter to increase the number of class loaders allowed to avoid this problem, for example to 25000, by setting -Xmxcl25000, until the problem is resolved.