Sei sulla pagina 1di 8

Hey, thanks for coming and checking out the additional information.

Due to
being pressed for time, what Ive got here isnt as comprehensive as Id have
liked, but if you have any questions about the presentation, please email me at
kpowe@integral-techsolutions.com or send me a message on Twitter at
@kapowe
So, what do we have?

Contents
FBI Forensics Document..................................................................................... 1
A Random Thought............................................................................................. 1
On Reading Exceptions....................................................................................... 2
Configuring millisecond precision in server logs.................................................2
You can also use the DateFormatString in the admin console in later versions of
WebLogic Server as well..................................................................................... 2
WebLogic Server debug flags............................................................................. 2
Redirecting standard out.................................................................................... 3
How To Enable JMS Logging................................................................................ 4
How To Enable OSB Message/Execution Tracing.................................................5
TMTRACE and Tuxedo......................................................................................... 6
Some relevant documentation links...................................................................6
Tools................................................................................................................... 7
Bonus Round Links............................................................................................. 7
Where To Find Me On The Web........................................................................... 7

FBI Forensics Document


By the way, if youre ever having a slow evening, the FBI have a 202 page PDF
on their website of all the different types of evidence they accept as part of
investigations, and the required treatment procedures. You can read it here:
http://www.fbi.gov/about-us/lab/handbook-of-forensic-services-pdf/view

A Random Thought
When youre building hypotheses, false starts can be demoralising, but theyre a
good thing. After all, Edison invented a thousand ways to not build a light bulb
before he invented the first commercially viable incandescent light. He didnt
invent the light bulb itself, funnily enough. Also, one of the best parts of the film

The Prestige (http://www.imdb.com/title/tt0482571/) is the Edison/Tesla rivalry


playing out in the background.

On Reading Exceptions
Another thing I didnt get time to mention in the presentation when youre
reading exceptions, its often the very top and the very bottom of a stack trace
that are the most interesting. We get so much repeated information because the
exception is bubbling up through so many layers, being caught and rethrown,
before it finally reaches the top. Also, the heavily nested nature of code
execution can add some rather dense layering to stack traces.

Configuring millisecond precision in server logs


One thing I alluded to but didnt get a chance to talk about in the presentation
was configuring millisecond precision for WebLogic Server log files. You can do
this by using either log4j or the JDK logging implementation, and modifying the
configuration file used to specify log file format.
Theres more information here as a starting point:
http://download.oracle.com/docs/cd/E12840_01/wls/docs103/logging/config_logs.
html
You can also use the DateFormatString in the admin console in later versions of
WebLogic Server as well.

WebLogic Server debug flags


Ive gone through the list of debug flags available in the admin console, and
heres a list of the
default. DebugJNDI
default.DebugLoadBalancing
default.DebugMuxer
default.DebugSSL
weblogic.classloader.ClassLoader
weblogic.classloader.verbose.ClassLoaderVerbose
weblogic.cluster.leasing.databaseless.DebugConsensusLeasing
weblogic.core.cluster.DebugCluster

weblogic.core.cluster.DebugReplication
weblogic.debug.cluster.DebugServerMigration
weblogic.deploy.DebugDeploy
weblogic.deploy.DebugDeployment
weblogic.descriptor.DebugDescriptor
weblogic.jdbc.connection.DebugJDBCConn
weblogic.jdbc.sql.DebugJDBCSQL
weblogic.jdbc.transaction.DebugJTAJDBC
weblogic.jms.common.DebugJMSCommon
weblogic.jms.config.DebugJMSConfig
weblogic.jms.DebugMessagingKernel
weblogic.jms.store.DebugJMSStore
weblogic.servlet.DebugHttp
weblogic.servlet.DebugURLResolution
weblogic.servlet.internal.DebugHttp
weblogic.servlet.session.DebugHttpSessions
weblogic.servlet.logging.DebugHttpLogging
weblogic.transaction.xa.DebugJTAXA
weblogic.work.DebugSelfTuning
weblogic.work.j2ee.DebugSelfTuning

Redirecting standard out


Heres where you can find the relevant flag in the WebLogic administration
console.
1) First of all, go to Servers in the Domain Structure tree, then the Logging /
General tab

2) Expand the Advanced section, and youll find it there, along with some
other very useful configuration.

How To Enable JMS Logging


1) Go to Services / JMS Modules in the Domain Structure tree, then select a
JMS queue inside a JMS module

2) Select the Configuration / Logging tab. From there, all configuration


options for logging for that destination are available:

How To Enable OSB Message/Execution Tracing


1) In the OSB Administration console, create a Change Session.
2) Navigate in the Project Explorer or Resource Browser to the relevant proxy
service.
3) Select the Operational Settings tab. From there, the Execution and
Message Tracing settings are available.

TMTRACE and Tuxedo


I mention TMTRACE in the presentation, but dont really have time to go into it.
To be completely self-aggrandizing, I wrote a blog post about it a while back. My
professional blog has suffered a little for attention as theres about five different
places I write at the moment, and tech consulting is only of the subject matters...
You can find the relevant post here: http://kevin-powe.nerdfu.net/blog/?p=41

Some relevant documentation links


http://download.oracle.com/docs/cd/E12840_01/wls/docs103/logging/logging_ser
vices.html

More information on WebLogic logging services, including WebLogic Servers log


file format.

http://download.oracle.com/docs/cd/E13222_01/wls/docs81/adminguide/web_ser
ver.html#107656
An exhaustive reference on the HttpAccountingInfo class.

http://www.w3.org/TR/WD-logfile.html
W3C page on the Extended Log File Format.

http://en.wikipedia.org/wiki/List_of_HTTP_status_codes
Wikipedia list of HTTP status codes.

http://www.w3.org/Daemon/User/Config/Logging.html#common_logfile_format
Good W3C reference on common access log format.

Tools
Heres where you can find out more about useful tools:

Splunk: http://www.splunk.com/
R: http://www.r-project.org/
The Gun: http://www.movsd.com/thegun.htm

Bonus Round Links


Edward Tufte
If youre curious about representing data elegantly, you NEED to check out
Edward Tuftes books. His stuff is amazing. http://www.edwardtufte.com/tufte/

Creating Passionate Users

And Kathy Sierras sadly defunct Creating Passionate Users blog, the place I
found out about Edward Tufte, deserves to go along with every set of links.
http://headrush.typepad.com/

Where To Find Me On The Web


If you want to find me on the web, you can find me at the following places:
http://www.twitter.com/kapowe
http://www.linkedin.com/in/kevinpowe
Theres a bunch of other places, but theyre the

Also you can find my Pinboard bookmarks here:


http://pinboard.in/u:kapowe/
(if you use Pinboard, add me to your network!)

Potrebbero piacerti anche