cancel
Showing results for 
Search instead for 
Did you mean: 

How to enable LeakHunter in Wily Introscope

Former Member
0 Kudos

Hello all,

I'm running an NW04 SPS18 with Wily Introscope 7.1. I experience java.lang.OutOfMemoryError quit often, so I want to set up Introscope's LeakHunter. I found this Document https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d281836d-0b01-0010-bfa9-ba473646...

which was quite helpful. Nevertheless I can't find the file "leakhunter.pbd" which is mentioned in this doc anywhere. Has anyone successfully set up the LeakHunter already?

kind regards,

Markus

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

I happened to see your message when trying to setup the leakhunter.

I finally got it working - in case this helps I attach the method I followed.

1) I used agent profile “sap_IntroscopeAgent_ipc.profile”.

To enable LeakHunter, set the following parameter:

introscope.agent.leakhunter.enable=true

2) Find which directives file (.pbd) or directives list file (.pbl) is specified – this is seen in parameter:

introscope.autoprobe.directivesFile=sap_ipc_typical.pbl

3) Edit this file, ensuring that the line “leakhunter.pbd” must be uncommented:

  1. Introscope standard pbds

java2.pbd

j2ee.pbd

jvm.pbd

sqlagent.pbd

struts.pbd

errors.pbd

  1. disabled by default leakhunter.pbd

leakhunter.pbd

Restart the J2EE cluster and the leakhunter should be working

regards

Ratna

The leakhunter.pbd contents are pasted below:

########################################################################

  1. Introscope LeakHunter ProbeBuilder Directives File

  2. Wily Technology (tm) Introscope(R) Version 7.0 Release 7.0

  3. Copyright (c) 1998 - 2006 Wily Technology, Inc. All Rights Reserved.

  4. Introscope(R) is a registered trademark of Wily Technology, Inc.

########################################################################

#############################################################

  1. This file provides instrumentation settings for

  2. Introscope LeakHunter, a low overhead leak detection

  3. utility. In most cases you will not need to modify

  4. the contents of this file.

#############################################################

TurnOn: LeakHunter

#######################

  1. Collection support

  2. ================

  3. Lists the supported implementations of java.util.Collection

#

  1. All implementations must be identified directly.

  2. The IdentifyInheritedAs directive can not be used.

#

  1. Other implementations of this interface can be added as

  2. long as the size() method can be called from any thread

IdentifyClassAs: java.util.ArrayList LeakHunter

IdentifyClassAs: java.util.HashSet LeakHunter

IdentifyClassAs: java.util.LinkedHashSet LeakHunter

IdentifyClassAs: java.util.LinkedList LeakHunter

IdentifyClassAs: java.util.Stack LeakHunter

IdentifyClassAs: java.util.TreeSet LeakHunter

IdentifyClassAs: java.util.Vector LeakHunter

  1. Interfaces should be specified too so that field assignment can

  2. work properly

IdentifyClassAs: java.util.Collection LeakHunter

IdentifyClassAs: java.util.List LeakHunter

IdentifyClassAs: java.util.Set LeakHunter

IdentifyClassAs: java.util.SortedSet LeakHunter

#######################

  1. Map support

  2. ================

  3. Lists the supported implementations of java.util.Map

#

  1. All implementations must be identified directly.

  2. The IdentifyInheritedAs directive can not be used.

#

  1. Other implementations of this interface can be added as

  2. long as the size() method can be called from any thread

IdentifyClassAs: java.util.HashMap LeakHunter

IdentifyClassAs: java.util.Hashtable LeakHunter

IdentifyClassAs: java.util.IdentityHashMap LeakHunter

IdentifyClassAs: java.util.LinkedHashMap LeakHunter

IdentifyClassAs: java.util.Properties LeakHunter

IdentifyClassAs: java.util.TreeMap LeakHunter

  1. Interfaces should be specified too so that field assignment can

  2. work properly

IdentifyClassAs: java.util.Map LeakHunter

IdentifyClassAs: java.util.SortedMap LeakHunter

#######################

  1. LeakHunter scope

  2. ================

  3. Defines the set of classes where LeakHunter will

  4. look for potential leaks. This must cover the

  5. class that creates or tracks the collection for

  6. a leak to be identified.

IdentifyAllClassesAs: LeakHunterScope

#########################################################

  1. The following section of the file contains directives #

  2. which implement the LeakHunter tracer group. Do not #

  3. make changes to any of the directives below this line #

  4. or Introscope LeakHunter will not work correctly. #

#########################################################

SetFlag: LeakHunter

TurnOn: LeakHunterScope

SetFlag: LeakHunterScope

NoticeScopedFieldAssignmentIfFlagged: LeakHunter com.wily.introscope.agent.leakhunter.FieldAssignmentEventNoticer LeakHunterScope

NoticeScopedObjectCreationIfFlagged: LeakHunter com.wily.introscope.agent.leakhunter.ObjectCreationEventNoticer LeakHunterScope

Answers (0)