How We Count Cores
We count the total number of cores available to the Java process where Tomcat, TomEE, or ActiveMQ is running. This count is obtained directly from the result of Runtime.getRuntime().availableProcessors()
, which reflects the number of processor cores the Java process can utilize.
This means that whether your instance is deployed in a virtualized environment, container, or on bare-metal hardware, the core count is based on the resources allocated to that specific Java process. This method ensures that the number of cores used for support subscription purposes accurately matches the real processing power available to your instances.
Using Our Tools to Count Cores
To streamline the process, we offer tools designed to quickly and transparently retrieve core counts for each instance of Tomcat, TomEE, or ActiveMQ. By following these steps, you can easily determine the exact number of cores accessible to your Java processes, ensuring a smooth and efficient subscription experience.
Apache Tomcat & TomEE
Deploying the cores.war
- Download the cores.war file.
- Deploy the
.war
file on Tomcat or TomEE by placing it in thewebapps
folder. - Access the core count via the server’s web interface, for example:
http://localhost:8080/cores/
Apache ActiveMQ
Running the cores.jar
- Download the cores.jar file.
- Run the
.jar
file on the same machine or VM where ActiveMQ is running:java -jar cores.jar
- Repeat this for all ActiveMQ instances you are running.
Frequently Asked Questions
Which instances must I count?
You must count the cores for any Tomcat, TomEE, or ActiveMQ instances running Tomitribe distributions of these products. These can be identified by “TT” or “SP” in the version number (e.g., apache-tomee-9.1.3-TT.9-plus.zip
). This applies regardless of the environment (production, testing, QA, etc.).
How are cores counted in virtualized environments?
In virtualized or containerized environments, the number of cores is based on the resources allocated to and reported by the Java process. This means the count reflects the actual processing power assigned to each instance, not the total physical cores available on the host machine.
What if I run multiple Java processes on the same machine?
If you have multiple instances of Tomcat, TomEE, or ActiveMQ running on the same machine, each instance reports its core usage separately. You will need to sum up the core counts from each instance that uses our distributions to get the total.
Do I need to count cores in non-production environments?
Yes. Cores must be counted for all environments where our distributions are used, including production, testing, QA, user acceptance testing (UAT), and development. The core count is determined by the processing power allocated to and reported by the Java process in each environment.
What about physical deployments without virtualization?
For physical deployments, the core count is based on the total number of processor cores assigned to and reported by the Java process running Tomcat, TomEE, or ActiveMQ. All physical cores utilized by the process are counted.
Are only systems running Tomitribe distributions eligible for support?
Yes. Only systems running Tomitribe distributions of Tomcat, TomEE, or ActiveMQ are eligible for support. These distributions can be identified by the “TT” or “SP” in the version number.
Learn more about the
Tomitribe Community Partnership Program
Tomitribe’s Community Partnership Program is an innovative rewards-based program that pays you back for supporting the community.
Get in touch with us
What to expect during the call: (est. 30-40 minutes)
- A brief conversation about your organization’s needs and requirements.
- A slide deck of our yearly support subscription offers with Q & A
- Tailor quotation based on your needs and requirements
- No commitment whatsoever
To get a quote for support:
- Please fill in all required info and the “Core Count” field. If you are not sure how to count after reading the guidance above, please put whatever questions you might have into the form.
* These fields are required.