Hi All,
could you please help me on JBOSS JVM Down, but logs deoes not contain any error.
1.could you please let me , what are causes for JVM down,
2. How to troubleshoot the issue,
3. How to fix the issue
its a rare situation and and don’t have logs . Kindly suggest for solution. I hope might be receive the solution .
What is the version of JBoss you are using?
OK, do you use it in standalone mode? or as a domain.
I ask these questions to find out where your configuration file is and to know where to validate that the logs are active.
Version 6.4 is not the most current, do you use that version for questions with your client?
---
In the folder of your installation (we will call it JBOSS_HOME), this path must exist:
JBOSS_HOME / standalone / configuration
In that folder there is a file called:
standalone.xml
This file has all the configuration of your server.
You are going to locate the subsystem of logs, it is this:
<subsystem xmlns="urn:jboss:domain:logging:1.5">
<console-handler name="CONSOLE">
<level name="INFO"/>
<formatter>
<named-formatter name="COLOR-PATTERN"/>
</formatter>
</console-handler>
<periodic-rotating-file-handler name="FILE" autoflush="true">
<formatter>
<named-formatter name="PATTERN"/>
</formatter>
<file relative-to="jboss.server.log.dir" path="server.log"/>
<suffix value=".yyyy-MM-dd"/>
<append value="true"/>
</periodic-rotating-file-handler>
<logger category="com.arjuna">
<level name="WARN"/>
</logger>
<logger category="org.apache.tomcat.util.modeler">
<level name="WARN"/>
</logger>
<logger category="org.jboss.as.config">
<level name="DEBUG"/>
</logger>
<logger category="sun.rmi">
<level name="WARN"/>
</logger>
<logger category="jacorb">
<level name="WARN"/>
</logger>
<logger category="jacorb.config">
<level name="ERROR"/>
</logger>
<root-logger>
<level name="INFO"/>
<handlers>
<handler name="CONSOLE"/>
<handler name="FILE"/>
</handlers>
</root-logger>
<formatter name="PATTERN">
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
</formatter>
<formatter name="COLOR-PATTERN">
<pattern-formatter pattern="%K{level}%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
</formatter>
</subsystem>
Assign all your logs to DEBUG level:
<subsystem xmlns="urn:jboss:domain:logging:1.5">
<console-handler name="CONSOLE">
<level name="DEBUG"/>
<formatter>
<named-formatter name="COLOR-PATTERN"/>
</formatter>
</console-handler>
<periodic-rotating-file-handler name="FILE" autoflush="true">
<formatter>
<named-formatter name="PATTERN"/>
</formatter>
<file relative-to="jboss.server.log.dir" path="server.log"/>
<suffix value=".yyyy-MM-dd"/>
<append value="true"/>
</periodic-rotating-file-handler>
<logger category="com.arjuna">
<level name="DEBUG"/>
</logger>
<logger category="org.apache.tomcat.util.modeler">
<level name="DEBUG"/>
</logger>
<logger category="org.jboss.as.config">
<level name="DEBUG"/>
</logger>
<logger category="sun.rmi">
<level name="DEBUG"/>
</logger>
<logger category="jacorb">
<level name="DEBUG"/>
</logger>
<logger category="jacorb.config">
<level name="DEBUG"/>
</logger>
<root-logger>
<level name="DEBUG"/>
<handlers>
<handler name="CONSOLE"/>
<handler name="FILE"/>
</handlers>
</root-logger>
<formatter name="PATTERN">
<pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
</formatter>
<formatter name="COLOR-PATTERN">
<pattern-formatter pattern="%K{level}%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
</formatter>
</subsystem>
Restart your server.
All the logs are in the folder:
JBOSS_HOME/standalone/log
Whatever happens, it must be reflected in the logs.
----
hi @RuGI,
thanks for share valuable information . i will configure accordingly .finally awesome .
All right!
Tell us if that configuration solves your problem. ;)
---
Hi @RuGI,
i configure DEBUG in all level as per your document in standalone.xml . I hope in future if JVM automatically stop then logs will be generate for the issue. Thanks for your valuable support.
You're welcome!
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.