错误信息:
####<Dec 31, 2009 9:44:37 PM GMT+08:00> <Info> <WebLogicServer> <> <> <main> <> <> <> <126226
7077874> <BEA-000214> <WebLogic Server "INSIIS" version:
WebLogic Server 9.2 MP3 Mon Mar 10 08:28:41 EDT 2008 1096261 (c) 1995, 1996, 1997, 1998 Web
Logic, Inc.
(c) 1999, 2000, 2001 BEA Systems, Inc.>
####<Dec 31, 2009 9:44:38 PM GMT+08:00> <Info> <Diagnostics> <ajdb1> <INSIIS> <[ACTIVE] Execu
teThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <12622
67078100> <BEA-320001> <The ServerDebug service initialized successfully.>
####<Dec 31, 2009 9:44:38 PM GMT+08:00> <Info> <Store> <ajdb1> <INSIIS> <[ACTIVE] ExecuteThre
ad: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <12622670781
83> <BEA-280050> <Persistent store "WLS_DIAGNOSTICS" opened: directory="/weblogic/bea/user_pr
ojects/domains/ajsi/servers/INSIIS/data/store/diagnostics" writePolicy="Disabled" blockSize=5
12 directIO=false driver="wlfileio2">
@
:$
####<Dec 31, 2009 10:21:54 PM GMT+08:00> <Info> <Health> <ajdb1> <INSIIS> <weblogic.GCMonitor
> <<anonymous>> <> <> <1262269314542> <BEA-310002> <96% of the total memory in the server is
free>
####<Dec 31, 2009 10:22:07 PM GMT+08:00> <Error> <JMX> <ajdb1> <INSIIS> <[STANDBY] ExecuteThr
ead: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1262269327
473> <BEA-149501> <An exception occurred while registering the MBean Security:Name=myrealm at
property CredentialMappers.
java.lang.OutOfMemoryError: PermGen space
>
####<Dec 31, 2009 10:22:28 PM GMT+08:00> <Error> <JMX> <ajdb1> <INSIIS> <[STANDBY] ExecuteThr
ead: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1262269348
295> <BEA-149501> <An exception occurred while registering the MBean com.bea:Name=ajsi,Type=S
ecurityConfiguration at property Realms.
java.lang.OutOfMemoryError: PermGen space
解决方法:
加入JVM参数:-XX:MaxPermSize=256m
问题原因:
PermGen
space:Permanent Generation
space是指内存的永久保存区域;这一部分用于存放Class和Meta的信息,Class在Loading时被放入
PermGen
Space区域,它和存放Instance的Heap区域不同。GC(Garbage Collection)不会在主程序运行期对
PermGen
Space进行清理,所以如果你的APP会LOAD很多CLASS的话,就很可能出现
PermGen
Space错误。这种错误常见在web服务器对JSP进行pre compile的时候。
改正方法:
-Xms256m -Xmx256m -XX:MaxNewSize=256m -XX:MaxPermSize=256m
--转自