mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noel Rouvignac
29.46.2014 56bbc252a092fbf5ef22c0d0bc7bb3cff59dc9f2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
 * CDDL HEADER START
 *
 * The contents of this file are subject to the terms of the
 * Common Development and Distribution License, Version 1.0 only
 * (the "License").  You may not use this file except in compliance
 * with the License.
 *
 * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
 * or http://forgerock.org/license/CDDLv1.0.html.
 * See the License for the specific language governing permissions
 * and limitations under the License.
 *
 * When distributing Covered Code, include this CDDL HEADER in each
 * file and include the License file at legal-notices/CDDLv1_0.txt.
 * If applicable, add the following below this CDDL HEADER, with the
 * fields enclosed by brackets "[]" replaced with your own identifying
 * information:
 *      Portions Copyright [yyyy] [name of copyright owner]
 *
 * CDDL HEADER END
 *
 *
 *      Copyright 2006-2008 Sun Microsystems, Inc.
 */
 
 
 
/**
 * Contains the implementation of the Directory Server plugin that acts as an
 * embedded profiler that can be used for performance analysis of the server
 * under load.  This plugin uses repeated calls to the the
 * <CODE>Thread.getAllStackTraces()</CODE> at regular intervals in order to
 * construct a picture of the particular method calls that seem to take a
 * significant percentage of the Directory Server processing time.  This
 * information may be used to help identify potential targets for performance
 * improvement by highlighting which methods are most frequently called.
 * <BR><BR>
 * The profiler is implemented as a Directory Server startup plugin so that it
 * is made available for use at any point while the server is running.  However,
 * enabling this plugin only causes it to register with the server as a
 * configurable component that will watch for modifications to the
 * ds-cfg-profileAction attribute.  If this attribute is modified to have a
 * value of "start", then the profiler will begin capturing stack trace
 * information until it is modified again with a value of "stop", at which point
 * it will stop profiling and write the captured information to a binary file on
 * the server filesystem, or "cancel", at which point it will stop profiling and
 * discard any information that it had collected.
 * <BR><BR>
 * This package also contains a tool that can be used to view the information
 * in this binary stack trace capture file.  The tool may operate in a simple
 * command-line mode as well as a more flexible and potentially more useful GUI
 * mode.
 */
@org.opends.server.types.PublicAPI(
     stability=org.opends.server.types.StabilityLevel.PRIVATE)
package org.opends.server.plugins.profiler;