- This topic has 18 replies, 4 voices, and was last updated 15 years, 9 months ago by
Loyal Water.
-
AuthorPosts
-
tallapureddyMemberHi,
I configured WebLogic 10.3 to MyEclipse7.5. I am getting OutOfMemoryError: PermGen space error while creating Queue’s and Topics in WebLogic 10.3 by calling ant.
If I create Queue’s and Topics manually by calling WLST everything works fine. I tried incresing the PermGen value till 1000 Mb, even it didn’t help. I have requirement to use Sun JDK and not JRocket.
Below are the logs, appreciate for any quick reply.
[echo] Configure JMS…
dropping E:\Installations\bea\jdk160_05\lib\null from path as it doesn’t exist
dropping E:\System\oracle\product.2.0\db_1\java\db2java.zip from path as it doesn’t exist
dropping E:\System\oracle\product.2.0\db_1\java\db2jcc.jar from path as it doesn’t exist
dropping E:\Installations\bea\jdk160_05\lib\null from path as it doesn’t exist
dropping E:\System\oracle\product.2.0\db_1\java\db2java.zip from path as it doesn’t exist
dropping E:\System\oracle\product.2.0\db_1\java\db2jcc.jar from path as it doesn’t exist
[java] Executing ‘E:\Installations\bea\jdk160_05\jre\bin\java.exe’ with arguments:
[java] ‘-classpath’
[java] ‘E:\Installations\bea\wlserver_10.3\server\lib\weblogic.jar;E:\Installations\Workspace2\ChordiantEAR\lib\jxcore.jar;E:\Installations\Workspace2\ChordiantEAR\lib\qrst.jar;E:\Installations\Workspace2\ChordiantEAR\lib\jxe.jar’
[java] ‘weblogic.WLST’
[java] ‘-loadProperties’
[java] ‘tmp_input.props’
[java] ‘./chrd_jms_creation.py’
[java]
[java] The ‘ characters around the executable and arguments are
[java] not part of the command.
dropping E:\Installations\bea\jdk160_05\lib\null from path as it doesn’t exist
dropping E:\System\oracle\product.2.0\db_1\java\db2java.zip from path as it doesn’t exist
dropping E:\System\oracle\product.2.0\db_1\java\db2jcc.jar from path as it doesn’t exist
dropping E:\Installations\bea\jdk160_05\lib\null from path as it doesn’t exist
dropping E:\System\oracle\product.2.0\db_1\java\db2java.zip from path as it doesn’t exist
dropping E:\System\oracle\product.2.0\db_1\java\db2jcc.jar from path as it doesn’t exist[java] Initializing WebLogic Scripting Tool (WLST) …
[java] Welcome to WebLogic Server Administration Scripting Shell
[java] Type help() for help on available commands
[java] Starting weblogic server …
[java] WLST-WLS-1248692319957: <Jul 27, 2009 4:28:41 PM IST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 10.0-b19 from Sun Microsystems Inc.>
[java] WLST-WLS-1248692319957: <Jul 27, 2009 4:28:42 PM IST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3 Fri Jul 25 16:30:05 EDT 2008 1137967 >
[java] WLST-WLS-1248692319957: <Jul 27, 2009 4:28:44 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
[java] WLST-WLS-1248692319957: <Jul 27, 2009 4:28:44 PM IST> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
[java] WLST-WLS-1248692319957: <Jul 27, 2009 4:28:45 PM IST> <Notice> <Log Management> <BEA-170019> <The server log file E:\Installations\Workspace2\Servers\servers\SRV-epc-sainathp-wxp\logs\SRV-epc-sainathp-wxp.log is opened. All server side log events will be written to this file.>
[java] WLST-WLS-1248692319957: <Jul 27, 2009 4:28:46 PM IST> <Error> <Socket> <BEA-000438> <Unable to load performance pack. Using Java I/O instead. Please ensure that wlntio.dll is in: ‘E:\Installations\bea\jdk160_05\jre\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;E:\Installations\bea\jdk160_05\bin;E:\Installations\ant165\bin;C:\Program Files\Common Files\NetSarang;E:\System\oracle\product\OracleDataIntegrator\OraHome_1\oracledq\tsq11r0s\Software;C:\bea\jdk150_04\bin1;E:\System\IBM\WebSphere\AppServer\java\bin1;E:\System\IBM\SDP70\jdk\bin;E:\System\IBM\SDP70\jdk\lib;E:\System\IBM\SDP70\jdk\jre\bin;E:\System\IBM\SDP70\jdk\jre\lib;C:\Java\jdk1.5.0_12\bin;E:\System\oracle\product.2.0\db_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;E:\System\UNIX\MKSNT;E:\System\IBM\SDP70\runtimes\base_v61\java\bin;C:\Program Files\Samsung\Samsung PC Studio 3\;E:\System\Maven2.0.7\bin;E:\System\HSQL\hsqldb\bin;E:\System\IBM\WebSphere\AppServer\java\bin;C:\Ant1.6.2\bin;E:\System\JProbe7.0.2\bin;C:\DB2\SQLLIB\BIN;C:\DB2\SQLLIB\FUNCTION;C:\DB2\SQLLIB\SAMPLES\REPL;C:\Program Files\QuickTime\QTSystem\’
[java] WLST-WLS-1248692319957: >
[java] ..WLST-WLS-1248692319957: <Jul 27, 2009 4:28:58 PM IST> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
[java] ..WLST-WLS-1248692319957: <Jul 27, 2009 4:29:04 PM IST> <Warning> <HTTP> <BEA-101296> <Unable to load the default compiler class “com.sun.tools.javac.Main”. Using the default javac compiler to compile JSPs.>
[java] WLST-WLS-1248692319957: <Jul 27, 2009 4:29:04 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
[java] WLST-WLS-1248692319957: <Jul 27, 2009 4:29:04 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
[java] WLST-WLS-1248692319957: <Jul 27, 2009 4:29:05 PM IST> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.>
[java] WLST-WLS-1248692319957: <Jul 27, 2009 4:29:06 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
[java] WLST-WLS-1248692319957: <Jul 27, 2009 4:29:06 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
[java] WLST-WLS-1248692319957: <Jul 27, 2009 4:29:06 PM IST> <Notice> <Server> <BEA-002613> <Channel “Default” is now listening on 127.0.0.1:80 for protocols iiop, t3, ldap, snmp, http.>
[java] WLST-WLS-1248692319957: <Jul 27, 2009 4:29:06 PM IST> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server “SRV-epc-sainathp-wxp” for domain “Servers” running in Development Mode>
[java] WLST-WLS-1248692319957: <Jul 27, 2009 4:29:06 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
[java] WLST-WLS-1248692319957: <Jul 27, 2009 4:29:06 PM IST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
[java] Server started successfully.
[java] Connecting to t3://localhost:80 with userid system …
[java] Successfully connected to Admin Server ‘SRV-epc-sainathp-wxp’ that belongs to domain ‘Servers’.[java] Warning: An insecure protocol was used to connect to the
[java] server. To ensure on-the-wire security, the SSL port or
[java] Admin port should be used instead.[java] Location changed to edit tree. This is a writable tree with
[java] DomainMBean as the root. To make changes you will need to start
[java] an edit session via startEdit().[java] For more help, use help(edit)
[java] Starting an edit session …
[java] Started edit session, please be sure to save and activate your
[java] changes once you are done.
[java] MBean type FileStore with name chrdjmsfilestorage has been created successfully.
[java] MBean type JMSServer with name FoundationJMSServer has been created successfully.
[java] MBean type JMSSystemResource with name ChrdJMSSystemResource has been created successfully.
[java] Creating Queue Connection Factory…
[java] Queue Connection Factory Created…
[java] Saving all your changes …
[java] Saved all your changes successfully.
[java] Activating all your changes, this may take a while …
[java] The edit lock associated with this edit session is released
[java] once the activation is completed.
[java] Activation completed
[java] Already in Edit Tree[java] Starting an edit session …
[java] Started edit session, please be sure to save and activate your
[java] changes once you are done.
[java] Creating Queues…
[java] Queues Created…
[java] Saving all your changes …
[java] Saved all your changes successfully.
[java] Activating all your changes, this may take a while …
[java] The edit lock associated with this edit session is released
[java] once the activation is completed.
[java] WLST-WLS-1248692319957: <Jul 27, 2009 4:31:24 PM IST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID ‘1248692482208’ for task ‘weblogic.deploy.configChangeTask.1’. Error is: ‘java.lang.OutOfMemoryError: PermGen space’
[java] WLST-WLS-1248692319957: java.lang.OutOfMemoryError: PermGen space
[java] WLST-WLS-1248692319957: at java.lang.ClassLoader.defineClass1(Native Method)
[java] WLST-WLS-1248692319957: at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
[java] WLST-WLS-1248692319957: at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
[java] WLST-WLS-1248692319957: at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
[java] WLST-WLS-1248692319957: at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
[java] WLST-WLS-1248692319957: Truncated. see log file for complete stacktrace
[java] WLST-WLS-1248692319957: java.lang.OutOfMemoryError: PermGen space
[java] WLST-WLS-1248692319957: at java.lang.ClassLoader.defineClass1(Native Method)
[java] WLST-WLS-1248692319957: at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
[java] WLST-WLS-1248692319957: at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
[java] WLST-WLS-1248692319957: at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
[java] WLST-WLS-1248692319957: at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
[java] WLST-WLS-1248692319957: Truncated. see log file for complete stacktrace
[java] WLST-WLS-1248692319957: >
[java] WLST-WLS-1248692319957: <Jul 27, 2009 4:31:24 PM IST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating redeploy task for application ‘ChrdJMSSystemResource’.>
[java] WLST-WLS-1248692319957: <Jul 27, 2009 4:31:24 PM IST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
[java] WLST-WLS-1248692319957: java.lang.OutOfMemoryError: PermGen space
[java] WLST-WLS-1248692319957: at java.lang.ClassLoader.defineClass1(Native Method)
[java] WLST-WLS-1248692319957: at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
[java] WLST-WLS-1248692319957: at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
[java] WLST-WLS-1248692319957: at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
[java] WLST-WLS-1248692319957: at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
[java] WLST-WLS-1248692319957: Truncated. see log file for complete stacktrace
[java] WLST-WLS-1248692319957: java.lang.OutOfMemoryError: PermGen space
[java] WLST-WLS-1248692319957: at java.lang.ClassLoader.defineClass1(Native Method)
[java] WLST-WLS-1248692319957: at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
[java] WLST-WLS-1248692319957: at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
[java] WLST-WLS-1248692319957: at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
[java] WLST-WLS-1248692319957: at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
[java] WLST-WLS-1248692319957: Truncated. see log file for complete stacktrace
[java] WLST-WLS-1248692319957: >
[java] This Exception occurred at Mon Jul 27 16:31:24 IST 2009.
[java] weblogic.application.WrappedDeploymentException: PermGen space
[java] at java.lang.ClassLoader.defineClass1(Native Method)
[java] at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
[java] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
[java] at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
[java] at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
[java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
[java] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
[java] at java.lang.ClassLoader.defineClass1(Native Method)
[java] at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
[java] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
[java] at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
[java] at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
[java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
[java] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
[java] at weblogic.j2ee.descriptor.wl.JMSBeanImpl$SchemaHelper2.getSchemaHelper(JMSBeanImpl.java:3450)
[java] at weblogic.application.descriptor.BasicMunger2._onStartElement(BasicMunger2.java:519)
[java] at weblogic.application.descriptor.BasicMunger2.next(BasicMunger2.java:455)
[java] at weblogic.application.descriptor.VersionMunger._next(VersionMunger.java:317)
[java] at weblogic.application.descriptor.VersionMunger.next(VersionMunger.java:207)
[java] at weblogic.application.descriptor.VersionMunger.consumeInputStream(VersionMunger.java:460)
[java] at weblogic.application.descriptor.VersionMunger.init(VersionMunger.java:403)
[java] Done JMS configuration.~Naresh
support-shaliniMemberNaresh,
Can you give more information on this?
1. What are your installation details? You can get them from MyEclipse > Installation Summary > Installation Details?
2. Can you copy paste the contents of myeclipse.ini file, located at your installation dir?Going over the net I came across the following links that explain the cause and solution to the problem.
1.http://www.brokenbuild.com/blog/2008/01/29/the-what-and-why-of-fixing-javalangoutofmemoryerror-permgen-space/
2. http://www.jroller.com/agileanswers/entry/preventing_java_s_java_langI would also recommend you to place the following under windows > preferences > MyEclipse Enterprise Workbench > Servers > Weblogic > Weblogic 10.x > JDK > Optional Java VM arguments and check if that works for you
-Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=48m -XX:MaxPermSize=128m -Xverify:none -da
tallapureddyMemberHi Shalini,
Thanks for the reply.
As requested below are the installation detials. Please note that I have incresed the permgen space memory, even it didn’t help.
*** Date:
Tuesday, July 28, 2009 1:52:39 PM IST** System properties:
OS=WindowsXP
OS version=5.1
Java version=1.6.0_05*** MyEclipse details:
MyEclipse Enterprise Workbench
Version: 5.5.1 GA
Build id: 20070521-5.5.1-GA*** Eclipse details:
MyEclipse Enterprise WorkbenchVersion: 5.5.1 GA
Build id: 20070521-5.5.1-GAEclipse Project SDK
Version: 3.2.2.r322_v20070104-dCGKm0Ln38lm-8s
Build id: M20070212-1330Eclipse Plug-in Development Environment
Version: 3.2.1.r321_v20060823-6vYLLdQ3Nk8DrFG
Build id: M20070212-1330Eclipse Platform
Version: 3.2.2.r322_v20070119-RQghndJN8IM0MsK
Build id: M20070212-1330Eclipse RCP
Version: 3.2.2.r322_v20070104-8pcviKVqd8J7C1U
Build id: M20070212-1330Eclipse Java Development Tools
Version: 3.2.2.r322_v20070104-R4CR0Znkvtfjv9-
Build id: M20070212-1330Eclipse Graphical Editing Framework
Version: 3.2.2.v20070208
Build id: 20070208-1315Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-launcher
E:\Installations\MyEclipse5.5.1GA\eclipse\eclipse.exe
-name
Eclipse
-showsplash
600
-exitdata
14dc_84
-Xms256M
-Xmx1000M
-XX:PermSize=500M
-XX:MaxPermSize=500M
-vm
E:\Installations\bea\jdk160_05\bin\javaw.exe2) I could not find the myeclipse.ini file, below are the contenets from eclipse.ini file.
-vmargs
-Xms128M
-Xmx512M
-XX:PermSize=64M
-XX:MaxPermSize=128MBelow are the memory settings I used in windows > preferences > MyEclipse Enterprise Workbench > Servers > Weblogic > Weblogic 10.x > JDK >
-XX:MaxPermSize=400m -Xms400m -Xmx800m
Let me know if there will be any difference by adding the below arguments.
-XX:CompileThreshold=8000 -Xverify:none -da
~Naresh
tallapureddyMemberJust to add, I already gone through the web for given links. In all the links most of the suggestion are increasing the perm gen memory value or change the jdk to jrocket.
support-shaliniMemberNaresh,
I could not find the myeclipse.ini file
this file is located at your installation directory ~\Genuitec\MyEclipse 7.5
Are there any errors logged in your log file located at workspace dir > .metadata > .log?
Also, can you try using Jrocket and check if that works?
tallapureddyMemberShalini,
There are no errors in the workspace/metada/log. If I use JRocket everything goes well. But, my requirement is to do this on Sun JDK. Even I observed the same problem with MyEclipse 7.5.
I could not find MyEclipe.ini file. Please let me know if you any further suggestions.
Naresh
support-shaliniMemberNaresh,
How have you installed MyEclipse? Using all-in-one installer or pulse or as a plugin on top of eclipse?
To locate your myeclipse.ini file, can you do the following?
1. right click on your MyEclipse icon on your desktop or the properties from where you start MyEclipse ( start > Programs > etc) and go to properties.
2. Copy the location to the run prompt excluding the MyEclipse.exe part(C:\Program Files\Genuitec\MyEclipse 7.5)
This will be your installation directory. There you can find your myeclipse.ini file.
The resolution for your issue is – If you have to use weblogic, you have to configure using weblogic JDK or use jrockit.
If you have to use sun JDK, you need to use a different application server.
tallapureddyMemberShalini,
I got this issue by configure using weblogic JDK. I will try finding again for myeclipse.ini file and will let you know.
Is there any other recommendations to resolve this issue.
Naresh
tallapureddyMemberI believe by default latest versions of MyEclipse comes with the eclipse installed and there you might have introduced concept called myeclipse.ini file.
For the earlier version of eclipse I see only eclipse.ini file. Below are the eclipse.ini file data.
-vmargs
-Xms128M
-Xmx512M
-XX:PermSize=64M
-XX:MaxPermSize=128MI this as using all-in-one installer.
~Naresh
support-joyMemberGood to hear you are all set by configuring weblogic JDK. As mentioned by Shalini there are just 2 ways out –
The resolution for your issue is – If you have to use weblogic, you have to configure using weblogic JDK or use jrockit.
If you have to use sun JDK, you need to use a different application server.You are right – ME 5.5.1 does not have myeclipse.ini, you need to look at eclipse.ini for ME 5.5.1. It was introduced later installs of ME which supported pulse, which brings me to the question that why haven’t you upgraded to our latest releases of MyEclipse.
tallapureddyMemberJoy,
I am facing this issue by configuring weblogic JDK only. Even I I tried this with MyEclipse 7.5 and got the same problem.
If I use JRocket it works fine. Please suggest if there is any workaround for this other than using JRocket.
~Naresh
support-joyMemberNaresh,
What is the issue you are facing when you try to configure WebLogic JDK on Weblogic 10.3? The above snapshot looks like issues copy-pasted from console, which doesn’t show any problem related to your WebLogic 10.3 configuration. Can you mention in detailed steps how you have tried to configure WebLogic 10.3? Attach screenshots if possible. Check your error log file located here [your workspace dir]/.metadata/.log and see if it points you to any relevant information?
tallapureddyMemberJoy,
I checked the log located in metadata. I could not find any error on this.
I have the ANT script which creates the below.1) Create new WebLogic domain and configure it to MyEclipse.
2) It will start the newly created WebLogic domain and creates connection factories, queues, topics and data sources.
3) In first step it starts the server and creates the connection factories in WebLogic and activates those. Next it creates queues, when this tries to activate the queue settings it gives ” java.lang.OutOfMemoryError: PermGen space”
4) The same is happening for topics and data sources.
5) If i execute this script directly in BEA WLST it works fine. I am getting this only when I configure this to MyEclipse.Below are the details how I configure the WebLogic.
1) I have ANT script which creates Server domain and configure to WebLogic.
It reads the below template from BEA and creates the domain.
readTemplate(weblogichome+”/common/templates/domains/wls.jar”)
From the below WEBLOGIC_PREFS_FILE location the newly created domain will be configured to MyEclipse ApplicationServers.
WEBLOGIC_PREFS_FILE=/.metadata/.plugins/org.eclipse.core.runtime/.settings/com.genuitec.eclipse.easie.weblogic10.prefs
Let me know how I can attach the screen prints and if you require any further information.
~Naresh
support-joyMemberNaresh,
You need to investigate your ANT script and see what is missing out. I don’t have much expertise on ANT script. I will have a dev team member assist you on this.
support-joyMemberNaresh,
I have discussed your issue with our dev team members. You are working on ME 5.5 and you have pointed to JDK1.6 which is not compatible. Can you change it back to the default JDK or use ME 7.5 instead.
There is the VM that runs the IDE, then there is the VM that runs the App Server and then there is the VM that runs the Ant script itself when it executes out-of-process. I *think* the VM that is actually executing the Ant Script itself is what is running out of permgen space… by bumping your IDE heap size up to 1GB and permgen up to 400mb, you are running the risk of smashing VM memory requirements right up against your OS memory requirements and which is causing your system to crawl as it swaps to disk like crazy.
To adjust the memory size allocated to the Ant scripts running, you need to go to the External Tools dialog and open it, and edit Ant’s runtime configuration, and give it more memory… I would recommend you to reset the memory args for the IDE (in the INI file) back to default –
(myeclipse.ini file is located here ~\Genuitec\MyEclipse 7.5\myeclipse.ini in case you are on ME5.5 please rollback your eclipse.ini)-vmargs
-Xmx512m
-XX:MaxPermSize=256m
-XX:ReservedCodeCacheSize=64m -
AuthorPosts