<commit_before>ClusterBench
============

ClusterBench is, or rather will be, a sample application to be deployed in a cluster of JBoss AS 7 and AS 5. Then it is easy to stress (curl, JMeter, whatnot) and monitor the perfrormance of the cluster and at the same time easily check correctness of replicated sessions.

Building
--------

It comes in 2 flavors for Java EE 5 and 6:

    $ mvn clean install -Pee6 # default
    $ mvn clean install -Pee5
    $ mvn clean install -Pee5,ee6 # build both

Output files:

    ./clusterbench-ee5-ear/target/clusterbench-ee5.ear
    ./clusterbench-ee6-ear/target/clusterbench-ee6.ear

Issues
------

Create them on GitHub:
[https://github.com/rhusar/clusterbench/issues](https://github.com/rhusar/clusterbench/issues)

Servlets
========

CdiServlet
----------
[/clusterbench/cdi](http://localhost:8080/clusterbench/cdi)

LocalEjbServlet
---------------
[/clusterbench/ejb](http://localhost:8080/clusterbench/ejb)

LocalSingletonEjbServlet
------------------------
[/clusterbench/singleton](http://localhost:8080/clusterbench/singleton)

GranularSessionServlet
----------------------
[/clusterbench/granular](http://localhost:8080/clusterbench/granular)

HttpSessionServlet
-------------------
[/clusterbench/session](http://localhost:8080/clusterbench/session)

MemoryUsageServlet
------------------
[/clusterbench/memoryusage?milliseconds=10000&megabytes=500](http://localhost:8080/clusterbench/memoryusage?milliseconds=10000&megabytes=500)

AverageSystemLoadServlet
------------------------
[/clusterbench/averagesystemload?milliseconds=10000&threads=4](http://localhost:8080/clusterbench/averagesystemload?milliseconds=10000&threads=4)<commit_msg>readme fix<commit_after>ClusterBench
============

ClusterBench is, or rather will be, a sample application to be deployed in a cluster of JBoss AS 7 and AS 5. Then it is easy to stress (curl, JMeter, whatnot) and monitor the performance of the cluster and at the same time easily check correctness of replicated sessions.

Building
--------

It comes in 2 flavors for Java EE 5 and 6:

    $ mvn clean install -Pee6 # default
    $ mvn clean install -Pee5
    $ mvn clean install -Pee5,ee6 # build both

Output files:

    ./clusterbench-ee5-ear/target/clusterbench-ee5.ear
    ./clusterbench-ee6-ear/target/clusterbench-ee6.ear

Issues
------

Create them on GitHub:
[https://github.com/rhusar/clusterbench/issues](https://github.com/rhusar/clusterbench/issues)

Servlets
========

CdiServlet
----------
[/clusterbench/cdi](http://localhost:8080/clusterbench/cdi)

LocalEjbServlet
---------------
[/clusterbench/ejb](http://localhost:8080/clusterbench/ejb)

LocalSingletonEjbServlet
------------------------
[/clusterbench/singleton](http://localhost:8080/clusterbench/singleton)

GranularSessionServlet
----------------------
[/clusterbench-granular/granular](http://localhost:8080/clusterbench-granular/granular)

HttpSessionServlet
-------------------
[/clusterbench/session](http://localhost:8080/clusterbench/session)

MemoryUsageServlet
------------------
[/clusterbench/memoryusage?milliseconds=10000&megabytes=500](http://localhost:8080/clusterbench/memoryusage?milliseconds=10000&megabytes=500)

AverageSystemLoadServlet
------------------------
[/clusterbench/averagesystemload?milliseconds=10000&threads=4](http://localhost:8080/clusterbench/averagesystemload?milliseconds=10000&threads=4)

{'fraction_non_alphanumeric': 0.191094072544972, 'fraction_numerical': 0.04069595989383663, 'mean_word_length': 3.50464807436919, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5842685', 'n_tokens_mistral': 1105, 'n_tokens_neox': 957, 'n_words': 204}