我正在运行以下脚本来启动我的bea weblogic工作秀8.1.4,工作坊正常启动并且运行良好
C:\ BEA \ weblogic81 \车间 C:\ BEA \ jdk142_05 \ BIN \ javaw.exe的 -XX:-UseThreadPriorities -Xmx512m -Xms512m -Xss256k -client -Dbpelexport.java.home =“C:\ bea10.3 \ jdk160_05 \” -Dsun.io.useCanonCaches = false -Dsun.java2d.noddraw = true -Dsun.java2d.d3d = false -Djava.system.class.loader =“workshop.core.AppClassLoader” -cp“C:\ bea \ weblogic81 \ workshop \ wlw-ide.jar” workshop.core.Workshop
But when i start exporting my process(means these lines come in picture -Dbpelexport.java.home="C:\bea10.3\jdk160_05\") I am getting following error
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2760)
at java.util.Arrays.copyOf(Arrays.java:2734)
at java.util.ArrayList.ensureCapacity(ArrayList.java:167)
at java.util.ArrayList.add(ArrayList.java:351)
at javelin.SourceBuffer.read(SourceBuffer.java:123)
at javelin.SourceBuffer.getReader(SourceBuffer.java:63)
at javelin.SourceFile.getBufferedReader(SourceFile.java:378)
at javelin.SourceFile.getReader(SourceFile.java:405)
at javelin.SourceNode.getReader(SourceNode.java:221)
at javelin.java.JavaCompiler$Parser.parse(JavaCompiler.java:77)
at javelin.work.WorkParse._parseNode(WorkParse.java:224)
at javelin.work.WorkParse.parse(WorkParse.java:156)
at javelin.work.WorkParse.run(WorkParse.java:91)
at javelin.threading.WorkList.runItem(WorkList.java:500)
at javelin.threading.WorkItem.ensureComplete(WorkItem.java:103)
at javelin.work.WorkCompile.run(WorkCompile.java:69)
at javelin.threading.WorkList.runItem(WorkList.java:500)
at javelin.threading.WorkList$WorkerThread.run(WorkList.java:292)
我的系统有3 GB的RAM。
有什么方法可以在同一个脚本中为jdk1.6 java.exe提供内存参数。
建议我......
答案 0 :(得分:4)
修改-Xmx
参数以为进程提供更多内存,例如-Xmx=2G
以允许Java使用2 GB内存。根据需要进行调整。