我一直在努力让我的代码库在Eclipse中部署到本地Oracle Weblogic环境已有一段时间了。我从TFS中获取了代码,并且除了我的以外,还可以很好地部署到每个人的环境中。当我去“清理,构建和分阶段”代码时,它工作正常。当我去部署代码时,它工作正常。在我部署并登录到显示服务器运行状况的管理控制台之后,我在Eclipse控制台窗口中收到以下错误(堆栈跟踪):
如果有人对如何纠正此错误有任何想法,以便我在Eclipse中将我的基本代码集部署到Weblogic Server中的localhost而不会得到 java.lang.OutOfMemoryError:PermGen space 错误,那太棒了!谢谢!
[
GET /console/console.portal?_nfpb=true HTTP/1.1
Accept: application/x-ms-application, image/jpeg, application/xaml+xml, image/gif, image/pjpeg, application/x-ms-xbap, */*
Referer: http://localhost:7001/console/login/LoginForm.jsp
Accept-Language: en-US
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB7.4; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)
Accept-Encoding: gzip, deflate
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: ADMINCONSOLESESSION=IVjuvHwU70hpNr0nNMdsO_kz5ID9eYSAR6m_0BEjoALhMhokaYUi!-850236764
]] Root cause of ServletException.
java.lang.OutOfMemoryError: PermGen space
at java.lang.String.intern(Native Method)
at com.bea.netuix.nf.factories.UIControlProperty.<init>(UIControlProperty.java:45)
at com.bea.netuix.nf.factories.MetaUIControl.buildProperties(MetaUIControl.java:351)
at com.bea.netuix.nf.factories.MetaUIControl.addProperties(MetaUIControl.java:339)
at com.bea.netuix.nf.factories.ControlTreeFactoryBuilder$CustomDefaultHandler.handleAttribute(ControlTreeFactoryBuilder.java:514)
Truncated. see log file for complete stacktrace
>
<Dec 29, 2015 11:15:14 AM CST> <Error> <Kernel> <BEA-000802> <ExecuteRequest failed
java.lang.OutOfMemoryError: PermGen space.
java.lang.OutOfMemoryError: PermGen space
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
Truncated. see log file for complete stacktrace
>
Exception in thread "[ACTIVE] ExecuteThread: '20' for queue: 'weblogic.kernel.Default (self-tuning)'" java.lang.OutOfMemoryError: PermGen space
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at weblogic.servlet.internal.ErrorManager.handleException(ErrorManager.java:189)
at weblogic.servlet.internal.WebAppServletContext.handleThrowableFromInvocation(WebAppServletContext.java:2354)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2196)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1491)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)