Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: premium-minds/native-memory-agent
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: native-memory-agent-1.0
Choose a base ref
...
head repository: premium-minds/native-memory-agent
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 4 commits
  • 2 files changed
  • 2 contributors

Commits on May 26, 2023

  1. Copy the full SHA
    ff4a831 View commit details
  2. Update README.md

    froque authored May 26, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    65f0d43 View commit details

Commits on Oct 2, 2023

  1. Update README.md

    froque authored Oct 2, 2023
    Copy the full SHA
    69edbd5 View commit details
  2. Update README.md

    froque authored Oct 2, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    c1ef6e9 View commit details
Showing with 13 additions and 4 deletions.
  1. +11 −2 README.md
  2. +2 −2 pom.xml
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,33 @@
# Native Memory Agent

Java agent to send native memory metrics to Stats
Java agent to send native memory metrics to StatsD using UDP, every 5 seconds.

## Build

```shell
mvn clean package
```

## Release

```shell
/opt/maven/apache-maven-3.9.2/bin/mvn release:prepare
/opt/maven/apache-maven-3.9.2/bin/mvn release:perform -Darguments="-Dmaven.deploy.skip=true"
```

## Usage

```shell
wget https://docs.oracle.com/javase/tutorial/networking/sockets/examples/EchoServer.java
nc -l -u -p 8125
java -javaagent:target/native-memory-agent-1.0-SNAPSHOT.jar=localhost:8125,foo=bar \
java -javaagent:target/native-memory-agent-1.0.jar=localhost:8125,foo=bar \
-XX:NativeMemoryTracking=summary \
EchoServer.java 8080
```

* `-XX:NativeMemoryTracking=summary` or `-XX:NativeMemoryTracking=detail` is required to active native memory tracking
* `localhost:8125` is the address for a UDP StatsD server
* `foo=bar` are tags to be sent along with metrics, delimted by a comma


## Acknowledgements
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -4,13 +4,13 @@

<groupId>org.example</groupId>
<artifactId>native-memory-agent</artifactId>
<version>1.0</version>
<version>1.1-SNAPSHOT</version>

<scm>
<connection>scm:git:git@github.com:premium-minds/native-memory-agent.git</connection>
<developerConnection>scm:git:git@github.com:premium-minds/native-memory-agent.git</developerConnection>
<url>https://github.com/premium-minds/native-memory-agent</url>
<tag>native-memory-agent-1.0</tag>
<tag>HEAD</tag>
</scm>

<properties>