我正在运行以下脚本来启动我的bea weblogic workshow 8.1.4,研讨会正常启动并且运行良好
C:\ bea \ weblogic81 \ workshop
C:\ bea \ jdk142_05 \ bin \ javaw.exe
-XX:-UseThreadPriorities -Xmx512m -Xms512m -Xss256k-客户端-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提供内存参数。
给我建议...
最佳答案
修改-Xmx
参数以为进程提供更多的内存,例如-Xmx=2G
允许Java使用2 GB的内存。根据需要进行调整。