• Bug
  • Status: Open
  • 2 Major
  • Resolution:
  • prodmgmt
  • Reporter: tgautier
  • March 22, 2008
  • 0
  • Watchers: 0
  • March 19, 2010

Description

Is there some way to pick the stats buffer better so it doesn’t always give us this message:

INFO] [node] 2008-03-22 19:26:16,622 ERROR - [INFO] [node] ************************************************************************************** [INFO] [node] The statistics buffer couldn’t be opened at [INFO] [node] ‘/Users/tgautier/src/forge/projects/jmx-util/trunk/sample/statistics-192.168.110.101’. [INFO] [node] The CVT system will not be active for this node. [INFO] [node] [INFO] [node] A common reason for this is that you’re launching several Terracotta L1 [INFO] [node] clients on the same machine. The default directory for the statistics buffer [INFO] [node] uses the IP address of the machine that it runs on as the identifier. [INFO] [node] When several clients are being executed on the same machine, a typical solution [INFO] [node] to properly separate these directories is by using a JVM property at startup [INFO] [node] that is unique for each client. [INFO] [node] [INFO] [node] For example: [INFO] [node] dso-java.sh -Dtc.node-name=node1 your.main.Class [INFO] [node] [INFO] [node] You can then adapt the tc-config.xml file so that this JVM property is picked [INFO] [node] up when the statistics directory is configured by using %(tc.node-name) in the [INFO] [node] statistics path. [INFO] [node] ************************************************************************************** [INFO] [node]

Comments

Geert Bevin 2008-03-23

This can’t be done properly unless issue CDV-623 is implemented. FYI, the same is currently happening for log files when several L1s are running on the same node.

Fiona OShea 2008-03-25

PM to add more details on what the exact behaviour should be.

Fiona OShea 2008-04-11

Taylor to review this. As data comes from the field, we will see if this really bothers people

Taylor Gautier 2008-04-11

currently the server defaults to:

logs/xxx statistics/xxx

and the clients:

logs-%id/xxxx statistics-%id/xxxx

To make this a little cleaner, let us do this:

clients: terracotta/logs/xxx terracotta/statistics/xxx

server: terracotta/logs-%id/xxxx terracotta/statistics-%id/xxxx

Fiona OShea 2008-04-29

this should be revisited in 2.6.1i.e. log selection.

orion 2008-08-18

Begin forwarded message:

From: [email protected] Date: August 1, 2008 4:00:47 PM PDT To: [email protected] Subject: [Terracotta] New Topic: Any Fix for CDV-671

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 [email protected] 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?

---------
Read this topic online: http://forums.terracotta.org/forums/posts/list/1292.page#7876
Unsubsribe to this topic: http://forums.terracotta.org/forums/forums/unwatchForum/3.page