vp:tableWidget with higher height gets Exception in thread "Timer-2" java.lang.OutOfMemoryError: PermGen space

Viewpoint
Enthusiast

vp:tableWidget with higher height gets Exception in thread "Timer-2" java.lang.OutOfMemoryError: PermGen space

I have modified the widgetopia portlet by increasing the height of the tablewidget. After deploying the protlet, now Tomcat keeps  throwing out of memory exceptions.

The reason i modified the height was to check inconsistent behavior of the vertical scrollbar on the table widgets when more records ( than default 3) are displayed.

I also modified  WidgetopiaManagerImpl.java

 public TableWidget getSimpleTableWidget()

using    

        final int rows = 300;

 <vp:tab context="${context}" label="Table">

            <div class="tableContainer">

                <vp:tableWidget context="${context}" model="${simpleTable}" refreshInterval="10"

                refreshUrl="/WidgetopiaPortlet/dataserver/updateTableData" width="450" height="400" htmlAttrs='id="foo23"' />

            </div>

        </vp:tab>

The JVM is running on windows and task manager shows 567 MB RAM used.

How to troubleshoot this error and how to enable logging to monitor warnings / errors  in portal ?

INFO  25 Oct 2012 14:55:50,873 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] [com.liferay.portal.deploy.HotDeployPortletListener.invokeDeploy(337)] Portlets for WidgetopiaPortlet registered successfully

INFO  25 Oct 2012 14:55:50,878 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] [org.apache.catalina.core.ApplicationContext.log(653)] Initializing Spring root WebApplicationContext

WARN  25 Oct 2012 14:56:06,638 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] [com.teradata.viewpoint.security.config.ViewpointConfigLoader.load(153)] Starting load of XML config...

Exception in thread "ContainerBackgroundProcessor[StandardEngine[Catalina]]" java.lang.OutOfMemoryError: PermGen space

Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#4" java.lang.OutOfMemoryError: PermGen space

Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1" java.lang.OutOfMemoryError: PermGen space

Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1" java.lang.OutOfMemoryError: PermGen space

Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0" java.lang.OutOfMemoryError: PermGen space

Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0" java.lang.OutOfMemoryError: PermGen space

Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#6" java.lang.OutOfMemoryError: PermGen space

Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#4" java.lang.OutOfMemoryError: PermGen space

Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2" java.lang.OutOfMemoryError: PermGen space

Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2" java.lang.OutOfMemoryError: PermGen space

Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2" java.lang.OutOfMemoryError: PermGen space

Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#9" java.lang.OutOfMemoryError: PermGen space

Exception in thread "DefaultQuartzScheduler_QuartzSchedulerThread" java.lang.OutOfMemoryError: PermGen space

Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#5" java.lang.OutOfMemoryError: PermGen space

Exception in thread "Timer-1" java.lang.OutOfMemoryError: PermGen space

Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1" java.lang.OutOfMemoryError: PermGen space

Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#3" java.lang.OutOfMemoryError: PermGen space

Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#5" java.lang.OutOfMemoryError: PermGen space

Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1" java.lang.OutOfMemoryError: PermGen space

Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#8" java.lang.OutOfMemoryError: PermGen space

Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#7" java.lang.OutOfMemoryError: PermGen space

Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#9" java.lang.OutOfMemoryError: PermGen space

Exception in thread "Timer-0" java.lang.OutOfMemoryError: PermGen space

Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0" java.lang.OutOfMemoryError: PermGen space

Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0" java.lang.OutOfMemoryError: PermGen space

Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#8" Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#7" java.lang.OutOfMemoryError: PermGen space

java.lang.OutOfMemoryError: PermGen space

Exception in thread "http-8080-5" java.lang.OutOfMemoryError: PermGen space

Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#6" Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2" java.lang.OutOfMemoryError: PermGen space

java.lang.OutOfMemoryError: PermGen space

Exception in thread "com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#3" java.lang.OutOfMemoryError: PermGen space

Exception in thread "Timer-3" java.lang.OutOfMemoryError: PermGen space

Exception in thread "Timer-2" java.lang.OutOfMemoryError: PermGen space

2 REPLIES
Enthusiast

Re: vp:tableWidget with higher height gets Exception in thread "Timer-2" java.lang.OutOfMemoryError: PermGen space

Also the vertical scrollbar on the tableWidget does not seem to more the data in the table.

Teradata Employee

Re: vp:tableWidget with higher height gets Exception in thread "Timer-2" java.lang.OutOfMemoryError: PermGen space

It appears your local Tomcat is running out of PermGen space.  This is the space that is used to load classes in the JVM.  This is fairly common in servlet containers when you redeploy web applications over and over again.  In order to increase the PermGen space, change or set the following value in the bin/setenv.bat file in the portal:

-XX:MaxPermSize=256m

With respect to the scrollbar, I suggest you switch to using the Data Grid widget.  This is a much more robust and actively maintained widget for displaying tabular data in Viewpoint.  Information about this widget is in the PDK documentation: http://developer.teradata.com/viewpoint/reference/viewpoint-pdk-tutorials/displaying-tabular-data-us....  Note that this documentation has recently been updated for Viewpoint 14.01, and contains references to the Big Numbers widget as well.  You can just ignore those sections of the document unless you have a need for that widget as well.

Hope that helps, and sorry for the slow response on this one.