[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
OutOfMemoryError: Java heap space  XML
Forum Index -> Terracotta for Web Sessions
Author Message
narendra

neo

Joined: 07/30/2007 12:51:51
Messages: 6
Offline

Hi,

In our project we are using spring+hibernate.
i want to test Httpclustering in my application on two tomcat servers.

but for i am using terracotta 2.0.4 session configurator bundled tomcats

Q1.how do i configure different tomcats with terracotta for HttpSession clustering

Q2. when i am using session configurator to cluster myapp it is giving below error

regards
-narendra












exception in thread "TCComm Selector Thread 1" java.lang.OutOfMemoryError: Java heap space
at java.nio.CharBuffer.wrap(CharBuffer.java:350)
at sun.nio.cs.StreamEncoder$CharsetSE.implWrite(StreamEncoder.java:378)
at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:136)
at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:146)
at java.io.OutputStreamWriter.write(OutputStreamWriter.java:204)
at java.io.Writer.write(Writer.java:126)
at org.apache.log4j.helpers.CountingQuietWriter.write(CountingQuietWriter.java:36)
at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:299)
at org.apache.log4j.RollingFileAppender.subAppend(RollingFileAppender.java:225)
at org.apache.log4j.WriterAppender.append(WriterAppender.java:150)
at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:221)
at com.tc.logging.DelegatingAppender.doAppend(DelegatingAppender.java:47)
at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:57)
at org.apache.log4j.Category.callAppenders(Category.java:194)
at org.apache.log4j.Category.forcedLog(Category.java:379)
at org.apache.log4j.Category.error(Category.java:310)
at com.tc.logging.TCLoggerImpl.error(TCLoggerImpl.java:51)
at com.tc.net.core.TCCommJDK14$TCCommThread.run(TCCommJDK14.java:655)
Exception in thread "http-9082-Processor11" java.lang.OutOfMemoryError: Java heap space
Exception in thread "JMX server connection timeout Thread-9" java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
com.tc.exception.TCNonPortableObjectError:
*******************************************************************************
Attempt to share an instance of a non-portable class referenced by a portable class. This
unshareable class has not been included for sharing in the configuration. Please add this
class to the <includes> section of the configuration file.

Referring class : com.primedia.model.OscMagazineInfo
Referring field : com.primedia.model.OscMagazineInfo.oscStoreCategories
Thread : http-9082-Processor4
JVM ID : VM(1)
Non-included class: com.primedia.model.OscStoreCategories$$EnhancerByCGLIB$$2d517ad7

*******************************************************************************

tgautier

seraphim

Joined: 06/05/2006 12:19:26
Messages: 1781
Offline

You seem to be getting more than one kind of error. I am not sure why that is happening, but we can resolve one and see if you still get the other.

There is a specific set of instructions which guide you through resolving com.tc.exception.TCNonPortableObjectError:

The Forum DSO FAQ http://forums.terracotta.org/forums/posts/list/264.page points out where these instructions are located :

http://wiki.terracotta.org/confluence/display/docs1/Troubleshooting+Guide#TroubleshootingGuide-Iamgettingcom.tc.exception.TCNonPortableObjectException.Whatnext%3F

Also if you install the Terracotta Eclipse plugin and run your application from Eclipse, it has a wizard which will guide you through the process of configuring Terracotta. You can get the plugin from here:

http://www.terracotta.org/confluence/display/orgsite/Download

We just had a Webinar / Online training session that illustrates how to use the Eclipse Plugin. Look for it soon at:

http://www.terracotta.org/confluence/display/orgsite/Info

Finally, you may want to drop by our Online training page occasionally, as we plan to add some more point training such as tuning level 2 etc.:

http://www.terracotta.org/confluence/display/orgsite/Upcoming+Online+Training
[WWW]
 
Forum Index -> Terracotta for Web Sessions
Go to:   
Powered by JForum 2.1.7 © JForum Team