[
http://jira.jboss.com/jira/browse/JBAS-5240?page=comments#action_12401725 ]
Galder Zamarreno commented on JBAS-5240:
----------------------------------------
I'm not sure I understand what you mean Dimitris. If you see the
wiki I pointed out in the description, you'll I've added the following:
"By default, command line parameters passed to JBoss Application
Server on startup are only logged in the console output. Within the
scope of remote support, this leads to users/customers being asked
to provide these options explicitly, as console output is often lost.
This can be avoided by adding the following line to java execution in
run.sh/bat:
-Djboss.java.opts="$JAVA_OPTS" \
to make the script look something like this:
...
if [ "x$LAUNCH_JBOSS_IN_BACKGROUND" = "x" ]; then
# Execute the JVM in the foreground
"$JAVA" $JAVA_OPTS \
-Djava.endorsed.dirs="$JBOSS_ENDORSED_DIRS" \
-Djboss.java.opts="$JAVA_OPTS" \
-classpath "$JBOSS_CLASSPATH" \
org.jboss.Main "$@"
JBOSS_STATUS=$?
else
# Execute the JVM in the background
"$JAVA" $JAVA_OPTS \
-Djava.endorsed.dirs="$JBOSS_ENDORSED_DIRS" \
-Djboss.java.opts="$JAVA_OPTS" \
-classpath "$JBOSS_CLASSPATH" \
org.jboss.Main "$@" &
JBOSS_PID=$!
...
On startup, ServerInfo class prints all system properties set on startup
to boot.log and so, by adding this new system property, we're effectively
forcing boot.log to print command line parameters passed on startup:
00:18:50,045 DEBUG [ServerInfo] jboss.java.opts: -Dprogram.name=run.sh -server
-Xms128m -Xmx512m
-Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Xdebug
-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y"
This solution worked fine for me. Am I missing something?
boot.log should print command line options ($JAVA_OPTS) by default
------------------------------------------------------------------
Key: JBAS-5240
URL:
http://jira.jboss.com/jira/browse/JBAS-5240
Project: JBoss Application Server
Issue Type: Task
Security Level: Public(Everyone can see)
Components: Other
Affects Versions: JBossAS-5.0.0.Beta4, JBossAS-4.2.2.GA
Reporter: Galder Zamarreno
Assigned To: Galder Zamarreno
Priority: Critical
Fix For: JBossAS-5.0.0.CR1, JBossAS-4.2.3.GA
To help remote support, AS should by default log command line options
within boot.log as explained in " Logging command line options in boot.log"
section in
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossBootLogging
Thoughts?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira