0

登录到应用程序时,我在 win7 中使用 java 选项出现错误 tomcat 7

set JAVA_OPTS="-Djava.awt.headless=true -Dfile.encoding=UTF-8 -server -Xms1536m 
-Xmx1536m -XX:NewSize=256m -XX:MaxNewSize=256m -XX:PermSize=512m 
-XX:MaxPermSize=256m -XX:+DisableExplicitGC"

在 startup.bat 我有错误:

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 org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2895)
        at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1173)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1681)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
        at com.documentum.thirdparty.javassist.bytecode.ClassFile.<init>(ClassFile.java:68)
        at com.documentum.thirdparty.javassist.CtNewClass.<init>(CtNewClass.java:38)
        at com.documentum.thirdparty.javassist.ClassPool.makeClass(ClassPool.java:621)
        at com.documentum.thirdparty.javassist.ClassPool.makeClass(ClassPool.java:605)
        at com.documentum.fc.impl.util.reflection.proxy.ProxyClassGenerator.newClass(ProxyClassGenerator.java:94)
        at com.documentum.fc.impl.util.reflection.proxy.ProxyClassGenerator.makeProxyByteCode(ProxyClassGenerator.java:54)
        at com.documentum.fc.impl.util.reflection.proxy.ProxyClassLoader.makeProxyClass(ProxyClassLoader.java:93)
        at com.documentum.fc.impl.util.reflection.proxy.ProxyClassLoader.loadProxyClass(ProxyClassLoader.java:47)
        at com.documentum.fc.impl.util.reflection.proxy.ProxyFactory.getProxyClass(ProxyFactory.java:74)
        at com.documentum.fc.impl.util.reflection.proxy.ProxyFactory.makeDoubleProxy(ProxyFactory.java:53)
        at com.documentum.fc.client.impl.bof.compoundclass.PObjectProxyFactory.newProxyInstance(PObjectProxyFactory.java:27)
        at com.documentum.fc.client.impl.bof.compoundclass.PObjectProxyFactory.newProxyInstance(PObjectProxyFactory.java:18)
        at com.documentum.fc.client.impl.bof.compoundclass.DynamicProxyMgr.newProxy(DynamicProxyMgr.java:44)
        at com.documentum.fc.client.impl.objectmanager.PObjectFactoryWithAspects.makeObject(PObjectFactoryWithAspects.java:52)
        at com.documentum.fc.client.impl.objectmanager.PersistentObjectManager.getObjectFromServer(PersistentObjectManager.java:356)
        at com.documentum.fc.client.impl.objectmanager.PersistentObjectManager.getObject(PersistentObjectManager.java:311)
        at com.documentum.fc.client.impl.session.Session.getObject(Session.java:834)
        at com.documentum.fc.client.impl.session.Session.getObjectByQualificationEx(Session.java:1015)
        at com.documentum.fc.client.impl.session.Session.getObjectByQualification(Session.java:993)
        at com.documentum.fc.client.impl.bof.util.DfModificationManager.doFetch(DfModificationManager.java:154)
        at com.documentum.fc.client.impl.bof.util.DfModificationManager.getChangeRecordObject(DfModificationManager.java:123)
        at com.documentum.fc.client.impl.bof.util.DfModificationManager.init(DfModificationManager.java:217)
        at com.documentum.fc.client.impl.bof.util.DfModificationManager.getInstance(DfModificationManager.java:36)
        at com.documentum.fc.client.impl.bof.cache.BofConsistencyChecker.makeConsistent(BofConsistencyChecker.java:35)

尝试了不同的选项,仍然是这个错误......

4

1 回答 1

0

你有 -XX:PermSize=512m 和 -XX:MaxPermSize=256m

您可能希望从交换大小开始,以便最大值高于初始值:-XX:PermSize=256m 和 -XX:MaxPermSize=512m

于 2013-06-19T11:30:29.413 回答