Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » Anyone who modified startup script of JBoss "run.sh" for TPTP Profiler, pls show me
Anyone who modified startup script of JBoss "run.sh" for TPTP Profiler, pls show me [message #120102] Thu, 03 January 2008 14:41 Go to next message
Eclipse User
Originally posted by: takashi.s.interplay.blogdns.com

Hello there,

I try to profile remote JBoss Server running in LINUX(64bit SUSE).
Environmental details are

===
OS: SUSE 9.3 (64bit)
Eclipse: 3.2
Java: 1.5.0_10
Target Server: jboss-4.2.2.GA
TPTP (Installed from Eclipse)
TPTP Agent controller 4.4.0.3
===

I modified JBoss startup script "run.sh" like this,
(This is between line 178 and 191)
============================
# Setup JBoss specific properties
JAVA_OPTS="-Dprogram.name=$PROGNAME $JAVA_OPTS"
JAVA_OPTS=" -agentlib:JPIBootLoader=JPIAgent:server=enabled;CGProf
$JAVA_OPTS"

# Setup the java endorsed dirs
JBOSS_ENDORSED_DIRS="$JBOSS_HOME/lib/endorsed"

# For Cygwin, switch paths to Windows format before running java
if $cygwin; then
JBOSS_HOME=`cygpath --path --windows "$JBOSS_HOME"`
JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
JBOSS_CLASSPATH=`cygpath --path --windows "$JBOSS_CLASSPATH"`
JBOSS_ENDORSED_DIRS=`cygpath --path --windows "$JBOSS_ENDORSED_DIRS"`
fi
============================

I added this statement around line 180,
JAVA_OPTS=" -agentlib:JPIBootLoader=JPIAgent:server=enabled;CGProf
$JAVA_OPTS"

After editing it, I tried to startup JBoss with this modified script and got
this error.


=====================
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# SIGSEGV (0xb) at pc=0x00002aaaae3bf4b1, pid=4820, tid=47377350654720
#
# Java VM: Java HotSpot(TM) 64-Bit Server VM (1.5.0_10-b03 mixed mode)
# Problematic frame:
# J java.nio.ByteBuffer.arrayOffset()I
#
# An error report file with more information is saved as hs_err_pid4820.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
../run.sh: line 248: 4820 Aborted "$JAVA"
$JAVA_OPTS -Djava.endorsed.dirs="$JBOSS_ENDORSED_DIRS" -classpath
"$JBOSS_CLASSPATH" org.jboss.Main "$@"
=====================


What causes this error??? Does anyone face problem??
In my opinion, it is caused by my added statement.
Because when I delete the statement, it starts well.
Therefore, there might be some error in my added statement below,
JAVA_OPTS=" -agentlib:JPIBootLoader=JPIAgent:server=enabled;CGProf
$JAVA_OPTS"

Could anyone specify the error of it?? Also, if it's possible I want to see
the file collectly edited.
Because I got no information when I tried to google....


Best regards

Takashi
Re: Anyone who modified startup script of JBoss "run.sh" for TPTP Profiler, pls show me [message #120937 is a reply to message #120102] Wed, 16 January 2008 12:16 Go to previous message
Asaf Yaffe is currently offline Asaf Yaffe
Messages: 333
Registered: July 2009
Senior Member
Takashi,

Can you please post the JVM crash log file?

Thanks,
Asaf


> Hello there,
>
> I try to profile remote JBoss Server running in LINUX(64bit SUSE).
> Environmental details are
>
> ===
> OS: SUSE 9.3 (64bit)
> Eclipse: 3.2
> Java: 1.5.0_10
> Target Server: jboss-4.2.2.GA
> TPTP (Installed from Eclipse)
> TPTP Agent controller 4.4.0.3
> ===
>
> I modified JBoss startup script "run.sh" like this,
> (This is between line 178 and 191)
> ============================
> # Setup JBoss specific properties
> JAVA_OPTS="-Dprogram.name=$PROGNAME $JAVA_OPTS"
> JAVA_OPTS=" -agentlib:JPIBootLoader=JPIAgent:server=enabled;CGProf
> $JAVA_OPTS"
>
> # Setup the java endorsed dirs
> JBOSS_ENDORSED_DIRS="$JBOSS_HOME/lib/endorsed"
>
> # For Cygwin, switch paths to Windows format before running java
> if $cygwin; then
> JBOSS_HOME=`cygpath --path --windows "$JBOSS_HOME"`
> JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
> JBOSS_CLASSPATH=`cygpath --path --windows "$JBOSS_CLASSPATH"`
> JBOSS_ENDORSED_DIRS=`cygpath --path --windows "$JBOSS_ENDORSED_DIRS"`
> fi
> ============================
>
> I added this statement around line 180,
> JAVA_OPTS=" -agentlib:JPIBootLoader=JPIAgent:server=enabled;CGProf
> $JAVA_OPTS"
>
> After editing it, I tried to startup JBoss with this modified script and got
> this error.
>
>
> =====================
> #
> # An unexpected error has been detected by HotSpot Virtual Machine:
> #
> # SIGSEGV (0xb) at pc=0x00002aaaae3bf4b1, pid=4820, tid=47377350654720
> #
> # Java VM: Java HotSpot(TM) 64-Bit Server VM (1.5.0_10-b03 mixed mode)
> # Problematic frame:
> # J java.nio.ByteBuffer.arrayOffset()I
> #
> # An error report file with more information is saved as hs_err_pid4820.log
> #
> # If you would like to submit a bug report, please visit:
> # http://java.sun.com/webapps/bugreport/crash.jsp
> #
> ./run.sh: line 248: 4820 Aborted "$JAVA"
> $JAVA_OPTS -Djava.endorsed.dirs="$JBOSS_ENDORSED_DIRS" -classpath
> "$JBOSS_CLASSPATH" org.jboss.Main "$@"
> =====================
>
>
> What causes this error??? Does anyone face problem??
> In my opinion, it is caused by my added statement.
> Because when I delete the statement, it starts well.
> Therefore, there might be some error in my added statement below,
> JAVA_OPTS=" -agentlib:JPIBootLoader=JPIAgent:server=enabled;CGProf
> $JAVA_OPTS"
>
> Could anyone specify the error of it?? Also, if it's possible I want to see
> the file collectly edited.
> Because I got no information when I tried to google....
>
>
> Best regards
>
> Takashi
>
>
>
>
>


--
Asaf Yaffe
Eclipse TPTP Committer, JVMTI Profiler
Previous Topic:Running TPTP AGR tests from ant script
Next Topic:problems in WAS 6.1
Goto Forum:
  


Current Time: Thu Oct 23 11:14:05 GMT 2014

Powered by FUDForum. Page generated in 0.10525 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software