Cookies are used to collect information about you. Nexus uses this information to give you a better experience of the website (functional) and to count the pages you visit (statistics).
Click OK to give Nexus your consent to use cookies. Read more about Nexus' cookie policy.
# Login to the host
ssh user@machine
su - docker
# Check logs
cd compose/hermod
docker-compose logs -f --tail=100
Check metrics
Hermod stores metrics since the last restart. These can be viewed via a http request.
To view the Hermod metrics:
Example: Check metrics
TEXT
# Find the current port for an Hermod instance (33700 in this case)
docker-compose ps | grep hermod_hermod
hermod_hermod_1 ./fatjar-entrypoint.sh app ... Up 0.0.0.0:33700->20400/tcp
# Use curl to get metrics (You can use https://jsonformatter.curiousconcept.com/ to format the output)
curl http://localhost:33600/<contextPath>/metrics
{
"mem":673568,
"mem.free":336830,
"processors":2,
"instance.uptime":57997012,
"uptime":58006488,
"systemload.average":0.0,
"heap.committed":579072,
"heap.init":112640,
"heap.used":242241,
"heap":1585664,
"nonheap.committed":96768,
"nonheap.init":2496,
"nonheap.used":94496,
"nonheap":0,
"threads.peak":50,
"threads.daemon":23,
"threads.totalStarted":2493,
"threads":49,
"classes":10343,
"classes.loaded":10343,
"classes.unloaded":0,
"gc.ps_scavenge.count":22,
"gc.ps_scavenge.time":294,
"gc.ps_marksweep.count":2,
"gc.ps_marksweep.time":142,
...
}