learn java
The moose likes BEA/Weblogic and the fly likes Appc out of memory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Appc out of memory" Watch "Appc out of memory" New topic

Appc out of memory

Adri Smith
Ranch Hand

Joined: Jun 07, 2004
Posts: 76
HI all,

I am actually facing a big issue with appc. When I compile my ejb module containing 50 cmps whit JBuilder at the last step it runs appc and it raises an error message: "The system is out of resources". Does anyone have an idea how to resolve this issue ?

I have tried to manually launch appc (before I compiled it with JBuilder) and extends the memory allocated with the options -Xms and -Xmx of the Java command and then I have got an IOException !

Thanks in advance,
Carol Enderlin
Ranch Hand

Joined: Oct 10, 2000
Posts: 1364
Can you give us more details about the IOException you got?
Marcos Maia
Ranch Hand

Joined: Jan 06, 2001
Posts: 977

how much memory do you have on your PC?

Adri Smith
Ranch Hand

Joined: Jun 07, 2004
Posts: 76
First thank you to try to resolve my problem.

I actually have 1Gb of RAM. This is definitely enough. Here under is the stacktrace:

java.io.IOException: CreateProcess: c:\dev\java\bea\jdk142_05\javac -classpath C:\dev\java\bea\jdk142_05\jre\lib\rt.jar;C:\dev\java\bea\jdk142_05\jre\lib\i18n.jar;C:\dev\java\bea\jdk142_05\jre\lib\sunrsasign.jar;C:\dev\java\bea\jdk142_05\jre\lib\jsse.jar;C:\dev\java\bea\jdk142_05\jre\lib\jce.jar;C:\dev\java\bea\jdk142_05\jre\lib\charsets.jar;C:\dev\java\bea\jdk142_05\jre\classes;C:\dev\java\bea\weblogic81\server\bin;C:\dev\java\j2sdk1.4.2\lib;C:\dev\java\j2sdkee1.3.1\lib\j2ee.jar;C:\dev\database\db2\SQLLIB\java\db2java.zip;C:\dev\database\db2\SQLLIB\java\db2jcc.jar;C:\dev\ database\db2\SQLLIB\java\db2jcc_license_cu.jar;C:\dev\database\db2\SQLLIB\BIN;C:\dev\database\db2\SQLLIB\java\Common.jar;C:\dev\database\db2\SQLLIB\java\sqlj.zip;C:\dev\java\bea\weblogic81\server\lib\weblogic_sp.jar;C:\dev\java\bea\weblogic81\server\lib\weblogic.jar;C:\dev\java\bea\weblogic81\server\lib\wlcipher.jar;C:\dev\java\bea\weblogic81\server\lib\xmlx.jar;C:\dev\java\bea\weblogic81\server\lib\ojdbc14.jar;C:\dev\java\bea\weblogic81\server\lib\jconn2.jar;C:?
at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process.<init>(Win32Process.java:66)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Runtime.java:566)
at java.lang.Runtime.exec(Runtime.java:491)
at java.lang.Runtime.exec(Runtime.java:457)
at weblogic.utils.Executable.exec(Executable.java:227)
at weblogic.utils.Executable.exec(Executable.java:156)
at weblogic.utils.Executable.exec(Executable.java:142)
at weblogic.utils.compiler.CompilerInvoker.execCompiler(CompilerInvoker.java:249)
at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:427)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:328)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:336)
at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:270)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:387)
at weblogic.appc.compileEJB(appc.java:802)
at weblogic.appc.compileEJB(appc.java:776)
at weblogic.appc.compileInput(appc.java:463)
at weblogic.appc.runBody(appc.java:184)
at weblogic.utils.compiler.Tool.run(Tool.java:192)
at weblogic.utils.compiler.Tool.run(Tool.java:147)
at weblogic.appc.main(appc.java:1030)
Exec failed .. exiting

Carol Enderlin
Ranch Hand

Joined: Oct 10, 2000
Posts: 1364
Did you search the BEA Forums?

I found some suggestions over there.

Check JVM in use:
If this is on windows check you are running the weblogic jvm, not the windows one;
check the PATH, and the JAVA_HOME.

Run ant task rather than java task:
Follow up-- I noticed that in our build file we were building our ejbs
through a java task which invoked weblogic.ejbc, rather than using the
ejbc ant task; I initially modified it to invoke appc in the same way.
When I changed the build file to use the wlappc ant task, the project
was built successfully. Can anyone explain this difference in behavior
to me?
Adri Smith
Ranch Hand

Joined: Jun 07, 2004
Posts: 76
I finally found a solution to my problem. I actually run appc with the JVM provided by Weblogic (JRockit). There is an option in JBUilder regarding the configuration of the application server Weblogic that allows you to use a special server compiler for appc.

Thanks a lot for your help and I hope this could be helpful for others who will read our posts.

I agree. Here's the link: http://aspose.com/file-tools
subject: Appc out of memory