cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

We are happy to announce the new Windchill Customization board! Learn more.

Low memory warnings (9.1)

rpike
5-Regular Member

Low memory warnings (9.1)

We have test box running 9.1 F000 but we're getting masses of these low memory warnings in the Tomcat logs:

anonymous wrote:

2009-02-24 05:28:43,633 WARN [Low Memory Detector] wt.jmx.notif.memory - Time=2009-02-24 05:28:43.633 +0000, Name=MemoryNotifier, SourceObjectName=com.ptc:wt.servlet.system=WebAppContexts,wt.webAppContext=/Windchill,wt.subsystem=Monitors,wt.monitorType=Memory, class=class javax.management.Notification, type=java.management.memory.collection.threshold.exceeded, userData=[count=172,poolName=PS Old Gen,usage=[committed=89522176,init=44761088,max=89522176,used=89518712]], message=Memory usage exceeds collection usage threshold, JVM Name=6612@hvtpjl02, Threshold Info=[CheckIntervalSeconds=30,GCBaitingEnabled=false,HeapPercentUsage=73.67103291067848,HeapPercentUsageThreshold=97.5,MinAvailableHeapThreshold=0,NoisyStillExceededNotifications=false,OldGenPercentCollUsage=99.99613056769309,OldGenPercentCollUsageThreshold=95.0,OldGenPercentUsage=99.99613056769309,OldGenPercentUsagePeak=100.0,OldGenPercentUsageThreshold=97.5,PermGenPercentCollUsage=58.86073708534241,PermGenPercentCollUsageThreshold=95.0,PermGenPercentUsage=58.86102914810181,PermGenPercentUsagePeak=59.45167541503906,PermGenPercentUsageThreshold=97.5]

10 REPLIES 10

Did you already bump your Tomcat heaps? I set mine to 512 min, 2048 max and cleared up its issues. If so, I believe I was seeing the same thing, and I think what it's referring to is the server manager, not the method server since my server manager would die and leave the method server running. There are heap settings that (I think) relate directly to the server manager: wt.manager.minHeap and wt.manager.maxHeap. They were set to 32 and 64 in my install, so I bumped them to 128 and 1024 and have not seen the warnings or dying server manager since.
rpike
5-Regular Member
(To:RussDavidson)

Thanks. I guess I'm not sure which settings are taking effect. I have these in the site.xconf: <Property name="wt.method.minHeap" overridable="true" targetFile="codebase/wt.properties" value="512"/> <Property name="wt.method.maxHeap" overridable="true" targetFile="codebase/wt.properties" value="512"/> <Property name="wt.manager.minHeap" overridable="true" targetFile="codebase/wt.properties" value="512"/> <Property name="wt.manager.maxHeap" overridable="true" targetFile="codebase/wt.properties" value="512"/> So how do these relate to the java opts: XX:PermSize=36M -XX:MaxPermSize=128M -Xms512M -Xmx512M Are they different? Does one override the other?

For Tomcat-dedicated settings, see the line similar to set JAVA_OPTS=-server -XX:PermSize=46M -XX:MaxPermSize=128M -Xms64M -Xmx128M -Djava.awt.headless=true -Dwt.context.defaultLocalResourcesOnly=true in \Tomcat\bin\wttomcat_start.bat file.
rpike
5-Regular Member
(To:DmitryTsarev)

Thanks Dmitry. So what are the site.xconf values for?

Just to make things clear and avoid confusion: In site.xconf you only set memory for ServerManager and MethodServer In wttomcat_start.bat you set memory for Tomcat only. As for the values - it really depends on the server usage scenario and the amount of people accessing it. I'd suggest using a tool like VisualVM for tracing memory usage and modifying values when needed.
rpike
5-Regular Member
(To:DmitryTsarev)

So which of these values is causing my warning? As soon as Windchill starts all I have to do is start the principal administrator and the warnings start appearing. That can't be right. I only have 1 user and 32Gb of RAM to play with.

This must be Tomcat, so I'd add memory to Tomcat first. I'd also suggest to check memory usage (using Java Visual VM (\Windchill_9.1\Java\bin\jvisualvm.exe), for example).

Hi All, I guess there is a Memory limitation for Windows boxes. You cannot go beyond 1280 MB. Also can you use all 32 GB of your RAM?

To go beyond 1280Mb, you should use Windows x64 + Java x64. If you're tied to x32 for some reason, you can still use multiple MethodServers. Not sure how to help Tomcat in this case, though

I think Tomcat also has memory limitations.
Top Tags