Thread: Jdev 11g: Build 5188: WLS On Mac OSX - java.lang.OutOfMemoryError

This question is not answered. Helpful answers available: 5. Correct answers available: 1.


Permlink Replies: 1 - Pages: 1 - Last Post: Jan 5, 2009 9:02 PM Last Post By: Sebastien Pouil...
kenton.ho

Posts: 77
Registered: 06/10/99
Jdev 11g: Build 5188: WLS On Mac OSX - java.lang.OutOfMemoryError
Posted: Dec 11, 2008 6:15 AM
 
Click to report abuse...   Click to reply to this thread Reply
Hi All,

To anyone that is trying to run JDev 11g (5188) on Mac OSX 10.5.5 and you find that you can't start your Embedded WLS because you get:

<Dec 11, 2008 8:39:41 AM EST> <Error> <HTTP> <BEA-101216> <Servlet: "AsyncResponseServiceServlethttps" failed to preload on startup in Web application: "bea_wls9_async_response.war".
java.lang.OutOfMemoryError: PermGen space
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
Truncated. see log file for complete stacktrace

You will probably need to do the following:

1) Edit: ~/.jdeveloper/system11.1.1.0.31.51.88/DefaultDomain/bin/setDomainEnv.sh

And look for:

MEM_MAX_PERM_SIZE="-XX:MaxPermSize=128m"

And replace with:

#MEM_MAX_PERM_SIZE="-XX:MaxPermSize=128m"
MEM_MAX_PERM_SIZE="-XX:MaxPermSize=256m"
export MEM_MAX_PERM_SIZE

USER_MEM_ARGS="${MEM_ARGS} ${MEM_MAX_PERM_SIZE}"
export USER_MEM_ARGS

After you add that, you should be able to startup your Embedded WLS.

Having said this, if you do continue running into java.lang.OutOfMemoryError: PermGen space, you might also need to increase the parameters in MEM_ARGS. If you do change these, also make sure that -Xms and -XX:MaxPermSize have the same size.

I hope this helps!


Kenton

Sebastien Pouil...

Posts: 169
Registered: 07/25/06
Re: Jdev 11g: Build 5188: WLS On Mac OSX - java.lang.OutOfMemoryError
Posted: Jan 5, 2009 9:02 PM   in response to: kenton.ho in response to: kenton.ho
 
Click to report abuse...   Click to reply to this thread Reply
Thanks !
Legend
Guru Guru : 2500 - 1000000 pts
Expert Expert : 1000 - 2499 pts
Pro Pro : 500 - 999 pts
Journeyman Journeyman : 200 - 499 pts
Newbie Newbie : 0 - 199 pts
Oracle ACE Director
Oracle ACE Member
Oracle Employee ACE
Helpful Answer (5 pts)
Correct Answer (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums