[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]
Any Fix for CDV-671  XML
Forum Index -> General
Author Message
Aryaan

journeyman

Joined: 07/29/2008 17:10:02
Messages: 13
Offline

Hi
Is there any fix for CDV-671. Looks like I am getting the same exception


2008-08-01 18:32:17,113 INFO - Terracotta 2.6.2, as of 20080626-150605 (Revision 8952 by cruise@rh4mo0 from 2.6)
2008-08-01 18:32:19,295 INFO - Configuration loaded from the file at '/usr/opt/terracotta-2.6.2/tc-config-weblogic-pre-srv-02.xml'.
2008-08-01 18:32:20,235 INFO - Log file: '/apps/opt/weblogic/terracotta/client-logs-pre-srv-02/terracotta-client.log'.
2008-08-01 18:32:36,539 INFO - tc.server: 113.256.128.220
2008-08-01 18:32:37,262 INFO - tc.server: 113.256.128.220
2008-08-01 18:32:39,225 WARN -
**************************************************************************************
The statistics buffer couldn't be opened at
'/apps/opt/weblogic/terracotta/client-stats-pre-srv-02'.
The CVT system will not be active for this node.

A common reason for this is that you're launching several Terracotta L1
clients on the same machine. The default directory for the statistics buffer
uses the IP address of the machine that it runs on as the identifier.
When several clients are being executed on the same machine, a typical solution
to properly separate these directories is by using a JVM property at startup
that is unique for each client.

For example:
dso-java.sh -Dtc.node-name=node1 your.main.Class

You can then adapt the tc-config.xml file so that this JVM property is picked
up when the statistics directory is configured by using %(tc.node-name) in the
statistics path.
**************************************************************************************

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

*************************************************************
I am trying to run two weblogic managed server on the same machine and setting the envronment variables using SSI, Here's the detail

TC_INSTALL_DIR=/usr/opt/terracotta-2.6.2
DSO_BOOT_JAR_NAME=dso-boot-hotspot_solaris_150_16.jar
TC_SERVER=113.256.128.220
DSO_BOOT_JAR="$TC_INSTALL_DIR/lib/dso-boot/$DSO_BOOT_JAR_NAME"

################# Managed Server #1 ###################

TC_JAVA_OPTS_PRE_SRV_01="-Xbootclasspath/p:$DSO_BOOT_JAR -Dtc.install-root=$TC_INSTALL_DIR"
TC_CONFIG_PATH_PRE_SRV_01=$TC_INSTALL_DIR/tc-config-weblogic-pre-srv-01.xml
TC_JAVA_OPTS_PRE_SRV_01="$TC_JAVA_OPTS_PRE_SRV_01 -Dtc.config=$TC_CONFIG_PATH_PRE_SRV_01"
TC_JAVA_OPTS_PRE_SRV_01="$TC_JAVA_OPTS_PRE_SRV_01 -Dtc.server=$TC_SERVER"


SERVER1_HOST=ugwldirigd02
SERVER1_NAME=pre_srv_01
SERVER1_LISTEN_HOST=ugwldirigd02
SERVER1_JAVA_OPTIONS="-DPREWLS -d64 -DPROPERTY_FILE=/usr/opt/pre/appserver/config/aims.properties -Xss256k -XX:MaxPermSize=128m -Dcom.sun.xml.namespace.QName
.useCompatibleSerialVersionUID=1.0 -Dsun.net.spi.nameservice.provider.1=dns,sun -Dsun.net.spi.nameservice.domain= -Dsun.net.spi.nameservice.nameserver= -DUs
eSunHttpHandler=true $TC_JAVA_OPTS_PRE_SRV_01"
# server-specific override of SERVER_JAVA_OPTIONS
SERVER1_MIN_HEAP=512
# server-specific override of SERVER_MIN_HEAP
SERVER1_MAX_HEAP=512
# server-specific override of SERVER_MAX_HEAP
########################################################

################# Managed Server #2 ###################

TC_JAVA_OPTS_PRE_SRV_02="-Xbootclasspath/p:$DSO_BOOT_JAR -Dtc.install-root=$TC_INSTALL_DIR"
TC_CONFIG_PATH_PRE_SRV_02=$TC_INSTALL_DIR/tc-config-weblogic-pre-srv-02.xml
TC_JAVA_OPTS_PRE_SRV_02="$TC_JAVA_OPTS_PRE_SRV_02 -Dtc.config=$TC_CONFIG_PATH_PRE_SRV_02"
TC_JAVA_OPTS_PRE_SRV_02="$TC_JAVA_OPTS_PRE_SRV_02 -Dtc.server=$TC_SERVER"


SERVER2_HOST=ugwldirigd02
SERVER2_NAME=pre_srv_02
SERVER2_LISTEN_HOST=ugwldirigd02
SERVER2_JAVA_OPTIONS="-DPREWLS -d64 -DPROPERTY_FILE=/usr/opt/pre/appserver/config/aims.properties -Xss256k -XX:MaxPermSize=12m -Dcom.sun.xml.namespace.QName.
useCompatibleSerialVersionUID=1.0 -Dsun.net.spi.nameservice.provider.1=dns,sun -Dsun.net.spi.nameservice.domain= -Dsun.net.spi.nameservice.nameserver= -DUse
SunHttpHandler=true $TC_JAVA_OPTS_PRE_SRV_02"
# server-specific override of SERVER_JAVA_OPTIONS
SERVER2_MIN_HEAP=512
# server-specific override of SERVER_MIN_HEAP
SERVER2_MAX_HEAP=512
# server-specific override of SERVER_MAX_HEAP


Any suggestion?
tgautier

seraphim

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

You just need to specify different directories for the servers running on the same host.

Look in the docs/tc-config-reference.xml file for the xml stanzas you need to change the directories for the logs, data, and stats for each server (there should be an entry in your servers section for each server)

So you should have something like:

<servers>
<server name="server1">
.... <- directories for data, log and stats set
</server>
<server name="server2">
... <- directories for data, log and stats set DIFFERENT THAN SERVER 1
</server>
</servers>

CDV-671 covers a different problem than you are having.
[WWW]
Aryaan

journeyman

Joined: 07/29/2008 17:10:02
Messages: 13
Offline

I have only one terracotta Server running on one machine and two managed weblogic servers both on another machine. First managed server starts fine but second gives this exception. Could you please help find this solution. I have given the of the settings which I am using for each manage server

Thanks
Aryaan
hhuynh

cherubim

Joined: 06/16/2006 11:54:06
Messages: 761
Offline

You need to increase the permgen memory for Weblogic by adding this jvmarg: -XX:MaxPermSize=128m to Weblogic startup script.


tgautier

seraphim

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

Aryaan wrote:
I have only one terracotta Server running on one machine and two managed weblogic servers both on another machine. First managed server starts fine but second gives this exception. Could you please help find this solution. I have given the of the settings which I am using for each manage server

Thanks
Aryaan  


Oh, then you will need to setup a clients section. You can pass in an system variable to the java process. See here for details:

http://www.terracotta.org/confluence/display/docs1/Configuration+Guide+and+Reference#ConfigurationGuideandReference-ConfigurationVariables


For example, use:

<clients>
<logs>%(my-location)/logs</logs>
<statistics>%(my-location)/statistics</logs>
</clients>

and start one client with :

java -Dmy-location=/foo/bar1

and the other:

java -Dmy-location=/foo/bar2

Or you could just use a timestamp (%D)

[WWW]
Aryaan

journeyman

Joined: 07/29/2008 17:10:02
Messages: 13
Offline

I set it up slightly different
I took two tc-config file
tc-config1.xml and tc-config2.xml
Here's how they look
This is the only difference they have otherwise everything is same

<clients>
<logs>%(user.home)/terracotta/client-logs-pre-srv-01</logs>
<statistics>%(user.home)/terracotta/client-stats-pre-srv-01</statistics>
</clients>
and
<clients>
<logs>%(user.home)/terracotta/client-logs-pre-srv-02</logs>
<statistics>%(user.home)/terracotta/client-stats-pre-srv-02</statistics>
</clients>

Since I am using SSI. So I set up environment variable using SSI. Here how they are
TC_INSTALL_DIR=/VZ/opt/terracotta-2.6.2
DSO_BOOT_JAR_NAME=dso-boot-hotspot_solaris_150_16.jar
TC_SERVER=113.128.128.220
DSO_BOOT_JAR="$TC_INSTALL_DIR/lib/dso-boot/$DSO_BOOT_JAR_NAME"

################# Managed Server #1 ###################

TC_JAVA_OPTS_PRE_SRV_01="-Xbootclasspath/p:$DSO_BOOT_JAR -Dtc.install-root=$TC_INSTALL_DIR"
TC_CONFIG_PATH_PRE_SRV_01=$TC_INSTALL_DIR/tc-config-weblogic-pre-srv-01.xml
TC_JAVA_OPTS_PRE_SRV_01="$TC_JAVA_OPTS_PRE_SRV_01 -Dtc.config=$TC_CONFIG_PATH_PRE_SRV_01"
TC_JAVA_OPTS_PRE_SRV_01="$TC_JAVA_OPTS_PRE_SRV_01 -Dtc.server=$TC_SERVER"


SERVER1_HOST=ugwldirigd02
SERVER1_NAME=pre_srv_01
SERVER1_LISTEN_HOST=ugwldirigd02
SERVER1_JAVA_OPTIONS="-DPREWLS -d64 -DPROPERTY_FILE=/VZ/opt/pre/appserver/config/aims.properties -Xss256k -XX:MaxPermSize=128m -Dcom.sun.xml.namespace.QName
.useCompatibleSerialVersionUID=1.0 -Dsun.net.spi.nameservice.provider.1=dns,sun -Dsun.net.spi.nameservice.domain= -Dsun.net.spi.nameservice.nameserver= -DUs
eSunHttpHandler=true $TC_JAVA_OPTS_PRE_SRV_01"
# server-specific override of SERVER_JAVA_OPTIONS
SERVER1_MIN_HEAP=1022
# server-specific override of SERVER_MIN_HEAP
SERVER1_MAX_HEAP=1022
# server-specific override of SERVER_MAX_HEAP
########################################################
################# Managed Server #2 ###################

TC_JAVA_OPTS_PRE_SRV_02="-Xbootclasspath/p:$DSO_BOOT_JAR -Dtc.install-root=$TC_INSTALL_DIR"
TC_CONFIG_PATH_PRE_SRV_02=$TC_INSTALL_DIR/tc-config-weblogic-pre-srv-02.xml
TC_JAVA_OPTS_PRE_SRV_02="$TC_JAVA_OPTS_PRE_SRV_02 -Dtc.config=$TC_CONFIG_PATH_PRE_SRV_02"
TC_JAVA_OPTS_PRE_SRV_02="$TC_JAVA_OPTS_PRE_SRV_02 -Dtc.server=$TC_SERVER"


SERVER2_HOST=ugwldirigd02
SERVER2_NAME=pre_srv_02
SERVER2_LISTEN_HOST=ugwldirigd02
SERVER2_JAVA_OPTIONS="-DPREWLS -d64 -DPROPERTY_FILE=/VZ/opt/pre/appserver/config/aims.properties -Xss256k -XX:MaxPermSize=12m -Dcom.sun.xml.namespace.QName.
useCompatibleSerialVersionUID=1.0 -Dsun.net.spi.nameservice.provider.1=dns,sun -Dsun.net.spi.nameservice.domain= -Dsun.net.spi.nameservice.nameserver= -DUse
SunHttpHandler=true $TC_JAVA_OPTS_PRE_SRV_02"
# server-specific override of SERVER_JAVA_OPTIONS
SERVER2_MIN_HEAP=512
# server-specific override of SERVER_MIN_HEAP
SERVER2_MAX_HEAP=512
# server-specific override of SERVER_MAX_HEAP

Those actually set all the Java options for me
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.7 © JForum Team