Skip to content

Commit 5f2d3aa

Browse files
authored
Update 1_setup.md
1 parent eb6d5ea commit 5f2d3aa

File tree

1 file changed

+7
-4
lines changed
  • content/learning-paths/servers-and-cloud-computing/java-perf-flamegraph

1 file changed

+7
-4
lines changed

content/learning-paths/servers-and-cloud-computing/java-perf-flamegraph/1_setup.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ tar xzf apache-tomcat-11.0.9.tar.gz
3131

3232
3. If you intend to access the built-in examples of Tomcat via an intranet IP or even an external IP, you need to modify a configuration file as shown:
3333
```bash
34-
vim apache-tomcat-11.0.9/webapps/examples/META-INF/context.xml
34+
vi apache-tomcat-11.0.9/webapps/examples/META-INF/context.xml
3535
```
36-
Then change the values:
37-
```console
36+
Then change the allow value as shown and save the changes:
37+
```output
3838
# change <Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1" />
3939
# to
40-
# <Valve className="org.apache.catalina.valves.RemoteAddrValve" allow=".*" />
40+
<Valve className="org.apache.catalina.valves.RemoteAddrValve" allow=".*" />
4141
```
4242
Now you can start Tomcat Server:
4343
```bash
@@ -65,6 +65,9 @@ Tomcat started.
6565
## Setup Benchmark Client - [wrk2](https://github.com/giltene/wrk2)
6666
`wrk2` is a high-performance HTTP benchmarking tool specialized in generating constant throughput loads and measuring latency percentiles for web services. `wrk2` is an enhanced version of `wrk` that provides accurate latency statistics under controlled request rates, ideal for performance testing of HTTP servers.
6767

68+
Currently `wrk2` is only supported on x86 machines. You will run the Benchmark Client steps shown below on an x86_64 Linux machine.
69+
70+
6871
1. To use `wrk2`, you will need to install some essential tools before you can build it:
6972
```bash
7073
sudo apt-get update

0 commit comments

Comments
 (0)