Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 83 lines (67 sloc) 3.593 kb
a551a6e @scottmac Add some doc files and utilities
scottmac authored
1 <h2>Admin Server URL Commands</h2>
2
3 When running a compiled program as an HTTP server, by default it runs an
4 admin server on a specified port. One can send an HTTP request to this port
5 to perform certain actions. To list all possible commands,
6
f9614ad @haiping [hphpd] bug fixes and improvements
haiping authored
7 GET http://localhost:8088
a551a6e @scottmac Add some doc files and utilities
scottmac authored
8
f77f380 Rename folders before update, this probably won't work :)
Scott MacVicar authored
9 A particular command is like:
10
f9614ad @haiping [hphpd] bug fixes and improvements
haiping authored
11 GET http://localhost:8088/<command-URL>?auth=<password>
f77f380 Rename folders before update, this probably won't work :)
Scott MacVicar authored
12
a551a6e @scottmac Add some doc files and utilities
scottmac authored
13 This is a list of available URLs:
14
15
16 /stop: stop the web server
17 /translate: translate hex encoded stacktrace in 'stack' param
18 stack required, stack trace to translate
19 build-id optional, if specified, build ID has to match
20 bare optional, whether to display frame ordinates
21 /build-id: returns build id that's passed in from command line
22 /check-load: how many threads are actively handling requests
23 /check-mem: report memory quick statistics in log file
24 /check-apc: report APC quick statistics
25 /status.xml: show server status in XML
26 /status.json: show server status in JSON
27 /status.html: show server status in HTML
28 /stats-on: main switch: enable server stats
29 /stats-off: main switch: disable server stats
30 /stats-clear: clear all server stats
31 /stats-web: turn on/off server page stats (CPU and gen time)
32 /stats-mem: turn on/off memory statistics
33 /stats-apc: turn on/off APC statistics
34 /stats-apc-key: turn on/off APC key statistics
35 /stats-mcc: turn on/off memcache statistics
36 /stats-sql: turn on/off SQL statistics
37 /stats-mutex: turn on/off mutex statistics
38 sampling optional, default 1000
39 /stats.keys: list all available keys
40 from optional, <timestamp>, or <-n> second ago
41 to optional, <timestamp>, or <-n> second ago
42 /stats.xml: show server stats in XML
43 /stats.json: show server stats in JSON
44 /stats.kvp: show server stats in key-value pairs
45 /stats.html: show server stats in HTML
46 from optional, <timestamp>, or <-n> second ago
47 to optional, <timestamp>, or <-n> second ago
48 agg optional, aggragation: *, url, code
49 keys optional, <key>,<key/hit>,<key/sec>,<:regex:>
50 url optional, only stats of this page or URL
51 code optional, only stats of pages returning this code
52
53 If program was compiled with GOOGLE_CPU_PROFILER, these commands will become available,
54
55 /prof-cpu-on: turn on CPU profiler
56 /prof-cpu-off: turn off CPU profiler
57
58 If program was compiled with GOOGLE_HEAP_PROFILER, these commands will become available,
59
60 /prof-heap-on: turn on heap profiler
61 /prof-heap-dump: take one snapshot of the heap
62 /prof-heap-off: turn off heap profiler
63 /stats-malloc: turn on/off malloc statistics
64 /leak-on: start leak detection
65 sampling required, frequency
66 /leak-off: end leak detection and report leaking
67 cutoff optional, default 20 seconds, ignore newer allocs
68
69 If program was compiled with GOOGLE_TCMALLOC, these commands will become available,
70
71 /free-mem: ask tcmalloc to release memory to system
72 /tcmalloc-stats: get internal tcmalloc stats
f77f380 Rename folders before update, this probably won't work :)
Scott MacVicar authored
73
74 If program was compiled with USE_JEMALLOC, these commands will become available,
75
b1ee2dd Document /free-mem admin command for jemalloc.
je authored
76 /free-mem: ask jemalloc to release memory to system
f77f380 Rename folders before update, this probably won't work :)
Scott MacVicar authored
77 /jemalloc-stats: get internal jemalloc stats
dcd7a28 @joelpob Updated to the latest bits, fixed the cmake scripts so that hhvm compile...
joelpob authored
78 /jemalloc-stats-print: get comprehensive jemalloc stats in human-readable form
79 /jemalloc-prof-activate: activate heap profiling
80 /jemalloc-prof-deactivate: deactivate heap profiling
81 /jemalloc-prof-dump: dump heap profile
f77f380 Rename folders before update, this probably won't work :)
Scott MacVicar authored
82 file optional, filesystem path
Something went wrong with that request. Please try again.