This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes run.sh and run.conf configuration in JBoss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "run.sh and run.conf configuration in JBoss" Watch "run.sh and run.conf configuration in JBoss" New topic
Author

run.sh and run.conf configuration in JBoss

jaya kemmannu
Ranch Hand

Joined: Sep 23, 2011
Posts: 83
Hi,

I have made changes in run.sh and run.conf file present in j boss after this j boss is not able to start. Changes done are below :

j boss version 4.2.2
OS : HP unix B.11.23




Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9947
    
160

What error are you seeing?

[My Blog] [JavaRanch Journal]
jaya kemmannu
Ranch Hand

Joined: Sep 23, 2011
Posts: 83


Not able to see any Error in boot.log or nothing is eing displayed in server.log. Any other log files to find out the error ?
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9947
    
160

Open a command prompt and then type run.sh. Post whatever output it shows.
jaya kemmannu
Ranch Hand

Joined: Sep 23, 2011
Posts: 83

# ./run.sh
=========================================================================

JBoss Bootstrap Environment

JBOSS_HOME: /opt/HP/jboss

JAVA: /opt/java1.5/bin/java

JAVA_OPTS: -Dprogram.name=run.sh -server -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=3000
-Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -server
-Xss1m -XX:PermSize=128m -XX:MaxPermSize=256m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=
/logs/ -verbose:gc -XX:+PrintGCDetails -Xloggc:/logs/gc.log -XX:+PrintGCTimeStamps -XX:NewRatio=2
-XX:+UseParallelGC -XX:+UseParallelOldGC -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000

CLASSPATH: /opt/HP/jboss/bin/run.jar:/opt/java1.5/lib/tools.jar

=========================================================================

Unrecognized VM option '+HeapDumpOnOutOfMemoryError'
Could not create the Java virtual machine.

+HeapDumpOnOutOfMemoryError' do you think not supported by HP-UX.... The same options works with RHEL 5.3.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9947
    
160

jaya kemmannu wrote:
Unrecognized VM option '+HeapDumpOnOutOfMemoryError'
Could not create the Java virtual machine.

+HeapDumpOnOutOfMemoryError' do you think not supported by HP-UX.... The same options works with RHEL 5.3.


That's a VM option, which means that the Java vendor/version that's being run on HP-UX doesn't support that option.
jaya kemmannu
Ranch Hand

Joined: Sep 23, 2011
Posts: 83

The same version of JAVA (1.5) used in RHEL dont give any Exception. is this OS specific ?
jaya kemmannu
Ranch Hand

Joined: Sep 23, 2011
Posts: 83

MY java version is

# java -version
java version "1.5.0.03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0.03-_13_feb_2006_16_39)
Java HotSpot(TM) Server VM (build 1.5.0.03 jinteg:02.13.06-21:25 IA64, mixed mode)
You have mail in /var/mail/root
#
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9947
    
160

jaya kemmannu wrote:
MY java version is

# java -version
java version "1.5.0.03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0.03-_13_feb_2006_16_39)


As per this page http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&lc=en&dlc=en&docname=c01496541 (which I found after I googled for that error), you need a higher version of Java to use that VM option.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: run.sh and run.conf configuration in JBoss
 
Similar Threads
How to Enable SSL on Tomcat 7 on Linux?
Tidying up my code?
Managing SAPJCO Exceptions in JBoss AS 5
Jboss 5.1 Jndi related problem
Step by steyp JNDI look up with jboss 7.1