[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]
Messages posted by: Aryaan  XML
Profile for Aryaan -> Messages posted by Aryaan [13]
Author Message
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
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
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?
This is the generated Log file for Second Managed Server.

WARN: The log directory, '/apps/opt/weblogic/terracotta/client-logs', is already in use by another Terracotta process. Logging will proceed to the console o
nly.

2008-08-01 14:07:57,405 INFO - tc.server: 113.256.128.220
2008-08-01 14:07:58,172 INFO - tc.server: 113.256.128.220
2008-08-01 14:08:02,681 WARN -
**************************************************************************************
The statistics buffer couldn't be opened at
'/apps/opt/weblogic/statistics-113.256.128.221'.
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.
**************************************************************************************
Hi
I am trying to run two managed server instances on same solaris box. With one server instance it works fine but the second doesn't start. What configuration changes are required to run two managed server instances one one machine.

Regards
Ashok
Any help regarding this error


bash-2.03$ ./dso-env.sh
2008-07-31 16:29:33,350 INFO - Terracotta 2.6.2, as of 20080626-150605 (Revision 8952 by cruise@rh4mo0 from 2.6)
2008-07-31 16:29:35,019 INFO - Configuration loaded from the file at '/home/terracotta-2.6.2/tc-config-weblogic.xml'.
-Xbootclasspath/p:/home/terracotta-2.6.2/lib/dso-boot/dso-boot-hotspot_solaris_150_13.jar -Dtc.install-root=/home/terracotta-2.6.2 -Dtc.config=/home/terracotta-2.6.2/tc-config-weblogic.xml
bash-2.03$ ./start-tc-server.sh
2008-07-31 16:29:56,284 INFO - Terracotta 2.6.2, as of 20080626-150605 (Revision 8952 by cruise@rh4mo0 from 2.6)
2008-07-31 16:29:58,034 INFO - Configuration loaded from the Java resource at '/com/tc/config/schema/setup/default-config.xml', relative to class com.tc.config.schema.setup.StandardXMLFileConfigurationCreator.
2008-07-31 16:29:58,502 INFO - Log file: '/home/appteam/terracotta/server-logs/terracotta-server.log'.
2008-07-31 16:30:02,466 INFO - Statistics store: '/home/appteam/terracotta/server-statistics'.
2008-07-31 16:30:05,409 INFO - Statistics buffer: '/home/appteam/terracotta/server-statistics'.
2008-07-31 16:30:05,657 INFO - JMX Server started. Available at URL[service:jmx:jmxmp://0.0.0.0:9520]
2008-07-31 16:30:08,011 INFO - Terracotta Server has started up as ACTIVE node on 0.0.0.0:9510 successfully, and is now ready for work.
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# SIGBUS (0xa) at pc=0xff242be0, pid=3745, tid=14
#
# Java VM: Java HotSpot(TM) Server VM (1.5.0_13-b05 mixed mode)
# Problematic frame:
# C [libc.so.1+0x42be0]
#
# An error report file with more information is saved as /tmp/hs_err_pid3745.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
Abort
. didn't work. It got executed without . but then it didn't set those env variables.
Finally it started working but some more environment variables needed to set.
DSO_BOOT_JAR_NAME=dso-boot-hotspot_solaris_150_13.jar
TC_SERVER=113.256.128.220
DSO_BOOT_JAR="$TC_INSTALL_DIR/lib/dso-boot/$DSO_BOOT_JAR_NAME"
TC_JAVA_OPTS="-Xbootclasspath/p:$DSO_BOOT_JAR -Dtc.install-root=$TC_INSTALL_DIR"
TC_JAVA_OPTS="$TC_JAVA_OPTS -Dtc.config=$TC_CONFIG_PATH"
TC_JAVA_OPTS="$TC_JAVA_OPTS -Dtc.server=$TC_SERVER"

Thanks for the help

Regards
Aryaan
I changed startweblogic script file for managed servers but apparently its not able to resolve DSO_BOOT_JAR. Here's what I changed in startWeblogic
TC_INSTALL_DIR=/usr/opt/terracotta-2.6.2
TC_CONFIG_PATH=$TC_INSTALL_DIR/tc-config-weblogic.xml
${TC_INSTALL_DIR}/bin/dso-env.sh -q
JAVA_OPTIONS="$JAVA_OPTIONS $ADM_JAVA_OPTIONS $DEFAULT_JAVA_OPTIONS $TC_JAVA_OPTS"
and this is how I start Weblogic

nohup ${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} $GC_OPTIONS $JAVA_OPTIONS -classpath $CLASSPATH -Dweblogic.Domain=$DMN_NAME -Dweblogic.Name=$SERVER_NAME
-Dbea.home=$BEA_HOME -Dweblogic.management.username=$ADMIN_USER -Dweblogic.management.password=$USER_PASSWORD -Dweblogic.ProductionModeEnabled=$STARTMODE -D
java.security.policy==$WL_HOME/server/lib/weblogic.policy -Dweblogic.management.discover=true weblogic.Server &

Console after weblogic startup
Starting Admin Server AdminServer in pre ...
INFO: Server Process for AdminServer in pre is not running..
INFO: Server Process for AdminServer in pre not running ... Starting server
INFO: Started Weblogic server AdminServer in pre Successfully. PID 18763
INFO: Started Weblogic server AdminServer in pre Successfully.
INFO: Finished WeblogicAdmin for pre with status 0 : Thu Jul 31 13:26:12 CDT 2008
Admin Server in pre started successfully ..
Starting Managed Server pre_srv_01 in pre ...
INFO: Starting WeblogicAdmin with action START for pre : Thu Jul 31 13:26:12 CDT 2008
2008-07-31 13:26:14,274 INFO - Terracotta 2.6.2, as of 20080626-150605 (Revision 8952 by cruise@rh4mo0 from 2.6)
2008-07-31 13:26:15,811 INFO - Configuration loaded from the file at '/usr/opt/terracotta-2.6.2/tc-config-weblogic.xml'.
INFO: Server Process for pre_srv_01 in pre is not running..
INFO: Server Process for pre_srv_01 in pre not running ... Starting server
INFO: Started Weblogic server pre_srv_01 in pre Successfully. PID 18979
INFO: Started Weblogic server pre_srv_01 in pre Successfully.
INFO: Finished WeblogicAdmin for pre with status 0 : Thu Jul 31 13:28:42 CDT 2008
Starting Managed Server pre_srv_02 in pre ...
INFO: Starting WeblogicAdmin with action START for pre : Thu Jul 31 13:28:44 CDT 2008
2008-07-31 13:28:46,265 INFO - Terracotta 2.6.2, as of 20080626-150605 (Revision 8952 by cruise@rh4mo0 from 2.6)
2008-07-31 13:28:47,881 INFO - Configuration loaded from the file at '/usr/opt/terracotta-2.6.2/tc-config-weblogic.xml'.
INFO: Server Process for pre_srv_02 in pre is not running..
INFO: Server Process for pre_srv_02 in pre not running ... Starting server
INFO: Started Weblogic server pre_srv_02 in pre Successfully. PID 19266
INFO: Started Weblogic server pre_srv_02 in pre Successfully.
INFO: Finished WeblogicAdmin for pre with status 0 : Thu Jul 31 13:30:56 CDT 2008


Regrads
Aryaan

tgautier
I am able to connect to server on unix using Terracotta Administrator Console and it looks like client is not connecting with terracotta server. I am using weblogic 9.2 on sunOS. weblogic is configured to have admin server and two server instances pre_srv_01 and pre_srv_02. Server section of the tc-config-weblogic.xml is like
<servers>
<server host="113.256.128.220" name="113.256.128.220:9510">
<data>%(user.home)/terracotta/server-data</data>
<logs>%(user.home)/terracotta/server-logs</logs>
<dso-port>9510</dso-port>
<jmx-port>9520</jmx-port>
</server>
</servers>
and here is what I have added to admin server stratup script

TC_INSTALL_DIR=/usr/opt/terracotta-2.6.2
TC_CONFIG_PATH=$TC_INSTALL_DIR/tc-config-weblogic.xml
${TC_INSTALL_DIR}/bin/dso-env.sh -q
export JAVA_OPTS="$TC_JAVA_OPTS $JAVA_OPTS"

I don't see any exception but its not connected to Terracotta, another things which proves it is it doesn't generate client log on terracotta server machine. Do you see anything surprizing in the configuration

Thanks for the help

Aryaan


Ok
Let me post the tc-config.xml
************************************************************
<?xml version="1.0" encoding="UTF-8"?>

<tc:tc-config xmlns:tc="http://www.terracotta.org/config"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.terracotta.org/schema/terracotta-4.xsd">


<server host="113.128.128.220" name="terracotta_Server_01">
<data>%(user.home)/terracotta/server-data</data>
<logs>%(user.home)/terracotta/server-logs</logs>
<dso-port>9510</dso-port>
<jmx-port>9520</jmx-port>
</server>
</servers>


<clients>
<logs>%(user.home)/terracotta/client-logs</logs>
</clients>

<application>
<dso>

<instrumented-classes>
<!-- Start by including all classes for instrumentation.
<include>
<class-expression>com.sample.retailiconsole.aims.test..*</class-expression>
</include>

<exclude>weblogic..*</exclude>
<exclude>com.rsa..*</exclude>
</instrumented-classes>
<roots>
<root>
<field-name>com.sample.retailiconsole.aims.test.BooksSingleton._instance</field-name>
</root>
</roots>

<web-applications>
<web-application>olibweb</web-application>
</web-applications>
</dso>
</application>
/tc:tc-config>

Here's what I put in startWL script
TC_INSTALL_DIR=/usr/opt/terracotta-2.6.2
TC_CONFIG_PATH=$TC_INSTALL_DIR/tc-config-weblogic.xml
${TC_INSTALL_DIR}/bin/dso-env.sh -q
export JAVA_OPTS="$TC_JAVA_OPTS$JAVA_OPTS"

and Here's what I get when I start Weblogic Server
2008-07-30 11:15:51,844 INFO - Terracotta 2.6.2, as of 20080626-150605 (Revision 8952 by cruise@rh4mo0 from 2.6)
2008-07-30 11:15:53,555 INFO - Configuration loaded from the file at '/usr/opt/terracotta-2.6.2/tc-config-weblogic.xml'.
Starting Admin Server AdminServer in pre ...
INFO: Starting WeblogicAdmin with action START for pre : Wed Jul 30 11:16:00 CDT 2008
INFO: Server Process for AdminServer in pre is not running..
INFO: Server Process for AdminServer in pre not running ... Starting server
INFO: Started Weblogic server AdminServer in pre Successfully. PID 18786
INFO: Started Weblogic server AdminServer in pre Successfully.
INFO: Finished WeblogicAdmin for pre with status 0 : Wed Jul 30 11:17:13 CDT 2008
Admin Server in pre started successfully ..
Starting Managed Server pre_srv_01 in pre ...
INFO: Starting WeblogicAdmin with action START for pre : Wed Jul 30 11:17:13 CDT 2008
INFO: Server Process for pre_srv_01 in pre is not running..
INFO: Server Process for pre_srv_01 in pre not running ... Starting server
INFO: Started Weblogic server pre_srv_01 in pre Successfully. PID 19013
INFO: Started Weblogic server pre_srv_01 in pre Successfully.
INFO: Finished WeblogicAdmin for pre with status 0 : Wed Jul 30 11:19:08 CDT 2008
Starting Managed Server pre_srv_02 in pre ...
INFO: Starting WeblogicAdmin with action START for pre : Wed Jul 30 11:19:10 CDT 2008
INFO: Server Process for pre_srv_02 in pre is not running..
INFO: Server Process for pre_srv_02 in pre not running ... Starting server
INFO: Started Weblogic server pre_srv_02 in pre Successfully. PID 19224
INFO: Started Weblogic server pre_srv_02 in pre Successfully.
INFO: Finished WeblogicAdmin for pre with status 0 : Wed Jul 30 11:20:50 CDT 2008

*************************************************************
Looking at the message I assume weblogic is able to comminicate with terracotta but I don't see client logs which is bothering me.
I can not run admin tool because I have text only access to unix machines


I don't see any client log, Does that mean there is no client communicating with terracotta server. In tc-config.xml the location for the client log is specified with
<clients>
<logs>%(user.home)/terracotta/client-logs</logs>
</clients>
Hi
I am new to terracotta and trying to run some tests with weblogic on UNIX. My questiuon is how do we check logs and status of terracotta when there is no GUI support. I tried to server logs and statistics but they look like binary files.
Aryaan
 
Profile for Aryaan -> Messages posted by Aryaan [13]
Go to:   
Powered by JForum 2.1.7 © JForum Team