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
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: