https://github.com/tomitribe/cores
https://github.com/tomitribe/cores
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tomitribe/cores
- Owner: tomitribe
- License: apache-2.0
- Created: 2023-08-08T19:24:04.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-03T12:44:59.000Z (over 1 year ago)
- Last Synced: 2025-11-07T02:00:45.450Z (7 months ago)
- Language: Java
- Size: 13.7 KB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Count cores allocated to a Tomcat, TomEE or ActiveMQ instance. Steps:
- Download the [cores.jar](https://github.com/tomitribe/cores/releases/download/cores-1.0/cores.jar) file.
- Run from inside the vm or machine where the Tomcat, TomEE, or ActiveMQ process is running.
- Repeat for all instances of Tomcat, TomEE, or ActiveMQ.
Run in Linux/Windows via:
```
java -jar cores.jar
```
Be sure to run cores.jar using the same Java version as your Tomcat, TomEE or ActiveMQ instance.
Alternatively, you can deploy a JSP on each Tomcat, TomEE or ActiveMQ instance. Steps:
- Download the [cores.jsp](https://raw.githubusercontent.com/tomitribe/cores/main/src/main/webapp/cores.jsp) file.
- Add this to the `webapps/ROOT` folder (assuming the `ROOT` application is deployed) or another application on Tomcat/TomEE
- Add this to the `webapps/admin` folder on ActiveMQ
- Access the `cores.jsp` page via your server's web UI, for example http://your-server:8080/cores.jsp on Tomcat/TomEE, or http://your-server:8161/admin/cores.jsp on ActiveMQ.
If you prefer, you can deploy the cores.war in Tomcat or TomEE's webapps folder, and the application should be accessible via the server's web connector,
for example: http://localhost:8080/cores/