[Jrat-development] Mail delivery failed: returning message to sender
Brought to you by:
jeffdrost
|
From: <ms...@25...> - 2009-12-10 12:26:28
|
Hi,
i´m playing around with jRAT from shiftone-jrat-1-beta1.zip
I experienced the following problems:
- The mail address jr...@sh... seems not to be available anymore
(but it is still in the wiki)
- A working default configuration should be provided
- I added the following line to run.conf of jboss:
JAVA_OPTS="$JAVA_OPTS -javaagent:/opt/jboss/lib/shiftone-jrat.jar -Djboss.shutdown.forceHalt=false "
=> Jboss crashes while starting up, if i remove this line jboss starts properly
(see log output beyond)
=> see the attached jrat.xml file, which was generated by jrat
(see config file beyond)
Best regards
Marc Schöchlin
# /etc/init.d/jboss start; tail -f /opt/jboss/log/jboss.log
Starting JBoss application server: done
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /opt/jboss
JAVA: /usr/lib64/jvm/jre/bin/java
JAVA_OPTS: -Dprogram.name=run.sh -Xms512m -Xmx768m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dcom.sun.management.jmxremote.port=21099 -Dcom.sun.management.jmxremote.password.file=/opt/jboss/server/default/conf/jmx.password -Dcom.sun.management.jmxremote.access.file=/opt/jboss/server/default/conf/jmx.access -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=10.130.61.25 -Dcom.sun.management.jmxremote -javaagent:/opt/jboss/lib/shiftone-jrat.jar -Djboss.shutdown.forceHalt=false -Djava.net.preferIPv4Stack=true
CLASSPATH: /opt/jboss/bin/run.jar
=========================================================================
JRat:INFO (Dec/10 12:34:07,939) (main) Mode - set Mode[runtime]
JRat:INFO (Dec/10 12:34:07,942) (main) ResourceUtil - getPreferences resource : org/shiftone/jrat/version.properties
JRat:INFO (Dec/10 12:34:07,945) (main) Agent - Installing JRat 1-beta1 ClassFileTransformer...
JRat:INFO (Dec/10 12:34:07,946) (main) Mode - locking
JRat:INFO (Dec/10 12:34:07,947) (main) Environment - Initializing configuration file with default...
JRat:INFO (Dec/10 12:34:07,947) (main) Environment - Edit this file to further configure JRat.
JRat:INFO (Dec/10 12:34:07,947) (main) ResourceUtil - getPreferences resource : org/shiftone/jrat/core/default-jrat.xml
JRat:INFO (Dec/10 12:34:07,949) (main) Environment - Loading JRat Configuration : /opt/jboss-5.1.0.GA/bin/jrat.xml...
JRat:INFO (Dec/10 12:34:07,956) (main) Environment - File was last modified Thu Dec 10 12:34:07 CET 2009
JRat:INFO (Dec/10 12:34:07,960) (main) Configuration - exclude java.*
JRat:INFO (Dec/10 12:34:07,962) (main) Configuration - exclude javax.*
JRat:INFO (Dec/10 12:34:07,963) (main) ConfigurationParser - parsing configuration...
JRat:INFO (Dec/10 12:34:08,023) (main) PropertyUtil - org.shiftone.jrat.core.config.Settings.httpServerEnabled = true
JRat:INFO (Dec/10 12:34:08,026) (main) ConfigurationParser - processCriteria <MatcherMethodCriteria><Class><All/></Class><Method><All/></Method><Signature><All/></Signature></MatcherMethodCriteria>
JRat:INFO (Dec/10 12:34:08,029) (main) ServiceFactory - new
JRat:INFO (Dec/10 12:34:08,036) (main) ShutdownRegistry - new
JRat:INFO (Dec/10 12:34:08,036) (main) ShutdownRegistry - registerShutdownListener Transformer[ASM]
JRat:INFO (Dec/10 12:34:08,037) (main) InjectClassFileTransformer - new
JRat:INFO (Dec/10 12:34:08,038) (main) Agent - Installed TryCatchClassFileTransformer[SystemPropertyTweakingTransformer[FilterClassFileTransformer[org.shiftone.jrat.core.config.Configuration@74637463 : InjectClassFileTransformer[Transformer[ASM]]]]].
JRat:INFO (Dec/10 12:34:08,076) (main) ConfigMethodHandlerFactory - Loading profile 'my code'...
JRat:INFO (Dec/10 12:34:08,076) (main) ConfigMethodHandlerFactory - Loading factory org.shiftone.jrat.core.config.Handler@655c655c...
JRat:INFO (Dec/10 12:34:08,081) (main) PropertyUtil - org.shiftone.jrat.provider.tree.TreeMethodHandlerFactory.outputFile = my_code_tree.jrat
JRat:INFO (Dec/10 12:34:08,082) (main) RuntimeContextImpl - new
JRat:INFO (Dec/10 12:34:08,084) (main) ShutdownRegistry - registerShutdownListener FileOutputRegistry[]
JRat:INFO (Dec/10 12:34:08,086) (main) IOUtil - mkdir(/opt/jboss-5.1.0.GA/bin/jrat.output)
JRat:INFO (Dec/10 12:34:08,086) (main) IOUtil - mkdir(/opt/jboss-5.1.0.GA/bin/jrat.output/2009-12-10_PM-12-34-08)
JRat:INFO (Dec/10 12:34:08,086) (main) OutputDirectory - output DIR = /opt/jboss-5.1.0.GA/bin/jrat.output/2009-12-10_PM-12-34-08
JRat:INFO (Dec/10 12:34:08,088) (main) CommandletRegistry - register org.shiftone.jrat.core.command.ListRegistryCommandlet@50f550f5
JRat:INFO (Dec/10 12:34:08,089) (main) CommandletRegistry - register org.shiftone.jrat.core.command.SystemPropertiesCommandlet@5a2a5a2a
JRat:INFO (Dec/10 12:34:08,089) (main) CommandletRegistryFactory - Starting tiny web server...
JRat:INFO (Dec/10 12:34:08,090) (HTTP) TinyWebServer - starting on port 8888...
JRat:INFO (Dec/10 12:34:08,091) (main) FileOutputFactory - createWriter /opt/jboss-5.1.0.GA/bin/jrat.output/2009-12-10_PM-12-34-08/memory.csv
JRat:INFO (Dec/10 12:34:08,091) (main) FileOutputFactory - createOutputStream /opt/jboss-5.1.0.GA/bin/jrat.output/2009-12-10_PM-12-34-08/memory.csv
JRat:INFO (Dec/10 12:34:08,092) (main) FileOutputRegistry - add Writer[memory.csv]
JRat:INFO (Dec/10 12:34:08,093) (main) ShutdownRegistry - registerShutdownListener Memory Monitor
JRat:INFO (Dec/10 12:34:08,095) (main) ConfigMethodHandlerFactory - startup
JRat:INFO (Dec/10 12:34:08,096) (main) ShutdownRegistry - registerShutdownListener Tree Handler Factory
JRat:INFO (Dec/10 12:34:08,097) (main) CommandletRegistry - register org.shiftone.jrat.provider.tree.command.ResetCommandlet@44af44af
JRat:INFO (Dec/10 12:34:08,097) (main) CommandletRegistry - register org.shiftone.jrat.provider.tree.command.WriteOutputCommandlet@4c6f4c6f
JRat:INFO (Dec/10 12:34:08,099) (main) CommandletRegistry - register org.shiftone.jrat.provider.tree.command.DumpOutputCommandlet@52f352f3
12:34:08,475 INFO [ServerImpl] Starting JBoss (Microcontainer)...
12:34:08,476 INFO [ServerImpl] Release ID: JBoss [The Oracle] 5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)
12:34:08,477 INFO [ServerImpl] Bootstrap URL: null
12:34:0URL: file:/opt/jboss-5.1.0.GA/server/
12:34:08,482 INFO [ServerImpl] Server Config URL: file:/opt/jboss-5.1.0.GA/server/default/conf/
12:34:08,482 INFO [ServerImpl] Server Home Dir: /opt/jboss-5.1.0.GA/server/default
12:34:08,483 INFO [ServerImpl] Server Home URL: file:/opt/jboss-5.1.0.GA/server/default/
12:34:08,483 INFO [ServerImpl] Server Data Dir: /opt/jboss-5.1.0.GA/server/default/data
12:34:08,483 INFO [ServerImpl] Server Library URL: file:/opt/jboss-5.1.0.GA/server/default/lib/
12:34:08,484 INFO [ServerImpl] Server Log Dir: /opt/jboss-5.1.0.GA/server/default/log
12:34:08,484 INFO [ServerImpl] Server Native Dir: /opt/jboss-5.1.0.GA/server/default/tmp/native
12:34:08,484 INFO [ServerImpl] Server Temp Dir: /opt/jboss-5.1.0.GA/server/default/tmp
12:34:08,485 INFO [ServerImpl] Server Temp Deploy Dir: /opt/jboss-5.1.0.GA/server/default/tmp/deploy xinclude.XIncludeHandler.emptyElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse_$jrat(SaxJBossXBParser.java:173)
... 14 more
JRat:INFO (Dec/10 12:34:10,143) (JRat-Shutdown) ShutdownRegistry - shutting down...[Transformer[ASM], FileOutputRegistry[Writer[memory.csv], PrintWriter[jrat.log]], Memory Monitor, Tree Handler Factory]
12:34:10,143 INFO [ServerImpl] Runtime shutdown hook called, forceHalt: false
JRat:INFO (Dec/10 12:34:10,144) (JRat-Shutdown) ShutdownRegistry - shutting down Tree Handler Factory...
JRat:INFO (Dec/10 12:34:10,144) (JRat-Shutdown) TreeMethodHandlerFactory - shutdown...
JRat:INFO (Dec/10 12:34:10,145) (JRat-Shutdown) TreeMethodHandlerFactory - writeOutputFile...
JRat:INFO (Dec/10 12:34:10,171) (JRat-Shutdown) FileOutputFactory - createOutputStream /opt/jboss-5.1.0.GA/bin/jrat.output/2009-12-10_PM-12-34-08/my_code_tree.jrat
JRat:INFO (Dec/10 12:34:10,171) (JRat-Shutdown) FileOutputFactory - createOutputStream /opt/jboss-5.1.0.GA/bin/jrat.output/2009-12-10_PM-12-34-08/my_code_tree.jrat
JRat:INFO (Dec/10 12:34:10,173) (JRat-Shutdown) FileOutputRegistry - add OutputStream[my_code_tree.jrat]
12:34:10,257 INFO [ServerImpl] Shutdown complete
Shutdown complete
JRat:INFO (Dec/10 12:34:10,659) (JRat-Shutdown) FileOutputOutputStream - closing
JRat:INFO (Dec/10 12:34:10,659) (JRat-Shutdown) FileOutputRegistry - remove OutputStream[my_code_tree.jrat]
JRat:INFO (Dec/10 12:34:10,660) (JRat-Shutdown) TreeMethodHandlerFactory - shutdown co
# cat jrat.xml
<?xml version="1.0" encoding="UTF-8"?>
<jrat>
<!-- ********************************************************************
** Java Runtime Analysis Toolkit Configuration **
** sample, default configuration file - modify as need **
** Author : Jeff Drost **
********************************************************************* -->
<settings>
<property name="httpServerEnabled" value="true"/>
</settings>
<!--
A profile defines a set of handlers and the criteria that must
be satisfied in order for a method to be monitored with those handlers.
In a single configuration file you can have multiple profile.
-->
<profile name="my code">
<criteria>
<!--
A profile's handlers are used if any of the includes are
satisfied and none of the excludes are.
( includeA or includeB... ) and ( not( excludeA or excludeB... ) )
-->
<!--
<include className="*" methodName="*" signature="*"/>
<exclude className="*" methodName="*" signature="*"/>
-->
<include/>
</criteria>
<handlers>
<!--
The Tree Method Handler is the general purpose included method handler,
but you can choose to write your own. Simply implement MethodHandlerFactory
and get ready to receieve runtime events.
-->
<handler factory="org.shiftone.jrat.provider.tree.TreeMethodHandlerFactory">
<property name="outputFile" value="my_code_tree.jrat"/>
</handler>
</handlers>
</profile>
</jrat>
--
http://www.xing.com/profile/Marc_Schoechlin/
jabber: ms...@25...
|