JBoss Startup Errror?
I am in verse to install JBoss on CEntOS VM MAchine.My Memory statistics are:
Code:
[root@webserver bin]# free -m Code:
[root@webserver bin]# ./run.sh What should be right parameter to enter for -Xms and -Xmx? |
Hi,
Starting with: 249 Mb memory isn't that much too begin with. I do remember reading that the jboss specs tell to have at least 512 Mb mem present, 1Gb (or more) is preferred. The -Xms/Xmx size depends on what else is running on your machine. If jboss is the only other thing: keep +/- 10% of your total mem (_not_ including swap space) for the system itself, the rest could be given to jboss. If other applications are also running you need to figure out what amount of mem they take and subtract it as well. Also start with an Xms that is half the size of Xmx. Not a question which has a fixed answer..... Anyway, hope this helps. |
Hey, I dont know how it happened.
All I did is increased the memory to max: 600 and min: 512 But when I tried running this command it worked !!! Code:
[root@webserver bin]# /opt/jboss-eap-4.3/jboss-as/bin/run.sh -c minimal |
Hi,
Are you doing wrong? If it works it works, so nothing wrong there. But.... Do keep in mind that your box is probably swapping pages to and from your swap space because of this. 249 Mb real mem + 509 swap is enough to handle the 600 Mb jboss is given/wants, but as you can see that includes swap. Not necessarily wrong but it will put a strain on your box if jboss gets (very?) busy. Hope this helps. |
I am facing an issue now.
I have been reading a book "Jboss at work" and trying to move a jar.war(from one of fictitious project chapter ch01/) into $JBOSS_HOME/server/default/deploy directory and run the JBoss as above with minimal option. But when I am trying to browse http://<ip>:8080/jaw/ its not working. |
Hi,
Looking at the output you posted in reply #3 you started the minimal server, not the default one. Could that be the problem? Hope this helps. |
I tried putting it under minimal:
Code:
[root@webserver deploy]# ls ========================================================================= JBoss Bootstrap Environment JBOSS_HOME: /opt/jboss-eap-4.3/jboss-as JAVA: /opt/jdk1.6.0_17/bin/java JAVA_OPTS: -Dprogram.name=run.sh -server -Xms512m -Xmx600m -XX:PermSize=512m -XX:MaxPermSize=600m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true CLASSPATH: /opt/jboss-eap-4.3/jboss-as/bin/run.jar:/opt/jdk1.6.0_17/lib/tools.jar ========================================================================= 22:19:58,972 INFO [Server] Starting JBoss (MX MicroKernel)... 22:19:58,974 INFO [Server] Release ID: JBoss [EAP] 4.3.0.GA_CP01 (build: SVNTag=JBPAPP_4_3_0_GA_CP01 date=200804211657) 22:19:58,976 INFO [Server] Home Dir: /opt/jboss-eap-4.3/jboss-as 22:19:58,976 INFO [Server] Home URL: file:/opt/jboss-eap-4.3/jboss-as/ 22:19:58,977 INFO [Server] Patch URL: null 22:19:58,977 INFO [Server] Server Name: minimal 22:19:58,978 INFO [Server] Server Home Dir: /opt/jboss-eap-4.3/jboss-as/server/minimal 22:19:58,978 INFO [Server] Server Home URL: file:/opt/jboss-eap-4.3/jboss-as/server/minimal/ 22:19:58,978 INFO [Server] Server Log Dir: /opt/jboss-eap-4.3/jboss-as/server/minimal/log 22:19:58,979 INFO [Server] Server Temp Dir: /opt/jboss-eap-4.3/jboss-as/server/minimal/tmp 22:19:58,980 INFO [Server] Root Deployment Filename: jboss-service.xml 22:19:59,493 INFO [ServerInfo] Java version: 1.6.0_17,Sun Microsystems Inc. 22:19:59,494 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 14.3-b01,Sun Microsystems Inc. 22:19:59,494 INFO [ServerInfo] OS-System: Linux 2.6.18-164.el5,i386 22:19:59,891 INFO [Server] Core system initialized 22:20:00,746 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml 22:20:01,146 ERROR [URLDeploymentScanner] Incomplete Deployment listing: --- Packages waiting for a deployer --- org.jboss.deployment.DeploymentInfo@21c570b0 { url=file:/opt/jboss-eap-4.3/jboss-as/server/minimal/deploy/jaw.war } deployer: null status: null state: INIT_WAITING_DEPLOYER watch: file:/opt/jboss-eap-4.3/jboss-as/server/minimal/deploy/jaw.war altDD: null lastDeployed: 1266857401143 lastModified: 1266857401000 mbeans: --- Incompletely deployed packages --- org.jboss.deployment.DeploymentInfo@21c570b0 { url=file:/opt/jboss-eap-4.3/jboss-as/server/minimal/deploy/jaw.war } deployer: null status: null state: INIT_WAITING_DEPLOYER watch: file:/opt/jboss-eap-4.3/jboss-as/server/minimal/deploy/jaw.war altDD: null lastDeployed: 1266857401143 lastModified: 1266857401000 mbeans: 22:20:01,151 INFO [Server] JBoss (MX MicroKernel) [4.3.0.GA_CP01 (build: SVNTag=JBPAPP_4_3_0_GA_CP01 date=200804211657)] Started in 2s:169ms [/code] Still the web browser not working. |
Hi,
Why do you use the minimal server? Try using the default, that could solve the problem. If not: Are you sure the war file is working and without errors? |
I am using minimal coz I have less RAM to be allocated to my VM.
Only I can use minimal option as the default needs 1 GB atleast. |
I tried with default folder and it seems to be correctly running:
Code:
[root@webserver bin]# ./run.sh -c first -b localhost http://<ip>:?/jaw/ |
Hi,
That looks like normal output when starting up jboss. The warnings are there for a reason, but are no show stopper (both are related to configuration stuff). You should be able to reach it using: http://localhost:8080/. But maybe you need something extra (depends on the java program). Have a look at the server.xml (the one somewhere in ../jboss-as/server/first). The shouls be a Connector port entry with a value, thats the default for this server (first in this case). Hope this helps. |
I can browse http://<ip>:8000 from my remote machine
but when I try browsing http://<ip>:8080 its not working. Error firefox reports: # The site could be temporarily unavailable or too busy. Try again in a few moments. # If you are unable to load any pages, check your computer's network connection. # If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web. I checked nmap from remote machine and it does show nothing about 8080. What could be the issue. |
Good to see stuffs working now.
All i tried putting it lke this way: ./run.sh -c default -b 10.209.37.73 all And it worked !!! Now I can see the Jboss Interface on Web Browser without any issue. But wonder ..I dont see anything with jboss-server.xml...All i can see jboss-services.xml. Also , How can i access those values: * Tomcat status (full) (XML) * JMX Console * JBoss Web Console |
Hi,
JMX console -> http://<IP>:8080/jmx-console Hope this helps. |
Hi,
An add-on on my previous reply, didn't have the time for a more elaborate answer..... I'm not sure if you know this already, but if you use -b 0.0.0.0 when starting up, jboss will listen on all interfaces. I don't know enough about Tomcat to give you any advise, although it (tomcat) is not integrated in jboss. I don't think you can get status info for tomcat from jboss. jboss web console -> http://<IP>:8080/web-console Have fun! |
All times are GMT -5. The time now is 02:19 AM. |